Skip to content

Commit 82577e7

Browse files
authored
More tests for 14.longest-common-prefix.jl
1 parent 4b1ca4e commit 82577e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/problems/14.longest-common-prefix.jl

+3
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
@test longest_common_prefix(["flower", "flow", "flight"]) == "fl"
33
@test longest_common_prefix(["dog", "racecar", "car"]) == ""
44
@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)) == ""
58
end

0 commit comments

Comments
 (0)