Переглянути джерело

[tests] fix and add

closes #10287
closes #11368
Simon Krajewski 1 рік тому
батько
коміт
4dc24292f8

+ 2 - 0
tests/misc/projects/Issue10287/Main.hx

@@ -0,0 +1,2 @@
+function foo() return 1;
+function main() trace('${foo()blah}');

+ 1 - 0
tests/misc/projects/Issue10287/compile-fail.hxml

@@ -0,0 +1 @@
+--main Main

+ 2 - 0
tests/misc/projects/Issue10287/compile-fail.hxml.stderr

@@ -0,0 +1,2 @@
+Main.hx:2: characters 31-35 : Unexpected blah
+Main.hx:2: characters 31-35 : ... For function argument 'v'

+ 8 - 0
tests/misc/projects/Issue11368/Main.hx

@@ -0,0 +1,8 @@
+macro function test() {
+	haxe.macro.Context.parseInlineSring("p:true,v:0", haxe.macro.Context.currentPos())
+	return macro null;
+}
+
+function main() {
+	test();
+}

+ 1 - 0
tests/misc/projects/Issue11368/compile-fail.hxml

@@ -0,0 +1 @@
+--main Main

+ 1 - 0
tests/misc/projects/Issue11368/compile-fail.hxml.stderr

@@ -0,0 +1 @@
+Main.hx:3: characters 2-8 : Missing ;

+ 1 - 1
tests/server/src/TestCase.hx

@@ -195,7 +195,7 @@ class TestCase implements ITest {
 	}
 
 	function assertSkipping(module:String, reason:SkipReason, ?p:haxe.PosInfos) {
-		var msg = 'skipping $module (${printSkipReason(reason))})';
+		var msg = 'skipping $module (${printSkipReason(reason)})';
 		return Assert.isTrue(hasMessage(msg), null, p);
 	}