Skip to content

Commit fbc8ef7

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

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
@@ -647,7 +647,7 @@ end
647647
@test length(r) == 256
648648
QInt1 = Fixed{Int,1}
649649
@test length(QInt1(0):eps(QInt1):typemax(QInt1)-eps(QInt1)) == typemax(Int)
650-
@test Base.unsafe_length(typemin(QInt1):eps(QInt1):typemax(QInt1)-eps(QInt1)) == -1
650+
@test_throws OverflowError length(typemin(QInt1):eps(QInt1):typemax(QInt1)-eps(QInt1))
651651
@test_throws OverflowError length(QInt1(-1):eps(QInt1):typemax(QInt1)-eps(QInt1))
652652
end
653653

test/normed.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,6 @@ end
607607
NInt1 = Normed{UInt,1}
608608
@test length(NInt1(0):typemax(NInt1)-oneunit(NInt1)) == typemax(UInt)
609609
@test_throws OverflowError length(NInt1(0):typemax(NInt1))
610-
@test Base.unsafe_length(NInt1(0):typemax(NInt1)) == 0 # overflow
611610
N64f64 = Normed{UInt128,64}
612611
@test_broken length(N64f64(0):typemax(N64f64)) == UInt128(typemax(UInt64)) + 1
613612
@test length(N1f63(2):N1f63(0)) == 0

0 commit comments

Comments
 (0)