Browse Source

[tests] Narrator: it wasn't

Simon Krajewski 4 years ago
parent
commit
4e5b0338e7
1 changed files with 4 additions and 3 deletions
  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);
+		}
 	}
 }