Procházet zdrojové kódy

[tests] Narrator: it wasn't

Simon Krajewski před 4 roky
rodič
revize
c1749777c4
1 změnil soubory, kde provedl 4 přidání a 3 odebrání
  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);
+		}
 	}
 }