Skip to content

Commit 0fb86dd

Browse files
authored
Fix rationalize(::Complex) test on 32 bit systems (#50163)
* Fix `rationalize(::Complex)` test on 32 bit systems the test was relying on `Int===Int64`
1 parent 834aad4 commit 0fb86dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/rational.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,6 @@ end
736736
# test: rationalize(x::Complex; kvs...)
737737
precise_next = 7205759403792795//72057594037927936
738738
@assert Float64(precise_next) == nextfloat(0.1)
739-
@test rationalize(nextfloat(0.1) * im; tol=0) == precise_next * im
739+
@test rationalize(Int64, nextfloat(0.1) * im; tol=0) == precise_next * im
740740
@test rationalize(0.1im; tol=eps(0.1)) == rationalize(0.1im)
741741
end

0 commit comments

Comments
 (0)