mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-20 10:53:29 +02:00
Three more tests based on recent fixes.
This commit is contained in:
parent
730b7d8c2f
commit
b558aa3487
@ -63,6 +63,14 @@
|
||||
0:test n format specifier
|
||||
>16
|
||||
|
||||
printf '%5b%n\n' abc count >/dev/null; echo $count
|
||||
0:check count of width-specified %b
|
||||
>5
|
||||
|
||||
printf '%s!%5b!\n' abc
|
||||
0:ensure width is applied to empty param
|
||||
>abc! !
|
||||
|
||||
printf '%d\n' 123
|
||||
0:test d format specifier
|
||||
>123
|
||||
@ -71,6 +79,12 @@
|
||||
0:test g format specifier
|
||||
>123.45
|
||||
|
||||
print -f 'arg: %b\n' -C2 '\x41' '\x42' '\x43'
|
||||
0:override -C when -f was given
|
||||
>arg: A
|
||||
>arg: B
|
||||
>arg: C
|
||||
|
||||
# Is anyone not using ASCII
|
||||
printf '%d\n' \'A
|
||||
0:initial quote to get numeric value of character with int
|
||||
|
Loading…
Reference in New Issue
Block a user