From ff0e8cb15c39d59b0530ac0e0a1243a510ae5c06 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 5 Jul 2016 15:05:09 -0700 Subject: Implement xxd -s. --- tests/xxd.test | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/xxd.test b/tests/xxd.test index 187bda51..5f43b8b5 100644 --- a/tests/xxd.test +++ b/tests/xxd.test @@ -27,6 +27,8 @@ testing "-c 8 -g 3 file1" "xxd -c 8 -g 3 file1" \ testing "-p" "xxd -p file1" "7468697320697320736f6d6520746578740a\n" "" "" +testing "-s" "xxd -s 13 file1" "0000000d: 7465 7874 0a text.\n" "" "" + testing "-r" "xxd file1 | xxd -r" "this is some text\n" "" "" testing "-r -p" "xxd -p file1 | xxd -r -p" "this is some text\n" "" "" -- cgit v1.2.3