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)
164164 @test all (x-> x == 2f0 , Array (x1))
165165 @test all (x-> x == Int32 (77 ), Array (x2))
166166
167- x = Matrix {T} (I, 2 , 2 )
167+ x = Matrix {T} (I, 4 , 2 )
168168
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 ))
172172
173173 @test Array (x1) ≈ x
174174 @test Array (x2) ≈ x
175175 @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
176187 end
177188 end
178189end
You can’t perform that action at this time.
0 commit comments