Also test \0 in the format string.
This commit is contained in:
parent
5d971d4895
commit
a87ba6e923
Binary file not shown.
@ -7,7 +7,7 @@ echo '1..8'
|
||||
REGRESSION_TEST(`b', `printf "abc%b%b" "def\n" "\cghi"')
|
||||
REGRESSION_TEST(`d', `printf "%d,%5d,%.5d,%0*d,%.*d\n" 123 123 123 5 123 5 123')
|
||||
REGRESSION_TEST(`f', `printf "%f,%-8.3f,%f,%f\n" +42.25 -42.25 inf nan')
|
||||
REGRESSION_TEST(`m1', `printf "%c%%%d\045\n" abc \"abc')
|
||||
REGRESSION_TEST(`m1', `printf "%c%%%d\0\045\n" abc \"abc')
|
||||
REGRESSION_TEST(`m2', `printf "abc\n\cdef"')
|
||||
REGRESSION_TEST(`m3', `printf "%%%s\n" abc def ghi jkl')
|
||||
REGRESSION_TEST(`m4', `printf "%d,%f,%c,%s\n"')
|
||||
|
Loading…
Reference in New Issue
Block a user