Skip to content

Commit

Permalink
Fix rationalize(::Complex) test on 32 bit systems (#50163)
Browse files Browse the repository at this point in the history
* Fix `rationalize(::Complex)` test on 32 bit systems

the test was relying on `Int===Int64`
  • Loading branch information
oscardssmith authored Jun 14, 2023
1 parent 834aad4 commit 0fb86dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/rational.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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, nextfloat(0.1) * im; tol=0) == precise_next * im
@test rationalize(0.1im; tol=eps(0.1)) == rationalize(0.1im)
end

0 comments on commit 0fb86dd

Please sign in to comment.