diff options
| author | VladPavliuk <pavliuk.vlad@gmail.com> | 2024-07-13 00:38:58 +0300 |
|---|---|---|
| committer | VladPavliuk <pavliuk.vlad@gmail.com> | 2024-07-13 00:38:58 +0300 |
| commit | 79e2f63182581547dcdb7593397d1c3e280a5670 (patch) | |
| tree | 359d60f27e1fe26161de5d8117c0943489022cf0 /tests/core/encoding/json | |
| parent | 39983eaaa44a2177ca9b05cd76c29d96924a7e81 (diff) | |
Small code refactoring in `test_core_json`
Diffstat (limited to 'tests/core/encoding/json')
| -rw-r--r-- | tests/core/encoding/json/test_core_json.odin | 3 |
1 files changed, 1 insertions, 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) } } |