From 19be943e1483e6226745880a25f9da6565eb56e2 Mon Sep 17 00:00:00 2001 From: Andy Dienes Date: Sun, 5 Oct 2025 10:29:02 -0400 Subject: [PATCH] add tests for typemin power of float --- test/math.jl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/math.jl b/test/math.jl index 6be53cf642bf3..d04b027e60575 100644 --- a/test/math.jl +++ b/test/math.jl @@ -442,6 +442,15 @@ end @test isnan(exp(reinterpret(Float64, 0x7ffbb14880000000))) end +@testset "issue #57463" begin + for T in (Int16, Int32, Int64, Int128) + @test iszero(1.1^typemin(T)) + @test iszero(0.9^typemax(T)) + @test isinf(1.1^typemax(T)) + @test isinf(0.9^typemin(T)) + end +end + @testset "test abstractarray trig functions" begin TAA = rand(2,2) TAA = (TAA + TAA')/2.