aboutsummaryrefslogtreecommitdiff
path: root/tests/test_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_map.c')
-rw-r--r--tests/test_map.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test_map.c b/tests/test_map.c
index 29704f0..db0fd9a 100644
--- a/tests/test_map.c
+++ b/tests/test_map.c
@@ -34,8 +34,8 @@ MAP_DECL(int, int_ptr);
MAP_IMPL(int, int_ptr, integer_cmp_, kfree);
static inline void loose_map_print(
- avl_tree_node_t(map_entry_t(int, int_ptr))* node,
- int tab) {
+ avl_tree_node_t(map_entry_t(int, int_ptr)) * node, int tab)
+{
if (node) {
loose_map_print(node->right, tab + 1);
}
@@ -49,8 +49,7 @@ static inline void loose_map_print(
printf("(%d => %d)\n", node->value.key, *node->value.value);
loose_map_print(node->left, tab + 1);
}
-static inline void map_debug_print(
- map_t(int, int_ptr) * map)
+static inline void map_debug_print(map_t(int, int_ptr) * map)
{
printf("------\n");
if (map->tree) {
@@ -96,7 +95,7 @@ TEST(map, stress)
erased[e] = 1;
}
- for (int i = 0; i < N; ++ i) {
+ for (int i = 0; i < N; ++i) {
if (erased[i]) {
continue;
}