Skip to content

Commit

Permalink
Adapt @attr tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Sep 17, 2024
1 parent 75e9160 commit 64ed4f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Attributes-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ end
# the following tests need the improved `@macroexpand` from Julia 1.7
@testset "@attr error handling" begin
# wrong number of arguments
@test_throws ArgumentError @macroexpand @attr foo() = 1
@test_throws ArgumentError @macroexpand @attr foo(x::Int, y::Int) = 1
@test_throws ArgumentError @macroexpand @attr Any foo() = 1
@test_throws ArgumentError @macroexpand @attr Any foo(x::Int, y::Int) = 1
@test_throws ArgumentError @macroexpand @attr Int foo() = 1
@test_throws ArgumentError @macroexpand @attr Int foo(x::Int, y::Int) = 1
@test_throws MethodError @macroexpand @attr Int foo(x::Int) = 1 Any
Expand Down

0 comments on commit 64ed4f1

Please sign in to comment.