Skip to content

Commit

Permalink
Test for endswith (JuliaLang#39649)
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt committed Feb 14, 2021
1 parent 1eb5d78 commit 3d95d47
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/strings/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -403,3 +403,10 @@ end
a, b, c... = s
@test c === "cd"
end

@testset "endswith" begin
A = "Fun times with Julialang"
B = "A language called Julialang"
@test endswith(A, split(B, ' ')[end])
@test endswith(A, 'g')
end

0 comments on commit 3d95d47

Please sign in to comment.