Jelajahi Sumber

Change test for issue #10304 to use nullable strings instead of integers.

The goal is to achieve consistency between static and dynamic targets.
Mario Carbajal 4 tahun lalu
induk
melakukan
0e4926634a
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      tests/unit/src/unit/issues/Issue10304.hx

+ 1 - 1
tests/unit/src/unit/issues/Issue10304.hx

@@ -26,7 +26,7 @@ private class PairIter<T> {
 class Issue10304 extends Test {
 	function test() {
 		var buf = new StringBuf();
-		for (p in new PairIter([1, 2, 3])) {
+		for (p in new PairIter(["1", "2", "3"])) {
 			buf.add('${p.prev} ${p.cur} ');
 		}
 		eq("null 1 1 2 2 3 ", buf.toString());