summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/patree_bench.c2
-rw-r--r--test/patree_test.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/test/patree_bench.c b/test/patree_bench.c
index 8af9f9b..02998d6 100644
--- a/test/patree_bench.c
+++ b/test/patree_bench.c
@@ -146,7 +146,7 @@ main(int argc, char** argv)
search_start = bench_start();
for (size_t i = 0; i < n; ++i) {
const size_t index = rand() % n;
- char* match = NULL;
+ const char* match = NULL;
if (zix_patree_find(patree, strings[index], &match)) {
return test_fail("Patree: Failed to find `%s'\n", strings[index]);
}
diff --git a/test/patree_test.c b/test/patree_test.c
index 07d4a79..6d30509 100644
--- a/test/patree_test.c
+++ b/test/patree_test.c
@@ -81,8 +81,8 @@ main(int argc, char** argv)
// Search for each string
for (size_t i = 0; i < n_strings; ++i) {
- char* match = NULL;
- ZixStatus st = zix_patree_find(patree, strings[i], &match);
+ const char* match = NULL;
+ ZixStatus st = zix_patree_find(patree, strings[i], &match);
if (st) {
return test_fail("Failed to find `%s'\n", strings[i]);
}
@@ -100,8 +100,8 @@ main(int argc, char** argv)
};
const size_t n_not_indexed = sizeof(not_indexed) / sizeof(char*);
for (size_t i = 0; i < n_not_indexed; ++i) {
- char* match = NULL;
- ZixStatus st = zix_patree_find(patree, not_indexed[i], &match);
+ const char* match = NULL;
+ ZixStatus st = zix_patree_find(patree, not_indexed[i], &match);
if (st != ZIX_STATUS_NOT_FOUND) {
return test_fail("Unexpectedly found `%s'\n", not_indexed[i]);
}