Skip to content

Commit

Permalink
[tests] fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Sep 4, 2024
1 parent 25adf17 commit 2ea2c05
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions tests/display/src/cases/InMacro.hx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class InMacro extends DisplayTestCase {
/**
import haxe.macro.Context;
import haxe.macro.Expr;
class Main {
Expand Down
6 changes: 3 additions & 3 deletions tests/display/src/cases/Issue6399.hx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Issue6399 extends DisplayTestCase {
class Main {
public static function main() {}
macro function foo({-1-}name{-2-}:String, {-3-}struct{-4-}:Expr, {-5-}defaults{-6-}:Expr) {
macro function foo({-1-}name{-2-}:String, {-3-}struct{-4-}:haxe.macro.Expr, {-5-}defaults{-6-}:haxe.macro.Expr) {
return macro {
if ($str{-7-}uct.$n{-8-}ame == null) $str{-9-}uct.$n{-10-}ame = $defa{-11-}ults.$n{-12-}ame;
}
Expand All @@ -20,10 +20,10 @@ class Issue6399 extends DisplayTestCase {

for (i in [7, 9]) {
eq(range(3, 4), position(pos(i)));
eq("Dynamic", type(pos(i)));
eq("haxe.macro.Expr", type(pos(i)));
}

eq(range(5, 6), position(pos(11)));
eq("Dynamic", type(pos(11)));
eq("haxe.macro.Expr", type(pos(11)));
}
}
4 changes: 2 additions & 2 deletions tests/display/src/cases/Issue6417.hx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ class Issue6417 extends DisplayTestCase {
class Main {
static function main() {}
macro function foo({-1-}body{-2-}:Expr) {
macro function foo({-1-}body{-2-}:haxe.macro.Expr) {
macro function() $bo{-3-}dy;
}
}
**/
function test() {
eq(range(1, 2), position(pos(3)));
eq("Dynamic", type(pos(3)));
eq("haxe.macro.Expr", type(pos(3)));
}
}

0 comments on commit 2ea2c05

Please sign in to comment.