Browse Source

[tests] fix for undefined map order

Simon Krajewski 7 years ago
parent
commit
065899e4d5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/unit/src/unit/TestKeyValueIterator.hx

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