Skip to content

Commit

Permalink
fix tests for 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Jul 5, 2021
1 parent b47761a commit f1da94b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/urange.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ using .ModU: URange
@test_throws BoundsError r[0]
@test r[2:8] === URange(T(-4), T(2))
@test r .+ 1 === -T(4):T(4)
@test 2*r === -T(10):T(2):T(6)
@test T(2)*r === T(1)*(-T(10):T(2):T(6))
k = -6
for i in r
@test i == (k+=1)
Expand Down
2 changes: 1 addition & 1 deletion test/zerorange.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ using .ModZ: ZeroRange
@test r[1:3] === 0:2
@test_throws BoundsError r[r]
@test r .+ 1 === 1:3
@test 2*r === 0:2:4
@test 2*r === 1*(0:2:4)
k = -1
for i in r
j = (k+=1)
Expand Down

0 comments on commit f1da94b

Please sign in to comment.