Skip to content

Commit

Permalink
add tests for setindex with Array{string}
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrodium committed Jun 7, 2022
1 parent 748fc97 commit 9b62b28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/ArrayInterfaceCore/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ end
@test iszero(x)
@test all(isone, y2)
end

@testset "string" begin
x = fill("a", 2, 3)
@test setindex(x, "b", 2, 1) == setindex(x, "b", CartesianIndex(2, 1)) == ["a" "a" "a";"b" "a" "a"]
end
end

@testset "Sparsity Structure" begin
Expand Down

0 comments on commit 9b62b28

Please sign in to comment.