From 16452f17f1d2f92fdfbecadd56d2ec263c463f03 Mon Sep 17 00:00:00 2001 From: Oscar Smith Date: Wed, 14 Jun 2023 08:42:52 -0400 Subject: [PATCH 1/2] Fix `rationalize(::Complex)` test on 32 bit systems the test was relying on `Int===Int64` --- test/rational.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/rational.jl b/test/rational.jl index 0a2501c066052..ac01b17409090 100644 --- a/test/rational.jl +++ b/test/rational.jl @@ -737,5 +737,5 @@ end precise_next = 7205759403792795//72057594037927936 @assert Float64(precise_next) == nextfloat(0.1) @test rationalize(nextfloat(0.1) * im; tol=0) == precise_next * im - @test rationalize(0.1im; tol=eps(0.1)) == rationalize(0.1im) + @test rationalize(Int64, 0.1im; tol=eps(0.1)) == rationalize(0.1im) end From 2138f16623a0edd595986cc542b60001ca684703 Mon Sep 17 00:00:00 2001 From: Oscar Smith Date: Wed, 14 Jun 2023 08:49:39 -0400 Subject: [PATCH 2/2] oops --- test/rational.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/rational.jl b/test/rational.jl index ac01b17409090..4b29618bd15e0 100644 --- a/test/rational.jl +++ b/test/rational.jl @@ -736,6 +736,6 @@ end # test: rationalize(x::Complex; kvs...) precise_next = 7205759403792795//72057594037927936 @assert Float64(precise_next) == nextfloat(0.1) - @test rationalize(nextfloat(0.1) * im; tol=0) == precise_next * im - @test rationalize(Int64, 0.1im; tol=eps(0.1)) == rationalize(0.1im) + @test rationalize(Int64, nextfloat(0.1) * im; tol=0) == precise_next * im + @test rationalize(0.1im; tol=eps(0.1)) == rationalize(0.1im) end