about summary refs log tree commit diff
path: root/Test/B03print.ztst
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2005-08-01 21:51:43 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-08-01 21:51:43 +0000
commitb558aa34875417f7dccb014e09d2c8056267259a (patch)
treeb98544e449d5cdff2b150842131ba70ff5a8a93b /Test/B03print.ztst
parent730b7d8c2fafe199435591e36a21e73004e16b84 (diff)
downloadzsh-b558aa34875417f7dccb014e09d2c8056267259a.tar.gz
zsh-b558aa34875417f7dccb014e09d2c8056267259a.tar.xz
zsh-b558aa34875417f7dccb014e09d2c8056267259a.zip
Three more tests based on recent fixes.
Diffstat (limited to 'Test/B03print.ztst')
-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