Pārlūkot izejas kodu

Small code refactoring in `test_core_json`

VladPavliuk 1 gadu atpakaļ
vecāks
revīzija
79e2f63182
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      tests/core/encoding/json/test_core_json.odin

+ 1 - 2
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)
 		}
 	}