浏览代码

[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);
+		}
 	}
 }