Skip to content

Commit 2a2fa98

Browse files
committed
Fix diaply test with rational bounds
1 parent df225b9 commit 2a2fa98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/display_tests/display.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ let x, b
6666
end
6767

6868
@testset "Interval{Rational{T}}" begin
69-
a = interval(Rational{Int64}, 1//3, 5//4)
69+
a = interval(Rational{Int}, 1//3, 5//4)
7070
@test typeof(a) == Interval{Rational{Int}}
7171

7272
setformat(:standard)
7373
@test sprint(show, MIME("text/plain"), a) == "[1//3, 5//4]"
7474

7575
setformat(:full)
76-
@test sprint(show, MIME("text/plain"), a) == "Interval{Rational{Int64}}(1//3, 5//4)"
76+
@test sprint(show, MIME("text/plain"), a) == string(typeof(a), "(1//3, 5//4)")
7777

7878
setformat(:midpoint)
7979
@test sprint(show, MIME("text/plain"), a) == "19//24 ± 11//24"

0 commit comments

Comments
 (0)