summaryrefslogtreecommitdiff
path: root/sortlib.cuh
diff options
context:
space:
mode:
authorKunoiSayami <[email protected]>2023-05-17 02:31:29 +0800
committerKunoiSayami <[email protected]>2023-05-17 02:31:29 +0800
commite503cc4de4f7f2e3387e55c77ab1690f709b7687 (patch)
tree8a7e5d9bcc3cc59b999209b444062c434e1812bf /sortlib.cuh
parentff0640807f810b5ac3d9f7a831b60e1266608a08 (diff)
feat(exp): Add expt_0516_2
Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'sortlib.cuh')
-rw-r--r--sortlib.cuh4
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
}
};