Skip to content

Commit

Permalink
Tests for irrationals
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt committed Apr 5, 2016
1 parent db2c6ab commit 321bc26
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
@test e^2.4 == exp(2.4)
@test e^(2//3) == exp(2//3)

@test Float16(3.) < pi
@test pi < Float16(4.)
@test contains(sprint(show,π),"3.14159")

begin
x = [0.0, 1.0, 2.0, 3.0, 4.0]
clamp!(x, 1, 3)
Expand Down

0 comments on commit 321bc26

Please sign in to comment.