Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abxh committed Apr 15, 2024
1 parent aeada47 commit d5b772e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/K_to_V_hashtable_tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,17 @@ bool missing_elements_test(void) {
}
bool res = true;

res &= is_false(int_ht_contains(int_ht_p, 1));
res &= is_false(int_ht_contains(int_ht_p, 2));
res &= is_false(int_ht_contains(int_ht_p, 3));
res &= is_false(int_ht_contains(int_ht_p, 4));
res &= is_true(int_ht_get_mut(int_ht_p, 1) == NULL);
res &= is_true(int_ht_get_mut(int_ht_p, 2) == NULL);
res &= is_true(!int_ht_contains(int_ht_p, 3));
res &= is_true(!int_ht_contains(int_ht_p, 4));

int_ht_set(int_ht_p, 1, 42);
int_ht_set(int_ht_p, 4, 69);

res &= is_true(int_ht_contains(int_ht_p, 1));
res &= is_false(int_ht_contains(int_ht_p, 2));
res &= is_false(int_ht_contains(int_ht_p, 3));
res &= is_true(int_ht_get_mut(int_ht_p, 1) != NULL);
res &= is_true(int_ht_get_mut(int_ht_p, 2) == NULL);
res &= is_true(!int_ht_contains(int_ht_p, 3));
res &= is_true(int_ht_contains(int_ht_p, 4));

res &= is_true(int_ht_deinit(&int_ht_p));
Expand Down

0 comments on commit d5b772e

Please sign in to comment.