File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 817
817
end
818
818
819
819
@testset " division" begin
820
+ # TODO (PR): Is this the expected value?
820
821
@test typemax (FD2) / FD2 (0.5 ) == FD2 (- 0.02 )
821
822
@test typemin (FD2) / FD2 (0.5 ) == FD2 (0 )
822
823
end
828
829
@test typemax (FD2) ÷ eps (FD2) == FD2 (- 1 )
829
830
@test typemin (FD2) ÷ eps (FD2) == FD2 (0 )
830
831
end
832
+
833
+ @testset " fld / cld" begin
834
+ # TODO (PR): Is this the expected value?
835
+ @test fld (typemax (FD2), FD2 (0.5 )) == FD2 (- 0.16 )
836
+ @test fld (typemin (FD2), FD2 (0.5 )) == FD2 (- 0.84 )
837
+ @test fld (typemax (FD2), eps (FD2)) == FD2 (- 1 )
838
+ @test fld (typemin (FD2), eps (FD2)) == FD2 (0 )
839
+
840
+ # TODO (PR): Is this the expected value?
841
+ @test cld (typemax (FD2), FD2 (0.5 )) == FD2 (0.84 )
842
+ @test cld (typemin (FD2), FD2 (0.5 )) == FD2 (0.16 )
843
+ @test cld (typemax (FD2), eps (FD2)) == FD2 (- 1 )
844
+ @test cld (typemin (FD2), eps (FD2)) == FD2 (0 )
845
+ end
846
+
847
+ @testset " abs / neg" begin
848
+ @test abs (typemin (FD2)) == typemin (FD2)
849
+ @test - (typemin (FD2)) == typemin (FD2)
850
+ end
831
851
end
832
852
833
853
@testset " isinteger" begin
You can’t perform that action at this time.
0 commit comments