Skip to content

Commit

Permalink
More tests for 14.longest-common-prefix.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
GHTaarn authored Feb 20, 2024
1 parent 4b1ca4e commit 82577e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/problems/14.longest-common-prefix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
@test longest_common_prefix(["flower", "flow", "flight"]) == "fl"
@test longest_common_prefix(["dog", "racecar", "car"]) == ""
@test longest_common_prefix(["reflower", "flow", "flight"]) == ""
@test longest_common_prefix(["abc"]) == "abc"
@test longest_common_prefix(fill("abc", 5)) == "abc"
@test longest_common_prefix(fill("", 4)) == ""
end

0 comments on commit 82577e7

Please sign in to comment.