File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change 647
647
@test length (r) == 256
648
648
QInt1 = Fixed{Int,1 }
649
649
@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))
651
651
@test_throws OverflowError length (QInt1 (- 1 ): eps (QInt1): typemax (QInt1)- eps (QInt1))
652
652
end
653
653
Original file line number Diff line number Diff line change 607
607
NInt1 = Normed{UInt,1 }
608
608
@test length (NInt1 (0 ): typemax (NInt1)- oneunit (NInt1)) == typemax (UInt)
609
609
@test_throws OverflowError length (NInt1 (0 ): typemax (NInt1))
610
- @test Base. unsafe_length (NInt1 (0 ): typemax (NInt1)) == 0 # overflow
611
610
N64f64 = Normed{UInt128,64 }
612
611
@test_broken length (N64f64 (0 ): typemax (N64f64)) == UInt128 (typemax (UInt64)) + 1
613
612
@test length (N1f63 (2 ): N1f63 (0 )) == 0
You can’t perform that action at this time.
0 commit comments