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 474
474
@test length (r) == 256
475
475
QInt1 = Fixed{Int,1 }
476
476
@test length (QInt1 (0 ): eps (QInt1): typemax (QInt1)- eps (QInt1)) == typemax (Int)
477
- @test Base . unsafe_length (typemin (QInt1): eps (QInt1): typemax (QInt1)- eps (QInt1)) == - 1
477
+ @test_throws OverflowError length (typemin (QInt1): eps (QInt1): typemax (QInt1)- eps (QInt1))
478
478
@test_throws OverflowError length (QInt1 (- 1 ): eps (QInt1): typemax (QInt1)- eps (QInt1))
479
479
end
480
480
Original file line number Diff line number Diff line change 477
477
NInt1 = Normed{UInt,1 }
478
478
@test length (NInt1 (0 ): typemax (NInt1)- oneunit (NInt1)) == typemax (UInt)
479
479
@test_throws OverflowError length (NInt1 (0 ): typemax (NInt1))
480
- @test Base. unsafe_length (NInt1 (0 ): typemax (NInt1)) == 0 # overflow
481
480
N64f64 = Normed{UInt128,64 }
482
481
@test_broken length (N64f64 (0 ): typemax (N64f64)) == UInt128 (typemax (UInt64)) + 1
483
482
@test length (N1f63 (2 ): N1f63 (0 )) == 0
You can’t perform that action at this time.
0 commit comments