@@ -776,10 +776,26 @@ end
776776 @test_throws ErrorException ceil (3.7 m)
777777 @test_throws ErrorException trunc (3.7 m)
778778 @test_throws ErrorException round (3.7 m)
779+ @test_throws ErrorException floor (Integer, 3.7 m)
780+ @test_throws ErrorException ceil (Integer, 3.7 m)
781+ @test_throws ErrorException trunc (Integer, 3.7 m)
782+ @test_throws ErrorException round (Integer, 3.7 m)
783+ @test_throws ErrorException floor (Int, 3.7 m)
784+ @test_throws ErrorException ceil (Int, 3.7 m)
785+ @test_throws ErrorException trunc (Int, 3.7 m)
786+ @test_throws ErrorException round (Int, 3.7 m)
779787 @test floor (1.0314 m/ mm) === 1031.0
780788 @test ceil (1.0314 m/ mm) === 1032.0
781789 @test trunc (- 1.0314 m/ mm) === - 1031.0
782790 @test round (1.0314 m/ mm) === 1031.0
791+ @test floor (Integer, 1.0314 m/ mm) === Integer (1031.0 )
792+ @test ceil (Integer, 1.0314 m/ mm) === Integer (1032.0 )
793+ @test trunc (Integer, - 1.0314 m/ mm) === Integer (- 1031.0 )
794+ @test round (Integer, 1.0314 m/ mm) === Integer (1031.0 )
795+ @test floor (Int16, 1.0314 m/ mm) === Int16 (1031.0 )
796+ @test ceil (Int16, 1.0314 m/ mm) === Int16 (1032.0 )
797+ @test trunc (Int16, - 1.0314 m/ mm) === Int16 (- 1031.0 )
798+ @test round (Int16, 1.0314 m/ mm) === Int16 (1031.0 )
783799end
784800
785801@testset " Sgn, abs, &c." begin
0 commit comments