Explorar el Código

[python] key order on dict is undefined

Simon Krajewski hace 11 años
padre
commit
14e3fd1cdb
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      tests/unit/issues/Issue2856.hx

+ 1 - 0
tests/unit/issues/Issue2856.hx

@@ -9,6 +9,7 @@ class Issue2856 extends Test {
 			for (key in dict.keys()) {
 				acc.push(key + "=" +dict.get(key, null));
 			}
+			acc.sort(Reflect.compare);
 			return acc.join(";");
 		}