Skip to content

Commit

Permalink
Add test for AbstractString ends/startswith (JuliaLang#45227)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt committed May 9, 2022
1 parent 78c53b0 commit c3cff17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/strings/basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,9 @@ end
@test all(x -> x == "12", svec)
@test svec isa Vector{AbstractString}
end
# test startswith and endswith for AbstractString
@test endswith(GenericString("abcd"), GenericString("cd"))
@test startswith(GenericString("abcd"), GenericString("ab"))
end

@testset "issue #10307" begin
Expand Down

0 comments on commit c3cff17

Please sign in to comment.