summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Test/B03print.ztst14
1 files changed, 14 insertions, 0 deletions
diff --git a/Test/B03print.ztst b/Test/B03print.ztst
index 93cb9ea89..2498b0fd8 100644
--- a/Test/B03print.ztst
+++ b/Test/B03print.ztst
@@ -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