From 24a8bbfa66bb404cb4262c01522b3e1ebab89547 Mon Sep 17 00:00:00 2001 From: Breno Baptista Date: Mon, 20 Dec 2021 20:48:19 -0300 Subject: [PATCH] Added one more test case --- .../14.Longest Common Prefix_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/leetcode/0014.Longest-Common-Prefix/14.Longest Common Prefix_test.go b/leetcode/0014.Longest-Common-Prefix/14.Longest Common Prefix_test.go index 1ae53d06..e7635d52 100644 --- a/leetcode/0014.Longest-Common-Prefix/14.Longest Common Prefix_test.go +++ b/leetcode/0014.Longest-Common-Prefix/14.Longest Common Prefix_test.go @@ -33,6 +33,11 @@ func Test_Problem14(t *testing.T) { para14{[]string{"dog", "racecar", "car"}}, ans14{""}, }, + + { + para14{[]string{"ab", "a"}}, + ans14{"a"}, + }, } fmt.Printf("------------------------Leetcode Problem 14------------------------\n")