diff --git a/test/utils.jl b/test/utils.jl index de8952fb..a0d38492 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -3,3 +3,11 @@ @test PythonCall.Utils.mimes_for(x) isa Vector{String} end end + +@testitem "StaticString length and indexing" begin + s = PythonCall.Utils.StaticString{UInt32, 44}("ababababb") + @test length(s) == 9 + @test s[1] == 'a' + @test s[1:2] == "ab" + @test s[1:2:end] == "aaaab" +end