Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolaru committed May 29, 2024
1 parent 0bdfa8c commit 2b533b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/interval_tests/exact_literals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
@test (@exact 1.2 + 3.4im) isa Complex{<:ExactReal}
@test_throws ArgumentError (@exact 1.2 + 3im)

@test ExactReal{Int64}(3).value == 3
@test_throws MethodError ExactReal{Float64}(1//3)

#

x = @exact 0.5
Expand Down

0 comments on commit 2b533b1

Please sign in to comment.