File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -164,15 +164,26 @@ function value_constructor(AT)
164
164
@test all (x-> x == 2f0 , Array (x1))
165
165
@test all (x-> x == Int32 (77 ), Array (x2))
166
166
167
- x = Matrix {T} (I, 2 , 2 )
167
+ x = Matrix {T} (I, 4 , 2 )
168
168
169
- x1 = AT {T, 2} (I, 2 , 2 )
170
- x2 = AT {T} (I, (2 , 2 ))
171
- x3 = AT {T, 2} (I, (2 , 2 ))
169
+ x1 = AT {T, 2} (I, 4 , 2 )
170
+ x2 = AT {T} (I, (4 , 2 ))
171
+ x3 = AT {T, 2} (I, (4 , 2 ))
172
172
173
173
@test Array (x1) ≈ x
174
174
@test Array (x2) ≈ x
175
175
@test Array (x3) ≈ x
176
+
177
+ x = Matrix (T (3 ) * I, 2 , 4 )
178
+ x1 = AT (T (3 ) * I, 2 , 4 )
179
+ @test eltype (x1) == T
180
+ @test Array (x1) ≈ x
181
+
182
+ x = fill (T (3 ), (2 , 4 ))
183
+ x1 = fill (AT{T}, T (3 ), (2 , 4 ))
184
+ copyto! (x, 2 I)
185
+ copyto! (x1, 2 I)
186
+ @test Array (x1) ≈ x
176
187
end
177
188
end
178
189
end
You can’t perform that action at this time.
0 commit comments