We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b1ca4e commit 82577e7Copy full SHA for 82577e7
test/problems/14.longest-common-prefix.jl
@@ -2,4 +2,7 @@
2
@test longest_common_prefix(["flower", "flow", "flight"]) == "fl"
3
@test longest_common_prefix(["dog", "racecar", "car"]) == ""
4
@test longest_common_prefix(["reflower", "flow", "flight"]) == ""
5
+ @test longest_common_prefix(["abc"]) == "abc"
6
+ @test longest_common_prefix(fill("abc", 5)) == "abc"
7
+ @test longest_common_prefix(fill("", 4)) == ""
8
end
0 commit comments