1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-07 06:02:27 +08:00

fix: fix bugs of PadEnd and PadStart

This commit is contained in:
dudaodong
2023-02-19 12:34:39 +08:00
parent a774c060ce
commit 84cd68de7f
3 changed files with 45 additions and 33 deletions

View File

@@ -171,6 +171,7 @@ func TestLowerFirst(t *testing.T) {
func TestPadEnd(t *testing.T) {
assert := internal.NewAssert(t, "TestPadEnd")
assert.Equal("a ", PadEnd("a", 2, " "))
assert.Equal("a", PadEnd("a", 1, "b"))
assert.Equal("ab", PadEnd("a", 2, "b"))
assert.Equal("abcdmn", PadEnd("abcd", 6, "mno"))