Small code refactoring in test_core_json

This commit is contained in:
VladPavliuk
2024-07-13 00:38:58 +03:00
parent 39983eaaa4
commit 79e2f63182

View File

@@ -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)
}
}