Skip to content

Commit aa937a4

Browse files
committed
add tests for setindex with Array{string}
1 parent 2389007 commit aa937a4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/ArrayInterfaceCore/test/runtests.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ end
211211
@test iszero(x)
212212
@test all(isone, y2)
213213
end
214+
215+
@testset "string" begin
216+
x = fill("a", 2, 3)
217+
@test setindex(x, "b", 2, 1) == setindex(x, "b", CartesianIndex(2, 1)) == ["a" "a" "a";"b" "a" "a"]
218+
end
214219
end
215220

216221
@testset "Sparsity Structure" begin

0 commit comments

Comments
 (0)