Skip to content

Commit

Permalink
test: skip inference tests on 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Aug 3, 2024
1 parent f7b6090 commit abf1333
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -996,9 +996,13 @@ end

# Can call with variable number of arguments:
@test fixed_vararg_f(1, 2, 3, 4) == 1 + 10 * 6 + sum((2, 3, 4))
@inferred fixed_vararg_f(1, 2, 3, 4)
if VERSION >= v"1.7.0"
@inferred fixed_vararg_f(1, 2, 3, 4)
end
@test fixed_vararg_f(5) == 5 + 10 * 6
@inferred fixed_vararg_f(5)
if VERSION >= v"1.7.0"
@inferred fixed_vararg_f(5)
end
end
@testset "Errors should propagate normally" begin
error_f = (x, y) -> sin(x * y)
Expand Down

0 comments on commit abf1333

Please sign in to comment.