From 1a635c185452f4a8254002d72f4abac6b6e11f03 Mon Sep 17 00:00:00 2001 From: Marek Kaluba Date: Thu, 18 Apr 2024 09:16:38 +0200 Subject: [PATCH] test allocations only on 1.10 the number of allocations on nightly increased due to the introduction of Memory{T} in base julia --- test/arithmetic.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/arithmetic.jl b/test/arithmetic.jl index 8ff6728..dc72bb7 100644 --- a/test/arithmetic.jl +++ b/test/arithmetic.jl @@ -287,7 +287,7 @@ end @test Y isa AlgebraElement - @static if VERSION ≥ v"1.9" + @static if VERSION == v"1.10" star(Y) star(Y) @test (@allocations star(Y)) ≤ 4 @@ -300,7 +300,7 @@ end @test_throws SA.UndefRefError all(!iszero, SA.mstructure(fRG).table) - @static if VERSION ≥ v"1.9" + @static if VERSION == v"1.10" @test (@allocations Y * Y) > k^2 - 2 * k @test Y * Y isa AlgebraElement @test (@allocations Y * Y) ≤ 26 @@ -314,7 +314,7 @@ end @test all(!iszero, SA.mstructure(fRG).table) - @static if VERSION ≥ v"1.9" + @static if VERSION == v"1.10" YY = deepcopy(Y) # MA.operate_to!(YY, +, Y, YY) # YY = deepcopy(Y)