tests: added tests for "string pad"

This commit is contained in:
Andrew Prokhorenkov
2020-06-17 23:15:14 -05:00
committed by ridiculousfish
parent c8e1894c72
commit f389bb0e97

View File

@@ -42,6 +42,15 @@ string length "hello, world"
string length -q ""; and echo not zero length; or echo zero length
# CHECK: zero length
string pad -l foo
# CHECK: foo
string pad -r -n 4 -c '-' foo
# CHECK: foo----
string pad --left --right -n 2 -c '=' foo
# CHECK: ==foo==
string sub --length 2 abcde
# CHECK: ab