diff options
Diffstat (limited to 'sortlib.cuh')
| -rw-r--r-- | sortlib.cuh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sortlib.cuh b/sortlib.cuh index 58aa7c1..fa306b0 100644 --- a/sortlib.cuh +++ b/sortlib.cuh @@ -38,7 +38,7 @@ public: for (size_t i = 0; i < LENGTH; i++) { auto left = calculate_index(i); auto right = calculate_rank(left - 1); - // printf("%lu %lu\n", l, l2); + assert(i + 1 == right); } } @@ -166,7 +166,9 @@ public: static void testSelf(size_t length) { CustomSort(length, sizeof(long) * 8).testCalculation(); +#ifndef DISABLE_TEST_WARNING puts("You can remove this function if passed already"); +#endif } }; |
