mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 23:11:14 -03:00
tests: added tests for "string pad"
This commit is contained in:
committed by
ridiculousfish
parent
c8e1894c72
commit
f389bb0e97
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user