Skip to content

Commit 766ba23

Browse files
Kristoffer Carlssonjohnnychen94kimikage
committed
fix tests on 1.7 (#253)
Co-authored-by: Johnny Chen <[email protected]> Co-authored-by: kimikage <[email protected]>
1 parent 1fa3927 commit 766ba23

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

test/fixed.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ end
474474
@test length(r) == 256
475475
QInt1 = Fixed{Int,1}
476476
@test length(QInt1(0):eps(QInt1):typemax(QInt1)-eps(QInt1)) == typemax(Int)
477-
@test Base.unsafe_length(typemin(QInt1):eps(QInt1):typemax(QInt1)-eps(QInt1)) == -1
477+
@test_throws OverflowError length(typemin(QInt1):eps(QInt1):typemax(QInt1)-eps(QInt1))
478478
@test_throws OverflowError length(QInt1(-1):eps(QInt1):typemax(QInt1)-eps(QInt1))
479479
end
480480

test/normed.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,6 @@ end
477477
NInt1 = Normed{UInt,1}
478478
@test length(NInt1(0):typemax(NInt1)-oneunit(NInt1)) == typemax(UInt)
479479
@test_throws OverflowError length(NInt1(0):typemax(NInt1))
480-
@test Base.unsafe_length(NInt1(0):typemax(NInt1)) == 0 # overflow
481480
N64f64 = Normed{UInt128,64}
482481
@test_broken length(N64f64(0):typemax(N64f64)) == UInt128(typemax(UInt64)) + 1
483482
@test length(N1f63(2):N1f63(0)) == 0

0 commit comments

Comments
 (0)