From 20fc674a0f8b1d51c1c32d9b4379df6914953664 Mon Sep 17 00:00:00 2001 From: serenity4 Date: Sat, 27 Jul 2024 13:48:04 +0200 Subject: [PATCH] Adjust test bound --- test/runtests.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 0888c6b..6e5fff9 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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