Skip to content

Commit

Permalink
Remove a warning from tests (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner authored Dec 1, 2024
1 parent 3051d66 commit d35483b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ else
@test length(b.samples) == 2
@test all(s -> s.warmup == 1 && s.evals == 4, b.samples)

b = @be @eval((f(x) = x^2+x^3+x)(7)) seconds=nextfloat(0.0)
b = @be @eval((x -> x^2+x^3+x)(7)) seconds=nextfloat(0.0)
@test Chairmarks.only(b.samples).warmup == 1 || VERSION < v"1.8" # in versions below 1.8 we don't track compile time so we'd skip warmup here.
@test Chairmarks.only(b.samples).evals == 1
end
Expand Down

0 comments on commit d35483b

Please # to comment.