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 452
452
@test length (r) == 256
453
453
QInt1 = Fixed{Int,1 }
454
454
@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))
456
456
@test_throws OverflowError length (QInt1 (- 1 ): eps (QInt1): typemax (QInt1)- eps (QInt1))
457
457
end
458
458
Original file line number Diff line number Diff line change 455
455
NInt1 = Normed{UInt,1 }
456
456
@test length (NInt1 (0 ): typemax (NInt1)- oneunit (NInt1)) == typemax (UInt)
457
457
@test_throws OverflowError length (NInt1 (0 ): typemax (NInt1))
458
- @test Base. unsafe_length (NInt1 (0 ): typemax (NInt1)) == 0 # overflow
459
458
N64f64 = Normed{UInt128,64 }
460
459
@test_broken length (N64f64 (0 ): typemax (N64f64)) == UInt128 (typemax (UInt64)) + 1
461
460
@test length (N1f63 (2 ): N1f63 (0 )) == 0
You can’t perform that action at this time.
0 commit comments