Skip to content

Commit df664df

Browse files
tests for Static String (#256)
Adding tests from #254
1 parent 2281d7f commit df664df

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/utils.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,11 @@
33
@test PythonCall.Utils.mimes_for(x) isa Vector{String}
44
end
55
end
6+
7+
@testitem "StaticString length and indexing" begin
8+
s = PythonCall.Utils.StaticString{UInt32, 44}("ababababb")
9+
@test length(s) == 9
10+
@test s[1] == 'a'
11+
@test s[1:2] == "ab"
12+
@test s[1:2:end] == "aaaab"
13+
end

0 commit comments

Comments
 (0)