@@ -98,35 +98,37 @@ if VERSION < v"0.4.0-dev+1387"
98
98
@test isdefined (Main, :AbstractString )
99
99
end
100
100
101
- @test round (Int, 3 // 4 ) == 1
102
- @test round (Int, 1 ) == 1
103
- @test round (Int, 1.1 ) == 1
104
- @test round (Int, [1 , 1 ]) == [1 , 1 ]
105
- @test round (Int, [1.1 , 1.1 ]) == [1 , 1 ]
106
- @test round (Int, [1 1 ]) == [1 1 ]
107
- @test round (Int, [1.1 1.1 ]) == [1 1 ]
108
- @test round (Int, fill (1.1 , 2 , 3 , 4 )) == fill (1 , 2 , 3 , 4 )
109
- @test ceil (Int, 1 ) == 1
110
- @test ceil (Int, 1.1 ) == 2
111
- @test ceil (Int, [1 , 1 ]) == [1 , 1 ]
112
- @test ceil (Int, [1.1 , 1.1 ]) == [2 , 2 ]
113
- @test ceil (Int, [1 1 ]) == [1 1 ]
114
- @test ceil (Int, [1.1 1.1 ]) == [2 2 ]
115
- @test ceil (Int, fill (1.1 , 2 , 3 , 4 )) == fill (2 , 2 , 3 , 4 )
116
- @test floor (Int, 1 ) == 1
117
- @test floor (Int, 1.1 ) == 1
118
- @test floor (Int, [1 , 1 ]) == [1 , 1 ]
119
- @test floor (Int, [1.1 , 1.1 ]) == [1 , 1 ]
120
- @test floor (Int, [1 1 ]) == [1 1 ]
121
- @test floor (Int, [1.1 1.1 ]) == [1 1 ]
122
- @test floor (Int, fill (1.1 , 2 , 3 , 4 )) == fill (1 , 2 , 3 , 4 )
123
- @test trunc (Int, 1 ) == 1
124
- @test trunc (Int, 1.1 ) == 1
125
- @test trunc (Int, [1 , 1 ]) == [1 , 1 ]
126
- @test trunc (Int, [1.1 , 1.1 ]) == [1 , 1 ]
127
- @test trunc (Int, [1 1 ]) == [1 1 ]
128
- @test trunc (Int, [1.1 1.1 ]) == [1 1 ]
129
- @test trunc (Int, fill (1.1 , 2 , 3 , 4 )) == fill (1 , 2 , 3 , 4 )
101
+ if VERSION < v " 0.6.0-"
102
+ @test round (Int, 3 // 4 ) == 1
103
+ @test round (Int, 1 ) == 1
104
+ @test round (Int, 1.1 ) == 1
105
+ @test round (Int, [1 , 1 ]) == [1 , 1 ]
106
+ @test round (Int, [1.1 , 1.1 ]) == [1 , 1 ]
107
+ @test round (Int, [1 1 ]) == [1 1 ]
108
+ @test round (Int, [1.1 1.1 ]) == [1 1 ]
109
+ @test round (Int, fill (1.1 , 2 , 3 , 4 )) == fill (1 , 2 , 3 , 4 )
110
+ @test ceil (Int, 1 ) == 1
111
+ @test ceil (Int, 1.1 ) == 2
112
+ @test ceil (Int, [1 , 1 ]) == [1 , 1 ]
113
+ @test ceil (Int, [1.1 , 1.1 ]) == [2 , 2 ]
114
+ @test ceil (Int, [1 1 ]) == [1 1 ]
115
+ @test ceil (Int, [1.1 1.1 ]) == [2 2 ]
116
+ @test ceil (Int, fill (1.1 , 2 , 3 , 4 )) == fill (2 , 2 , 3 , 4 )
117
+ @test floor (Int, 1 ) == 1
118
+ @test floor (Int, 1.1 ) == 1
119
+ @test floor (Int, [1 , 1 ]) == [1 , 1 ]
120
+ @test floor (Int, [1.1 , 1.1 ]) == [1 , 1 ]
121
+ @test floor (Int, [1 1 ]) == [1 1 ]
122
+ @test floor (Int, [1.1 1.1 ]) == [1 1 ]
123
+ @test floor (Int, fill (1.1 , 2 , 3 , 4 )) == fill (1 , 2 , 3 , 4 )
124
+ @test trunc (Int, 1 ) == 1
125
+ @test trunc (Int, 1.1 ) == 1
126
+ @test trunc (Int, [1 , 1 ]) == [1 , 1 ]
127
+ @test trunc (Int, [1.1 , 1.1 ]) == [1 , 1 ]
128
+ @test trunc (Int, [1 1 ]) == [1 1 ]
129
+ @test trunc (Int, [1.1 1.1 ]) == [1 1 ]
130
+ @test trunc (Int, fill (1.1 , 2 , 3 , 4 )) == fill (1 , 2 , 3 , 4 )
131
+ end
130
132
131
133
# n % Type
132
134
for T in Any[Int16, Int32, UInt32, Int64, UInt64]
0 commit comments