From 9b62b28c5827454d92db7e51b4503dbc6ba946f4 Mon Sep 17 00:00:00 2001 From: hyrodium Date: Wed, 8 Jun 2022 01:33:02 +0900 Subject: [PATCH] add tests for setindex with Array{string} --- lib/ArrayInterfaceCore/test/runtests.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ArrayInterfaceCore/test/runtests.jl b/lib/ArrayInterfaceCore/test/runtests.jl index 291883cf0..73fac3613 100644 --- a/lib/ArrayInterfaceCore/test/runtests.jl +++ b/lib/ArrayInterfaceCore/test/runtests.jl @@ -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