Skip to content

Commit

Permalink
Add test for missing rationalize error
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt committed Sep 23, 2016
1 parent 70c5e24 commit e6635fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/numbers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,7 @@ f9085() = typemax(UInt64) != 2.0^64

@test @inferred(rationalize(Int, 3.0, 0.0)) === 3//1
@test @inferred(rationalize(Int, 3.0, 0)) === 3//1
@test_throws ArgumentError rationalize(Int, big(3.0), -1.)

for a = -5:5, b = -5:5
if a == b == 0; continue; end
Expand Down

0 comments on commit e6635fa

Please sign in to comment.