Browse Source

fix test for #4705

Aleksandr Kuzmenko 6 năm trước cách đây
mục cha
commit
c218710d75
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      tests/unit/src/unit/issues/Issue4705.hx

+ 3 - 1
tests/unit/src/unit/issues/Issue4705.hx

@@ -3,7 +3,9 @@ package unit.issues;
 class Issue4705 extends unit.Test {
 	function test() {
 		var a:Object = { foo: 12, bar: '13' };
-		aeq(['foo', 'bar'], [for(f in a) f]);
+		var actual = [for(f in a) f];
+		actual.sort(Reflect.compare);
+		aeq(['bar', 'foo'], actual);
 	}
 }