소스 검색

[tests] Narrator: it wasn't

Simon Krajewski 4 년 전
부모
커밋
4e5b0338e7
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      tests/unit/src/unit/issues/Issue10259.hx

+ 4 - 3
tests/unit/src/unit/issues/Issue10259.hx

@@ -9,8 +9,9 @@ class Issue10259 extends Test {
 
 		Assert.same([1 => 2], maps.intMap);
 		Assert.same(["1" => 2], maps.stringMap);
-		// Not sure if this is specified to actually work x)
-		eq(1, maps.objectMap.keys().next().x);
-		eq(2, maps.objectMap.iterator().next());
+		for (key => value in maps.objectMap) {
+			eq(1, key.x);
+			eq(2, value);
+		}
 	}
 }