Updating script and formatting files

This commit is contained in:
Leonardo Vencovsky committed 2020-06-17 21:38:00 -03:00
1 parent c16ecd886c
commit f80b17ff82
9 files changed
+451 -284

No files matched your search

+2 -4
View File
@@ -110,8 +110,7 @@ CMC_CREATE_UNIT(CMCDeque, true, {
});
CMC_CREATE_TEST(PFX##_init_custom(), {
struct deque d =
d_init_custom(1000000, d_fval, d_alloc_node, callbacks);
struct deque d = d_init_custom(1000000, d_fval, d_alloc_node, callbacks);
cmc_assert_not_equals(ptr, NULL, d.buffer);
cmc_assert_equals(size_t, 1000000, d.capacity);
@@ -247,8 +246,7 @@ CMC_CREATE_UNIT(CMCDeque, true, {
cmc_assert_equals(size_t, 1000, d_count(&d));
size_t sum = 0;
for (size_t i = d.front, j = 0; j < d.count;
i = (i + 1) % d.capacity, j++)
for (size_t i = d.front, j = 0; j < d.count; i = (i + 1) % d.capacity, j++)
sum += d.buffer[i];
cmc_assert_equals(size_t, 500500, sum);
+2 -4
View File
@@ -130,8 +130,7 @@ CMC_CREATE_UNIT(CMCHashMap, true, {
});
CMC_CREATE_TEST(PFX##_init_custom(), {
struct hashmap map = hm_init_custom(943722, 0.6, hm_fkey, hm_fval,
hm_alloc_node, callbacks);
struct hashmap map = hm_init_custom(943722, 0.6, hm_fkey, hm_fval, hm_alloc_node, callbacks);
cmc_assert_not_equals(ptr, NULL, map.buffer);
cmc_assert_equals(size_t, 0, map.count);
@@ -227,8 +226,7 @@ CMC_CREATE_UNIT(CMCHashMap, true, {
CMC_CREATE_TEST(PFX##_release(), {
k_total_free = 0;
v_total_free = 0;
struct hashmap map =
hm_init(100, 0.6, hm_fkey_counter, hm_fval_counter);
struct hashmap map = hm_init(100, 0.6, hm_fkey_counter, hm_fval_counter);
cmc_assert_not_equals(ptr, NULL, map.buffer);