Skip to content

Commit

Permalink
A test is no longer broken (was broken on 1.10.0 but is fixed on 1.10…
Browse files Browse the repository at this point in the history
….2) (#919)
  • Loading branch information
DilumAluthge committed Mar 7, 2024
1 parent dceb621 commit 5a3aaa6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/scalarstats.jl
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,7 @@ x = sort!(vcat([5:-1:i for i in 1:5]...))
@test mad(Iterators.repeated(4, 10)) == 0
@test mad(Integer[1,2,3,4]) === mad(1:4)
let itr = (i for i in 1:10000)
if VERSION >= v"1.10.0-"
# FIXME: Allocations are closer to 10x this on 1.10
@test_broken (@benchmark mad($itr)).allocs < 200
else
@test (@benchmark mad($itr)).allocs < 200
end
@test (@benchmark mad($itr)).allocs < 200
end

# Issue 197
Expand Down

0 comments on commit 5a3aaa6

Please sign in to comment.