Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/fixed.jl
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ end
@test length(r) == 256
QInt1 = Fixed{Int,1}
@test length(QInt1(0):eps(QInt1):typemax(QInt1)-eps(QInt1)) == typemax(Int)
@test Base.unsafe_length(typemin(QInt1):eps(QInt1):typemax(QInt1)-eps(QInt1)) == -1
@test_throws OverflowError length(typemin(QInt1):eps(QInt1):typemax(QInt1)-eps(QInt1))
@test_throws OverflowError length(QInt1(-1):eps(QInt1):typemax(QInt1)-eps(QInt1))
end

Expand Down
2 changes: 1 addition & 1 deletion test/normed.jl
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ end
NInt1 = Normed{UInt,1}
@test length(NInt1(0):typemax(NInt1)-oneunit(NInt1)) == typemax(UInt)
@test_throws OverflowError length(NInt1(0):typemax(NInt1))
@test Base.unsafe_length(NInt1(0):typemax(NInt1)) == 0 # overflow
@test_throws OverflowError length(NInt1(0):typemax(NInt1))
N64f64 = Normed{UInt128,64}
@test_broken length(N64f64(0):typemax(N64f64)) == UInt128(typemax(UInt64)) + 1
@test length(N1f63(2):N1f63(0)) == 0
Expand Down