aboutsummaryrefslogtreecommitdiff
path: root/tests/printf.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-03-28 13:22:27 -0500
committerRob Landley <rob@landley.net>2015-03-28 13:22:27 -0500
commit5d431d1e1f9172587775c00a07b767f9b544cb91 (patch)
tree8988850978ee50e0ce6ca7b2527e096740514cdd /tests/printf.test
parent58e06423be7f568076d273a358975317c14de30a (diff)
downloadtoybox-5d431d1e1f9172587775c00a07b767f9b544cb91.tar.gz
Fix printf bug (%.s should be %.0s not %s) reported by Isabella Parakiss.
Diffstat (limited to 'tests/printf.test')
-rw-r--r--tests/printf.test2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/printf.test b/tests/printf.test
index 5cbefb59..20d5982d 100644
--- a/tests/printf.test
+++ b/tests/printf.test
@@ -57,3 +57,5 @@ testing "printf '%u %u' -1 -2" "$PRINTF '%u %u' -1 -2" \
testing "printf '%x %X' 78 79" "$PRINTF '%x %X' 78 79" "4e 4F" "" ""
testing "printf '%g %G' 78 79" "$PRINTF '%g %G' 78 79" "78 79" "" ""
testing "printf '%s %s' 78 79" "$PRINTF '%s %s' 78 79" "78 79" "" ""
+
+testing "printf %.s acts like %.0s" "$PRINTF %.s_ 1 2 3 4 5" "_____" "" ""