Skip to content

Commit

Permalink
Small missing tests for Irrationals
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt committed Aug 31, 2024
1 parent 42d0010 commit 7981691
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/numbers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,8 @@ end
end

@testset "Irrationals compared with Rationals and Floats" begin
@test pi != Float64(pi)
@test Float64(pi) != pi
@test Float64(pi,RoundDown) < pi
@test Float64(pi,RoundUp) > pi
@test !(Float64(pi,RoundDown) > pi)
Expand All @@ -1176,6 +1178,7 @@ end
@test nextfloat(big(pi)) > pi
@test !(prevfloat(big(pi)) > pi)
@test !(nextfloat(big(pi)) < pi)
@test big(typeof(pi)) == BigFloat

@test 2646693125139304345//842468587426513207 < pi
@test !(2646693125139304345//842468587426513207 > pi)
Expand Down

0 comments on commit 7981691

Please sign in to comment.