Skip to content

Commit 43629f8

Browse files
committed
test macroexpand1 -> eval
1 parent 121be7e commit 43629f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parsing.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -592,20 +592,20 @@ end
592592
# when using KernelAbstractions, something leaks from the 1st leading 2nd to error
593593
block = 64
594594
@tullio A[i] := (1:10)[i]^2 threads=block # Symbol
595-
@test_throws LoadError @macroexpand1 @tullio A[i] := (1:10)[i]^2 threads=:maybe
595+
@test_throws LoadError @eval @tullio A[i] := (1:10)[i]^2 threads=:maybe
596596

597597
# keyword verbose accepts values [true, false, 2, 3]
598598
@tullio A[i] := (1:10)[i]^2 verbose=1 avx=false # @error: rejected by LoopVectorization's check_args
599599
@tullio A[i] := (1:10)[i]^2 verbose=false
600-
@test_throws LoadError @macroexpand1 @tullio A[i] := (1:10)[i]^2 verbose=4
600+
@test_throws LoadError @eval @tullio A[i] := (1:10)[i]^2 verbose=4
601601

602602
# keyword grad accepts values [false, Base, Dual]
603603
@tullio A[i] := (1:10)[i]^2 grad=false
604604
@tullio A[i] := (1:10)[i]^2 grad=Base
605-
@test_throws LoadError @macroexpand1 @tullio A[i] := (1:10)[i]^2 grad=true
605+
@test_throws LoadError @eval @tullio A[i] := (1:10)[i]^2 grad=true
606606

607607
# recognised keywords are [:threads, :verbose, :avx, :cuda, :grad]
608-
@test_throws LoadError @macroexpand1 @tullio A[i] := (1:10)[i]^2 key=nothing
608+
@test_throws LoadError @eval @tullio A[i] := (1:10)[i]^2 key=nothing
609609

610610
end
611611

0 commit comments

Comments
 (0)