mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +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 {
|
for key, item in my_map {
|
||||||
testing.expectf(t, key in my_map2, "Expected key %v to be present in unmarshaled map", key)
|
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 key in my_map2 {
|
||||||
if ok {
|
|
||||||
testing.expectf(t, runtime.string_eq(item, my_map2[key]), "Expected value %s to be present in unmarshaled map", key)
|
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