From 30e23c72a12fa3a95d25b15cf9a0517dae07db8b Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 12 Mar 2018 10:02:08 -0700 Subject: Add xxd -o. --- tests/xxd.test | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/xxd.test b/tests/xxd.test index 97634e86..48ed319d 100644 --- a/tests/xxd.test +++ b/tests/xxd.test @@ -15,7 +15,6 @@ testing "file1" "xxd file1" \ testing "file1 -l" "xxd -l 2 file1" \ "00000000: 7468 th\n" \ "" "" -testing "file2" "xxd file2" "" "" "" testing "-" "xxd -" \ "00000000: 6865 6c6c 6f hello\n" "" "hello" testing "xxd" "xxd" \ @@ -27,6 +26,8 @@ testing "-c 8 -g 3 file1" "xxd -c 8 -g 3 file1" \ testing "-i" "cat file1 | xxd -i -" " 0x74, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x73, 0x6f, 0x6d, 0x65,\n 0x20, 0x74, 0x65, 0x78, 0x74, 0x0a\n" "" "" +testing "-o 0x8000" "xxd -o 0x8000 file1" "00008000: 7468 6973 2069 7320 736f 6d65 2074 6578 this is some tex\n00008010: 740a t.\n" "" "" + testing "-p" "xxd -p file1" "7468697320697320736f6d6520746578740a\n" "" "" testing "-s" "xxd -s 13 file1" "0000000d: 7465 7874 0a text.\n" "" "" -- cgit v1.2.3