Skip to content

Commit 8e51d70

Browse files
committed
No: 125 add test case
1 parent 17228ec commit 8e51d70

File tree

3 files changed

+30
-0
lines changed
  • questions
    • serial/简单/125/golang
    • tags
      • 双指针/简单/valid-palindrome/golang
      • 字符串/简单/valid-palindrome/golang

3 files changed

+30
-0
lines changed

questions/serial/简单/125/golang/main.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ func main() {
3232
input: "race a car",
3333
want: false,
3434
},
35+
{
36+
name: "test-a.",
37+
input: "a.",
38+
want: true,
39+
},
40+
{
41+
name: "test-a...............",
42+
input: "a...............",
43+
want: true,
44+
},
3545
}
3646

3747
testLog := leet.NewTestLog(len(tests))

questions/tags/双指针/简单/valid-palindrome/golang/main.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ func main() {
3232
input: "race a car",
3333
want: false,
3434
},
35+
{
36+
name: "test-a.",
37+
input: "a.",
38+
want: true,
39+
},
40+
{
41+
name: "test-a...............",
42+
input: "a...............",
43+
want: true,
44+
},
3545
}
3646

3747
testLog := leet.NewTestLog(len(tests))

questions/tags/字符串/简单/valid-palindrome/golang/main.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ func main() {
3232
input: "race a car",
3333
want: false,
3434
},
35+
{
36+
name: "test-a.",
37+
input: "a.",
38+
want: true,
39+
},
40+
{
41+
name: "test-a...............",
42+
input: "a...............",
43+
want: true,
44+
},
3545
}
3646

3747
testLog := leet.NewTestLog(len(tests))

0 commit comments

Comments
 (0)