Skip to content

Commit 264650a

Browse files
JeffreySarnoffsimonbyrne
authored andcommitted
Update runtests.jl (#17)
1 parent 71907aa commit 264650a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/runtests.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ end
4545
@test y == flipsign(y, 1)
4646
end
4747

48+
@testset "arithmetic" begin
49+
fpi = Float128(pi)
50+
finvpi = inv(fpi)
51+
@test (fpi + 3) - fpi == 3
52+
@test fpi * finvpi === one(Float128)
53+
@test finvpi / fpi == finvpi^2
54+
end
55+
4856
@testset "modf" begin
4957
x = Float128(pi)
5058
fpart, ipart = modf(x)

0 commit comments

Comments
 (0)