Browse Source

[tests] test without --cwd too

see #11354
Simon Krajewski 1 year ago
parent
commit
bdd7bf48e2

+ 0 - 14
tests/misc/projects/Issue11354/Main.hx

@@ -1,14 +0,0 @@
-function main() {
-	var a = null;
-	if (a == null) a = 10;
-	$type(a); // Null<Null<Int>>
-
-	var b = null;
-	$type(b); // Null<Unknown<0>>
-	b = null;
-	$type(b); // Null<Null<Unknown<0>>>
-	b = null;
-	$type(b); // Null<Null<Null<Unknown<0>>>>
-	b = 10;
-	$type(b); // Null<Null<Null<Int>>>
-}

+ 14 - 0
tests/misc/projects/Issue11354/proj/compile.hxml

@@ -0,0 +1,14 @@
+--main Main
+
+--each
+
+--cwd a
+--interp
+
+--next
+
+--cwd b
+--interp
+
+--next
+--interp

+ 3 - 0
tests/misc/projects/Issue11354/proj/compile.hxml.stdout

@@ -0,0 +1,3 @@
+Main.hx:2: Hello from folder a
+Main.hx:2: Hello from folder b
+Main.hx:2: Hello from folder proj