Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/xxd.tests9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/xxd.tests b/testsuite/xxd.tests
index 76fa96af9..359e7f8f7 100755
--- a/testsuite/xxd.tests
+++ b/testsuite/xxd.tests
@@ -37,4 +37,13 @@ testing 'xxd -p -r' \
'' \
'30313233343536373736353433323130 30313233343536373736353433323130'
+testing 'xxd -r skips leading whitespace and truncates at two spaces' \
+ 'xxd -r' \
+ '0123456789:;<=>?@' \
+ '' \
+"\
+ 00000000: 3031 3233 3435 3637 3839 3a3b 3c3d 3e3f 0123456789:;<=>?
+ 00000010: 40 @
+"
+
exit $FAILCOUNT