diff options
| author | KunoiSayami <[email protected]> | 2023-05-17 02:31:29 +0800 |
|---|---|---|
| committer | KunoiSayami <[email protected]> | 2023-05-17 02:31:29 +0800 |
| commit | e503cc4de4f7f2e3387e55c77ab1690f709b7687 (patch) | |
| tree | 8a7e5d9bcc3cc59b999209b444062c434e1812bf /sortlib.cuh | |
| parent | ff0640807f810b5ac3d9f7a831b60e1266608a08 (diff) | |
feat(exp): Add expt_0516_2
Signed-off-by: KunoiSayami <[email protected]>
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 } }; |
