From 3aa831f7d9ffd4758341597036ea20080ee45ac2 Mon Sep 17 00:00:00 2001 From: Neven Sajko Date: Fri, 30 Aug 2024 05:02:26 +0200 Subject: [PATCH] expand tests --- test/math.jl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/math.jl b/test/math.jl index b02b797ed5b20c..c67a4ab9d8f9ab 100644 --- a/test/math.jl +++ b/test/math.jl @@ -1506,7 +1506,12 @@ end Base.promote_rule(::Type{Issue55633}, ::Type{Issue55633Squared}) = Int Base.convert(::Type{Int}, ::Issue55633) = 3 Base.convert(::Type{Int}, ::Issue55633Squared) = 9 - @test 9 === Issue55633()^2 + for x ∈ (im, pi, [1 2; 3 4], Issue55633()) + p = promote(x, x*x) + for y ∈ 1:2 + @test all((t -> ===(t...)), zip(x^y, p[y])) + end + end end # Test that sqrt behaves correctly and doesn't exhibit fp80 double rounding.