Skip to content

Commit

Permalink
Adjust test bound
Browse files Browse the repository at this point in the history
  • Loading branch information
serenity4 committed Jul 27, 2024
1 parent 812884d commit 20fc674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,8 @@ end
@testset "no allocs S2" begin
obj = S2(3, UInt32(5))
@test 0 == hot_loop_allocs(constructorof, typeof(obj))
if VERSION v"1.3"
@test 32 == hot_loop_allocs(setproperties, obj, (; a = nothing, b = Int32(6)))
if VERSION < v"1.6"
@test 32 hot_loop_allocs(setproperties, obj, (; a = nothing, b = Int32(6)))
else
@test 0 == hot_loop_allocs(setproperties, obj, (; a = nothing, b = Int32(6)))
end
Expand Down

0 comments on commit 20fc674

Please sign in to comment.