Sfoglia il codice sorgente

test issues on all targets

frabbit 11 anni fa
parent
commit
7e06692073
3 ha cambiato i file con 27 aggiunte e 19 eliminazioni
  1. 0 19
      tests/unit/TestPython.hx
  2. 16 0
      tests/unit/issues/Issue2936.hx
  3. 11 0
      tests/unit/issues/Issue2937.hx

+ 0 - 19
tests/unit/TestPython.hx

@@ -303,23 +303,4 @@ class TestPython extends Test {
 		eq(test4a(1), test4b(1));
 	}
 
-	function testIssue2936 () {
-		f([1,2,3] == [1,2,3]);
-		f(([1,2,3]:Dynamic) == ([1,2,3]:Dynamic));
-		f(([1,2,3]:Dynamic) == [1,2,3]);
-		f([1,2,3] == ([1,2,3]:Dynamic));
-
-		t([1,2,3] != [1,2,3]);
-		t(([1,2,3]:Dynamic) != ([1,2,3]:Dynamic));
-		t(([1,2,3]:Dynamic) != [1,2,3]);
-		t([1,2,3] != ([1,2,3]:Dynamic));
-	}
-
-	function testIssue2937 () {
-		var f = Reflect.makeVarArgs(function(args:Array<Dynamic>) {
-			t(Std.is(args, Array)); // false, but should be true
-		});
-		f(1,2,3);
-	}
-
 }

+ 16 - 0
tests/unit/issues/Issue2936.hx

@@ -0,0 +1,16 @@
+package unit.issues;
+
+
+class Issue2936 extends Test {
+	function test() {
+		f([1,2,3] == [1,2,3]);
+		f(([1,2,3]:Dynamic) == ([1,2,3]:Dynamic));
+		f(([1,2,3]:Dynamic) == [1,2,3]);
+		f([1,2,3] == ([1,2,3]:Dynamic));
+
+		t([1,2,3] != [1,2,3]);
+		t(([1,2,3]:Dynamic) != ([1,2,3]:Dynamic));
+		t(([1,2,3]:Dynamic) != [1,2,3]);
+		t([1,2,3] != ([1,2,3]:Dynamic));
+	}
+}

+ 11 - 0
tests/unit/issues/Issue2937.hx

@@ -0,0 +1,11 @@
+package unit.issues;
+
+
+class Issue2937 extends Test {
+	function test() {
+		var f = Reflect.makeVarArgs(function(args:Array<Dynamic>) {
+			t(Std.is(args, Array)); // false, but should be true
+		});
+		f(1,2,3);
+	}
+}