aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-03-08 00:09:30 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commit6bef90418f677f5b971a7a597126d743f8198046 (patch)
treeb8683193dfb7d6a173d6d8ca50d94815910e1b3b /tests
parent0b282c914bb7e7e761428c9ac7cf5e089773ba8f (diff)
Fix hash_map_get not returning value
Diffstat (limited to 'tests')
-rw-r--r--tests/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/main.c b/tests/main.c
index 11719a8..8e45ba4 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -25,6 +25,7 @@ static CHECK_RESULT int test_hash_map() {
value = 34;
return_if_error(hash_map_insert(&hash_map, create_buffer_view("hello", 5), &value));
+ value = 50;
for(i = 0; i < 128; ++i)
return_if_error(hash_map_insert(&hash_map, create_buffer_view((const char*)&i, 1), &value));
return_if_error(hash_map_insert(&hash_map, create_buffer_view("hellp", 5), &value));