Skip to content

Commit b02837d

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 c2c19b5 commit b02837d

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
@@ -452,7 +452,7 @@ end
452452
@test length(r) == 256
453453
QInt1 = Fixed{Int,1}
454454
@test length(QInt1(0):eps(QInt1):typemax(QInt1)-eps(QInt1)) == typemax(Int)
455-
@test Base.unsafe_length(typemin(QInt1):eps(QInt1):typemax(QInt1)-eps(QInt1)) == -1
455+
@test_throws OverflowError length(typemin(QInt1):eps(QInt1):typemax(QInt1)-eps(QInt1))
456456
@test_throws OverflowError length(QInt1(-1):eps(QInt1):typemax(QInt1)-eps(QInt1))
457457
end
458458

test/normed.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,6 @@ end
455455
NInt1 = Normed{UInt,1}
456456
@test length(NInt1(0):typemax(NInt1)-oneunit(NInt1)) == typemax(UInt)
457457
@test_throws OverflowError length(NInt1(0):typemax(NInt1))
458-
@test Base.unsafe_length(NInt1(0):typemax(NInt1)) == 0 # overflow
459458
N64f64 = Normed{UInt128,64}
460459
@test_broken length(N64f64(0):typemax(N64f64)) == UInt128(typemax(UInt64)) + 1
461460
@test length(N1f63(2):N1f63(0)) == 0

0 commit comments

Comments
 (0)