We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46bd8e1 commit e0d635dCopy full SHA for e0d635d
test/test_setindex.jl
@@ -25,7 +25,7 @@ end
25
@test Setfield.setindex(arr, 10.0, 1) ==ₜ Float64[10.0, 2.0, 3.0]
26
@test Setfield.setindex(ones(2, 2), zeros(2), 1, :) ==ₜ Float64[0.0 0.0; 1.0 1.0]
27
@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]]]
+ @test Setfield.setindex(fill(ones(1), 2, 2), [im, im], :, 1) ==ₜ hcat([im, im], [[1.0], [1.0]])
29
30
d = Dict(:a => 1, :b => 2)
31
@test_throws MethodError Base.setindex(d, 10, :a)
0 commit comments