Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow nonconstant globals to not allocate in 1.12 tests #130

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ using Chairmarks: Sample, Benchmark
slow = @b interpolation_test_global + 1 evals=300 # evals must be specified for checksums to match
fast = @b $interpolation_test_global + 1 evals=300
@test slow.checksum == fast.checksum
@test slow.allocs > 0
@test slow.allocs > 0 || VERSION > v"1.12.0-DEV" # This doesn't allocate in 1.12.
@test fast.allocs == 0
@test 2fast.time < slow.time # should be about 100x

Expand Down
Loading