Commit bb8ead8
Changed files (1)
src
02
04
src/02/04/hash_test.c
@@ -30,8 +30,8 @@ Ensure(HashTable, when_getting_a_values_for_a_key_that_has_been_inserted) {
Ensure(HashTable, when_a_hash_collision_occurs) {
Hash *hash = hash_init(13);
- /*hash_set(hash, 8, 80);*/
- /*hash_set(hash, 21, 210);*/
+ hash_set(hash, 8, (void *)80);
+ hash_set(hash, 21, (void *)210);
assert_that(hash_get(hash, 8), is_equal_to(80));
assert_that(hash_get(hash, 21), is_equal_to(210));
@@ -43,7 +43,7 @@ TestSuite *hash_table_tests() {
add_test_with_context(suite, HashTable, when_initializing_a_hash);
add_test_with_context(suite, HashTable, when_getting_a_value_for_a_key_that_has_not_been_inserted);
add_test_with_context(suite, HashTable, when_getting_a_values_for_a_key_that_has_been_inserted);
- /*add_test_with_context(suite, HashTable, when_a_hash_collision_occurs);*/
+ add_test_with_context(suite, HashTable, when_a_hash_collision_occurs);
return suite;
}