From e503cc4de4f7f2e3387e55c77ab1690f709b7687 Mon Sep 17 00:00:00 2001 From: KunoiSayami Date: Wed, 17 May 2023 02:31:29 +0800 Subject: feat(exp): Add expt_0516_2 Signed-off-by: KunoiSayami --- sortlib.cuh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sortlib.cuh') 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 } }; -- cgit v1.3.1