2
0
Эх сурвалжийг харах

[tests] fix for undefined map order

Simon Krajewski 7 жил өмнө
parent
commit
065899e4d5

+ 1 - 0
tests/unit/src/unit/TestKeyValueIterator.hx

@@ -19,6 +19,7 @@ private class MyStringMap<T> {
 		for (key in map.keys()) {
 			a.push({key: key, value: map.get(key)});
 		}
+		a.sort((a, b) -> Reflect.compare(a.key, b.key));
 		return a.iterator();
 	}
 }