Skip to content

Commit

Permalink
[tests] fix and add
Browse files Browse the repository at this point in the history
closes #10287
closes #11368
  • Loading branch information
Simn authored and kLabz committed Nov 16, 2023
1 parent c988f89 commit 4dc2429
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/misc/projects/Issue10287/Main.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
function foo() return 1;
function main() trace('${foo()blah}');
1 change: 1 addition & 0 deletions tests/misc/projects/Issue10287/compile-fail.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--main Main
2 changes: 2 additions & 0 deletions tests/misc/projects/Issue10287/compile-fail.hxml.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Main.hx:2: characters 31-35 : Unexpected blah
Main.hx:2: characters 31-35 : ... For function argument 'v'
8 changes: 8 additions & 0 deletions tests/misc/projects/Issue11368/Main.hx
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions tests/misc/projects/Issue11368/compile-fail.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--main Main
1 change: 1 addition & 0 deletions tests/misc/projects/Issue11368/compile-fail.hxml.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Main.hx:3: characters 2-8 : Missing ;
2 changes: 1 addition & 1 deletion tests/server/src/TestCase.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 4dc2429

Please sign in to comment.