diff --git a/tests/main/unt/hashmap.c b/tests/main/unt/hashmap.c index c8ccddd..77acdcf 100644 --- a/tests/main/unt/hashmap.c +++ b/tests/main/unt/hashmap.c @@ -19,14 +19,14 @@ CMC_CREATE_UNIT(hashmap_test, true, { hm_free(map, NULL); }); - CMC_CREATE_TEST(new [edge_case:capacity = 0], { + CMC_CREATE_TEST(new[edge_case capacity = 0], { hashmap *map = hm_new(0, 0.6, cmp, hash); cmc_assert_equals(ptr, NULL, map); }); - CMC_CREATE_TEST(new [edge_case:capacity = UINT64_MAX], { - hashmap *map = hm_new(UINT64_MAX, 0.6, cmp, hash); + CMC_CREATE_TEST(new[edge_case capacity = UINT64_MAX], { + hashmap *map = hm_new(UINT64_MAX, 0.99, cmp, hash); cmc_assert_equals(ptr, NULL, map); }); diff --git a/tests/main/unt/hashset.c b/tests/main/unt/hashset.c index df2c7cb..8a5f759 100644 --- a/tests/main/unt/hashset.c +++ b/tests/main/unt/hashset.c @@ -19,14 +19,14 @@ CMC_CREATE_UNIT(hashset_test, true, { hs_free(set, NULL); }); - CMC_CREATE_TEST(new [edge_case:capacity = 0], { + CMC_CREATE_TEST(new[edge_case capacity = 0], { hashset *set = hs_new(0, 0.6, cmp, hash); cmc_assert_equals(ptr, NULL, set); }); - CMC_CREATE_TEST(new [edge_case:capacity = UINT64_MAX], { - hashset *set = hs_new(UINT64_MAX, 0.6, cmp, hash); + CMC_CREATE_TEST(new[edge_case capacity = UINT64_MAX], { + hashset *set = hs_new(UINT64_MAX, 0.99, cmp, hash); cmc_assert_equals(ptr, NULL, set); }); diff --git a/tests/main/unt/heap.c b/tests/main/unt/heap.c index 4d6e931..365ef89 100644 --- a/tests/main/unt/heap.c +++ b/tests/main/unt/heap.c @@ -19,13 +19,13 @@ CMC_CREATE_UNIT(heap_test, true, { h_free(h, NULL); }); - CMC_CREATE_TEST(new [edge_case:capacity = 0], { + CMC_CREATE_TEST(new[edge_case capacity = 0], { heap *h = h_new(0, cmc_max_heap, cmp); cmc_assert_equals(ptr, NULL, h); }); - CMC_CREATE_TEST(new [edge_case:capacity = UINT64_MAX], { + CMC_CREATE_TEST(new[edge_case capacity = UINT64_MAX], { heap *h = h_new(UINT64_MAX, cmc_max_heap, cmp); cmc_assert_equals(ptr, NULL, h); @@ -49,7 +49,7 @@ CMC_CREATE_UNIT(heap_test, true, { h_free(h, NULL); }); - CMC_CREATE_TEST(buffer_growth [edge_case:capacity = 1], { + CMC_CREATE_TEST(buffer_growth[edge_case capacity = 1], { heap *h = h_new(1, cmc_max_heap, cmp); cmc_assert_not_equals(ptr, NULL, h); diff --git a/tests/main/unt/intervalheap.c b/tests/main/unt/intervalheap.c index df25453..0dd3e14 100644 --- a/tests/main/unt/intervalheap.c +++ b/tests/main/unt/intervalheap.c @@ -19,7 +19,7 @@ CMC_CREATE_UNIT(intervalheap_test, true, { ih_free(ih, NULL); }); - CMC_CREATE_TEST(new [edge_case:capacity = 0], { + CMC_CREATE_TEST(new[edge_case capacity = 0], { intervalheap *ih = ih_new(0, cmp); cmc_assert_equals(ptr, NULL, ih); @@ -28,7 +28,7 @@ CMC_CREATE_UNIT(intervalheap_test, true, { ih_free(ih, NULL); }); - CMC_CREATE_TEST(new [edge_case:capacity = UINT64_MAX], { + CMC_CREATE_TEST(new[edge_case capacity = UINT64_MAX], { intervalheap *ih = ih_new(UINT64_MAX, cmp); cmc_assert_equals(ptr, NULL, ih); @@ -55,7 +55,7 @@ CMC_CREATE_UNIT(intervalheap_test, true, { ih_free(ih, NULL); }); - CMC_CREATE_TEST(buffer_growth [edge_case:capacity = 1], { + CMC_CREATE_TEST(buffer_growth[edge_case capacity = 1], { intervalheap *ih = ih_new(1, cmp); cmc_assert_not_equals(ptr, NULL, ih); diff --git a/tests/main/unt/linkedlist.c b/tests/main/unt/linkedlist.c index fbe28bb..bb45f8c 100644 --- a/tests/main/unt/linkedlist.c +++ b/tests/main/unt/linkedlist.c @@ -36,7 +36,7 @@ CMC_CREATE_UNIT(linkedlist_test, true, { ll_free(ll, NULL); }); - CMC_CREATE_TEST(clear [edge_case:count = 0], { + CMC_CREATE_TEST(clear[edge_case count = 0], { linkedlist *ll = ll_new(); cmc_assert_not_equals(ptr, NULL, ll); diff --git a/tests/main/unt/list.c b/tests/main/unt/list.c index c72a055..69dcab5 100644 --- a/tests/main/unt/list.c +++ b/tests/main/unt/list.c @@ -19,13 +19,13 @@ CMC_CREATE_UNIT(list_test, true, { l_free(l, NULL); }); - CMC_CREATE_TEST(new [edge_case:capacity = 0], { + CMC_CREATE_TEST(new[edge_case capacity = 0], { list *l = l_new(0); cmc_assert_equals(ptr, NULL, l); }); - CMC_CREATE_TEST(new [edge_case:capacity = UINT64_MAX], { + CMC_CREATE_TEST(new[edge_case capacity = UINT64_MAX], { list *l = l_new(UINT64_MAX); cmc_assert_equals(ptr, NULL, l); @@ -49,7 +49,7 @@ CMC_CREATE_UNIT(list_test, true, { l_free(l, NULL); }); - CMC_CREATE_TEST(new_from [edge_case:size = 1], { + CMC_CREATE_TEST(new_from[edge_case size = 1], { size_t a = 10; size_t *values = &a; @@ -79,7 +79,7 @@ CMC_CREATE_UNIT(list_test, true, { l_free(l, NULL); }); - CMC_CREATE_TEST(buffer_growth [edge_case:capacity = 1], { + CMC_CREATE_TEST(buffer_growth[edge_case capacity = 1], { list *l = l_new(1); cmc_assert_not_equals(ptr, NULL, l); @@ -253,7 +253,7 @@ CMC_CREATE_UNIT(list_test, true, { l_free(l, NULL); }); - CMC_CREATE_TEST(pop_front [edge_case:count = 0], { + CMC_CREATE_TEST(pop_front[edge_case count = 0], { list *l = l_new(100); cmc_assert_not_equals(ptr, NULL, l); @@ -262,7 +262,7 @@ CMC_CREATE_UNIT(list_test, true, { l_free(l, NULL); }); - CMC_CREATE_TEST(pop_front [edge_case:count = 1], { + CMC_CREATE_TEST(pop_front[edge_case count = 1], { list *l = l_new(100); cmc_assert_not_equals(ptr, NULL, l); @@ -286,7 +286,7 @@ CMC_CREATE_UNIT(list_test, true, { l_free(l, NULL); }); - CMC_CREATE_TEST(pop_at [edge_case:count = 0], { + CMC_CREATE_TEST(pop_at[edge_case count = 0], { list *l = l_new(100); cmc_assert_not_equals(ptr, NULL, l); @@ -295,7 +295,7 @@ CMC_CREATE_UNIT(list_test, true, { l_free(l, NULL); }); - CMC_CREATE_TEST(pop_at [edge_case:count = 1], { + CMC_CREATE_TEST(pop_at[edge_case count = 1], { list *l = l_new(100); cmc_assert_not_equals(ptr, NULL, l); @@ -319,7 +319,7 @@ CMC_CREATE_UNIT(list_test, true, { l_free(l, NULL); }); - CMC_CREATE_TEST(pop_back [edge_case:count = 0], { + CMC_CREATE_TEST(pop_back[edge_case count = 0], { list *l = l_new(100); cmc_assert_not_equals(ptr, NULL, l); @@ -328,7 +328,7 @@ CMC_CREATE_UNIT(list_test, true, { l_free(l, NULL); }); - CMC_CREATE_TEST(pop_back [edge_case:count = 1], { + CMC_CREATE_TEST(pop_back[edge_case count = 1], { list *l = l_new(100); cmc_assert_not_equals(ptr, NULL, l); diff --git a/tests/main/unt/multimap.c b/tests/main/unt/multimap.c index 364ee5f..6ccb049 100644 --- a/tests/main/unt/multimap.c +++ b/tests/main/unt/multimap.c @@ -19,14 +19,14 @@ CMC_CREATE_UNIT(multimap_test, true, { mm_free(map, NULL); }); - CMC_CREATE_TEST(new [edge_case:capacity = 0], { + CMC_CREATE_TEST(new[edge_case capacity = 0], { multimap *map = mm_new(0, 0.8, cmp, hash); cmc_assert_equals(ptr, NULL, map); }); - CMC_CREATE_TEST(new [edge_case:capacity = UINT64_MAX], { - multimap *map = mm_new(UINT64_MAX, 0.8, cmp, hash); + CMC_CREATE_TEST(new[edge_case capacity = UINT64_MAX], { + multimap *map = mm_new(UINT64_MAX, 0.99, cmp, hash); cmc_assert_equals(ptr, NULL, map); }); @@ -79,7 +79,7 @@ CMC_CREATE_UNIT(multimap_test, true, { mm_free(map, NULL); }); - CMC_CREATE_TEST(remove [edge_case:count = 0], { + CMC_CREATE_TEST(remove[edge_case count = 0], { multimap *map = mm_new(100, 0.8, cmp, hash); cmc_assert_not_equals(ptr, NULL, map); @@ -91,7 +91,7 @@ CMC_CREATE_UNIT(multimap_test, true, { mm_free(map, NULL); }); - CMC_CREATE_TEST(remove [edge_case:count = 1], { + CMC_CREATE_TEST(remove[edge_case count = 1], { multimap *map = mm_new(100, 0.8, cmp, hash); cmc_assert_not_equals(ptr, NULL, map); diff --git a/tests/main/unt/multiset.c b/tests/main/unt/multiset.c index 7774440..98e2083 100644 --- a/tests/main/unt/multiset.c +++ b/tests/main/unt/multiset.c @@ -19,14 +19,14 @@ CMC_CREATE_UNIT(multiset_test, true, { ms_free(set, NULL); }); - CMC_CREATE_TEST(new [edge_case:capacity = 0], { + CMC_CREATE_TEST(new[edge_case capacity = 0], { multiset *set = ms_new(0, 0.6, cmp, hash); cmc_assert_equals(ptr, NULL, set); }); - CMC_CREATE_TEST(new [edge_case:capacity = UINTMAX_MAX], { - multiset *set = ms_new(UINTMAX_MAX, 0.99, cmp, hash); + CMC_CREATE_TEST(new[edge_case capacity = UINT64_MAX], { + multiset *set = ms_new(UINT64_MAX, 0.99, cmp, hash); cmc_assert_equals(ptr, NULL, set); }); diff --git a/tests/main/unt/queue.c b/tests/main/unt/queue.c index 271108b..1938460 100644 --- a/tests/main/unt/queue.c +++ b/tests/main/unt/queue.c @@ -20,13 +20,13 @@ CMC_CREATE_UNIT(queue_test, true, { q_free(q, NULL); }); - CMC_CREATE_TEST(new [edge_case:capacity = 0], { + CMC_CREATE_TEST(new[edge_case capacity = 0], { queue *q = q_new(0); cmc_assert_equals(ptr, NULL, q); }); - CMC_CREATE_TEST(new [edge_case:capacity = UINT64_MAX], { + CMC_CREATE_TEST(new[edge_case capacity = UINT64_MAX], { queue *q = q_new(UINT64_MAX); cmc_assert_equals(ptr, NULL, q); @@ -50,7 +50,7 @@ CMC_CREATE_UNIT(queue_test, true, { q_free(q, NULL); }); - CMC_CREATE_TEST(buffer_growth [edge_case:capacity = 1], { + CMC_CREATE_TEST(buffer_growth[edge_case capacity = 1], { queue *q = q_new(1); cmc_assert_not_equals(ptr, NULL, q); diff --git a/tests/main/unt/sortedlist.c b/tests/main/unt/sortedlist.c index fce3781..cb3a565 100644 --- a/tests/main/unt/sortedlist.c +++ b/tests/main/unt/sortedlist.c @@ -20,13 +20,13 @@ CMC_CREATE_UNIT(sortedlist_test, true, { sl_free(sl, NULL); }); - CMC_CREATE_TEST(new [edge_case:capacity = 0], { + CMC_CREATE_TEST(new[edge_case capacity = 0], { sortedlist *sl = sl_new(0, cmp); cmc_assert_equals(ptr, NULL, sl); }); - CMC_CREATE_TEST(new [edge_case:capacity = UINT64_MAX], { + CMC_CREATE_TEST(new[edge_case capacity = UINT64_MAX], { sortedlist *sl = sl_new(UINT64_MAX, cmp); cmc_assert_equals(ptr, NULL, sl); @@ -50,7 +50,7 @@ CMC_CREATE_UNIT(sortedlist_test, true, { sl_free(sl, NULL); }); - CMC_CREATE_TEST(buffer_growth [edge_case:capacity = 1], { + CMC_CREATE_TEST(buffer_growth[edge_case capacity = 1], { sortedlist *sl = sl_new(1, cmp); cmc_assert_not_equals(ptr, NULL, sl); diff --git a/tests/main/unt/stack.c b/tests/main/unt/stack.c index 73e2dda..f60b04b 100644 --- a/tests/main/unt/stack.c +++ b/tests/main/unt/stack.c @@ -20,13 +20,13 @@ CMC_CREATE_UNIT(stack_test, true, { s_free(s, NULL); }); - CMC_CREATE_TEST(new [edge_case:capacity = 0], { + CMC_CREATE_TEST(new[edge_case capacity = 0], { stack *s = s_new(0); cmc_assert_equals(ptr, NULL, s); }); - CMC_CREATE_TEST(new [edge_case:capacity = UINT64_MAX], { + CMC_CREATE_TEST(new[edge_case capacity = UINT64_MAX], { stack *s = s_new(UINT64_MAX); cmc_assert_equals(ptr, NULL, s); @@ -50,7 +50,7 @@ CMC_CREATE_UNIT(stack_test, true, { s_free(s, NULL); }); - CMC_CREATE_TEST(buffer_growth [edge_case:capacity = 1], { + CMC_CREATE_TEST(buffer_growth[edge_case capacity = 1], { stack *s = s_new(1); cmc_assert_not_equals(ptr, NULL, s); @@ -151,7 +151,7 @@ CMC_CREATE_UNIT(stack_test, true, { s_free(s, NULL); }); - CMC_CREATE_TEST(pop [edge_case:count = 0], { + CMC_CREATE_TEST(pop[edge_case count = 0], { stack *s = s_new(100); cmc_assert_not_equals(ptr, NULL, s); @@ -177,7 +177,7 @@ CMC_CREATE_UNIT(stack_test, true, { s_free(s, NULL); }); - CMC_CREATE_TEST(top [edge_case:count = 0], { + CMC_CREATE_TEST(top[edge_case count = 0], { stack *s = s_new(100); cmc_assert_not_equals(ptr, NULL, s); @@ -191,7 +191,7 @@ CMC_CREATE_UNIT(stack_test, true, { s_free(s, NULL); }); - CMC_CREATE_TEST(top [edge_case:count = 1], { + CMC_CREATE_TEST(top[edge_case count = 1], { stack *s = s_new(100); cmc_assert_not_equals(ptr, NULL, s); @@ -217,7 +217,7 @@ CMC_CREATE_UNIT(stack_test, true, { s_free(s, NULL); }); - CMC_CREATE_TEST(contains [edge_case:count = 0], { + CMC_CREATE_TEST(contains[edge_case count = 0], { stack *s = s_new(100); cmc_assert_not_equals(ptr, NULL, s); @@ -262,7 +262,7 @@ CMC_CREATE_UNIT(stack_test, true, { s_free(s, NULL); }); - CMC_CREATE_TEST(full [edge_case:capacity = 1], { + CMC_CREATE_TEST(full[edge_case capacity = 1], { stack *s = s_new(1); cmc_assert_not_equals(ptr, NULL, s); @@ -287,7 +287,7 @@ CMC_CREATE_UNIT(stack_test, true, { s_free(s, NULL); }); - CMC_CREATE_TEST(iter_init [edge_case:count = 0], { + CMC_CREATE_TEST(iter_init[edge_case count = 0], { stack *s = s_new(100); cmc_assert_not_equals(ptr, NULL, s); @@ -304,7 +304,7 @@ CMC_CREATE_UNIT(stack_test, true, { s_free(s, NULL); }); - CMC_CREATE_TEST(iter_start [edge_case:count = 0], { + CMC_CREATE_TEST(iter_start[edge_case count = 0], { stack *s = s_new(100); cmc_assert_not_equals(ptr, NULL, s); @@ -318,7 +318,7 @@ CMC_CREATE_UNIT(stack_test, true, { s_free(s, NULL); }); - CMC_CREATE_TEST(iter_end [edge_case:count = 0], { + CMC_CREATE_TEST(iter_end[edge_case count = 0], { stack *s = s_new(100); cmc_assert_not_equals(ptr, NULL, s); @@ -389,7 +389,7 @@ CMC_CREATE_UNIT(stack_test, true, { s_free(s, NULL); }); - CMC_CREATE_TEST(iteration [edge_case:count = 1], { + CMC_CREATE_TEST(iteration[edge_case count = 1], { stack *s = s_new(100); cmc_assert_not_equals(ptr, NULL, s); @@ -412,7 +412,7 @@ CMC_CREATE_UNIT(stack_test, true, { s_free(s, NULL); }); - CMC_CREATE_TEST(iteration [edge_case:count = capacity], { + CMC_CREATE_TEST(iteration[edge_case count = capacity], { stack *s = s_new(100); cmc_assert_not_equals(ptr, NULL, s); @@ -476,7 +476,7 @@ CMC_CREATE_UNIT(stack_test, true, { s_free(s, NULL); }); - CMC_CREATE_TEST(iteration [boundaries:count = 0], { + CMC_CREATE_TEST(iteration[boundaries count = 0], { stack *s = s_new(100); cmc_assert_not_equals(ptr, NULL, s); @@ -495,7 +495,7 @@ CMC_CREATE_UNIT(stack_test, true, { s_free(s, NULL); }); - CMC_CREATE_TEST(iteration [boundaries:count > 0], { + CMC_CREATE_TEST(iteration[boundaries count > 0], { stack *s = s_new(100); cmc_assert_not_equals(ptr, NULL, s); @@ -517,7 +517,7 @@ CMC_CREATE_UNIT(stack_test, true, { s_free(s, NULL); }); - CMC_CREATE_TEST(iter_value [edge_case:count = 0], { + CMC_CREATE_TEST(iter_value[edge_case count = 0], { stack *s = s_new(100); cmc_assert_not_equals(ptr, NULL, s); @@ -531,7 +531,7 @@ CMC_CREATE_UNIT(stack_test, true, { s_free(s, NULL); }); - CMC_CREATE_TEST(iter_rvalue [edge_case:count = 0], { + CMC_CREATE_TEST(iter_rvalue[edge_case count = 0], { stack *s = s_new(100); cmc_assert_not_equals(ptr, NULL, s); @@ -584,7 +584,7 @@ CMC_CREATE_UNIT(stack_test, true, { s_free(s, NULL); }); - CMC_CREATE_TEST(index [edge_case:count = 0], { + CMC_CREATE_TEST(index[edge_case count = 0], { stack *s = s_new(100); cmc_assert_not_equals(ptr, NULL, s);