@@ -834,27 +834,33 @@ end
834
834
end
835
835
836
836
@testset " division" begin
837
- # TODO (PR): Is this the expected value?
838
837
@test_throws OverflowError typemax (T) / T (0.5 )
839
838
@test_throws OverflowError typemin (T) / T (0.5 )
840
839
end
841
840
842
841
@testset " truncating division" begin
843
- # TODO (PR): Is this the expected value?
844
842
@test_throws OverflowError typemax (T) ÷ T (0.5 )
845
843
@test_throws OverflowError typemin (T) ÷ T (0.5 )
846
844
@test_throws OverflowError typemax (T) ÷ eps (T)
847
845
@test_throws OverflowError typemin (T) ÷ eps (T)
846
+
847
+ @test_throws OverflowError div (typemax (T), T (0.5 ), RoundUp)
848
+ @test_throws OverflowError div (typemin (T), T (0.5 ), RoundUp)
849
+ @test_throws OverflowError div (typemax (T), eps (T), RoundUp)
850
+ @test_throws OverflowError div (typemin (T), eps (T), RoundUp)
848
851
end
849
852
850
853
@testset " fld / cld" begin
851
- # TODO (PR): Is this the expected value?
852
854
@test_throws OverflowError fld (typemax (T), T (0.5 ))
853
855
@test_throws OverflowError fld (typemin (T), T (0.5 ))
854
856
@test_throws OverflowError fld (typemax (T), eps (T))
855
857
@test_throws OverflowError fld (typemin (T), eps (T))
856
858
857
- # TODO (PR): Is this the expected value?
859
+ @test_throws OverflowError fld1 (typemax (T), T (0.5 ))
860
+ @test_throws OverflowError fld1 (typemin (T), T (0.5 ))
861
+ @test_throws OverflowError fld1 (typemax (T), eps (T))
862
+ @test_throws OverflowError fld1 (typemin (T), eps (T))
863
+
858
864
@test_throws OverflowError cld (typemax (T), T (0.5 ))
859
865
@test_throws OverflowError cld (typemin (T), T (0.5 ))
860
866
@test_throws OverflowError cld (typemax (T), eps (T))
0 commit comments