Skip to content

Commit 24a8bbf

Browse files
committed
Added one more test case
1 parent 2bd5b2e commit 24a8bbf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

leetcode/0014.Longest-Common-Prefix/14.Longest Common Prefix_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ func Test_Problem14(t *testing.T) {
3333
para14{[]string{"dog", "racecar", "car"}},
3434
ans14{""},
3535
},
36+
37+
{
38+
para14{[]string{"ab", "a"}},
39+
ans14{"a"},
40+
},
3641
}
3742

3843
fmt.Printf("------------------------Leetcode Problem 14------------------------\n")

0 commit comments

Comments
 (0)