Skip to content

Commit e0d635d

Browse files
committed
Change array literal in test
1 parent 46bd8e1 commit e0d635d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_setindex.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ end
2525
@test Setfield.setindex(arr, 10.0, 1) ==ₜ Float64[10.0, 2.0, 3.0]
2626
@test Setfield.setindex(ones(2, 2), zeros(2), 1, :) ==ₜ Float64[0.0 0.0; 1.0 1.0]
2727
@test Setfield.setindex(ones(BigInt, 2, 2), zeros(Float32, 2), 1, :) ==ₜ BigFloat[0.0 0.0; 1.0 1.0]
28-
@test Setfield.setindex(fill(ones(1), 2, 2), [im, im], :, 1) ==Any[[im, im];; [[1.0], [1.0]]]
28+
@test Setfield.setindex(fill(ones(1), 2, 2), [im, im], :, 1) ==hcat([im, im], [[1.0], [1.0]])
2929

3030
d = Dict(:a => 1, :b => 2)
3131
@test_throws MethodError Base.setindex(d, 10, :a)

0 commit comments

Comments
 (0)