summaryrefslogtreecommitdiffstats
path: root/test/unit/ckh.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/ckh.c')
-rw-r--r--test/unit/ckh.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/test/unit/ckh.c b/test/unit/ckh.c
index 1f57668..0638cb3 100644
--- a/test/unit/ckh.c
+++ b/test/unit/ckh.c
@@ -1,7 +1,6 @@
#include "test/jemalloc_test.h"
-TEST_BEGIN(test_new_delete)
-{
+TEST_BEGIN(test_new_delete) {
tsd_t *tsd;
ckh_t ckh;
@@ -17,8 +16,7 @@ TEST_BEGIN(test_new_delete)
}
TEST_END
-TEST_BEGIN(test_count_insert_search_remove)
-{
+TEST_BEGIN(test_count_insert_search_remove) {
tsd_t *tsd;
ckh_t ckh;
const char *strs[] = {
@@ -105,8 +103,7 @@ TEST_BEGIN(test_count_insert_search_remove)
}
TEST_END
-TEST_BEGIN(test_insert_iter_remove)
-{
+TEST_BEGIN(test_insert_iter_remove) {
#define NITEMS ZU(1000)
tsd_t *tsd;
ckh_t ckh;
@@ -174,10 +171,12 @@ TEST_BEGIN(test_insert_iter_remove)
}
}
- for (j = 0; j < i + 1; j++)
+ for (j = 0; j < i + 1; j++) {
assert_true(seen[j], "Item %zu not seen", j);
- for (; j < NITEMS; j++)
+ }
+ for (; j < NITEMS; j++) {
assert_false(seen[j], "Item %zu seen", j);
+ }
}
}
@@ -204,8 +203,7 @@ TEST_BEGIN(test_insert_iter_remove)
TEST_END
int
-main(void)
-{
+main(void) {
return (test(
test_new_delete,
test_count_insert_search_remove,