From 79e2f63182581547dcdb7593397d1c3e280a5670 Mon Sep 17 00:00:00 2001 From: VladPavliuk Date: Sat, 13 Jul 2024 00:38:58 +0300 Subject: [PATCH] Small code refactoring in `test_core_json` --- tests/core/encoding/json/test_core_json.odin | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/core/encoding/json/test_core_json.odin b/tests/core/encoding/json/test_core_json.odin index bf81330b6..62f474ce0 100644 --- a/tests/core/encoding/json/test_core_json.odin +++ b/tests/core/encoding/json/test_core_json.odin @@ -400,8 +400,7 @@ map_with_integer_keys :: proc(t: ^testing.T) { for key, item in my_map { testing.expectf(t, key in my_map2, "Expected key %v to be present in unmarshaled map", key) - value_from_map2, ok := my_map2[key] - if ok { + if key in my_map2 { testing.expectf(t, runtime.string_eq(item, my_map2[key]), "Expected value %s to be present in unmarshaled map", key) } }