mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 04:50:29 +00:00
Small code refactoring in test_core_json
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user