Skip to content

Commit

Permalink
Small missing tests for Irrationals (#55657)
Browse files Browse the repository at this point in the history
Looks like a bunch of methods for `Irrational`s are tested but not
picked up by coverage...
  • Loading branch information
kshyatt committed Sep 12, 2024
1 parent b8d0111 commit 3374b33
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 3374b33

Please sign in to comment.