Skip to content

Commit 6eb5fe6

Browse files
committed
Remove div test on Julia 1.6
1 parent 06fe0af commit 6eb5fe6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/unittests.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,10 +1240,12 @@ end
12401240
x = Q{Int}(10, length=1)
12411241
y = Q{Int}(3, mass=-1)
12421242
@test div(x, y) == Q{Int}(3, length=1, mass=1)
1243-
@test div(x, y, RoundFromZero) == Q{Int}(4, length=1, mass=1)
12441243
@test div(x, 3) == Q{Int}(3, length=1)
1245-
@test div(x, 3, RoundFromZero) == Q{Int}(4, length=1)
12461244
@test div(10, y) == Q{Int}(3, mass=1)
1247-
@test div(10, y, RoundFromZero) == Q{Int}(4, mass=1)
1245+
if VERSION >= v"1.9"
1246+
@test div(x, y, RoundFromZero) == Q{Int}(4, length=1, mass=1)
1247+
@test div(x, 3, RoundFromZero) == Q{Int}(4, length=1)
1248+
@test div(10, y, RoundFromZero) == Q{Int}(4, mass=1)
1249+
end
12481250
end
12491251
end

0 commit comments

Comments
 (0)