From b558aa34875417f7dccb014e09d2c8056267259a Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 1 Aug 2005 21:51:43 +0000 Subject: Three more tests based on recent fixes. --- Test/B03print.ztst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 -- cgit 1.4.1