Mercurial > hg > toybox
comparison scripts/test/uuencode.test @ 837:3107c5525cc7
Change uuencode test to match what other uuencode implementations actually produce.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 28 Mar 2013 19:28:27 -0500 |
parents | 1fdaba9a7124 |
children |
comparison
equal
deleted
inserted
replaced
836:97824b1523a8 | 837:3107c5525cc7 |
---|---|
5 #testing "name" "command" "result" "infile" "stdin" | 5 #testing "name" "command" "result" "infile" "stdin" |
6 | 6 |
7 testing "uuencode not enough args [fail]" "uuencode 2>/dev/null" "" "" "" | 7 testing "uuencode not enough args [fail]" "uuencode 2>/dev/null" "" "" "" |
8 | 8 |
9 testing "uuencode uu empty file" "uuencode test" \ | 9 testing "uuencode uu empty file" "uuencode test" \ |
10 "begin 744 test\n\`\nend\n" "" "" | 10 "begin 744 test\nend\n" "" "" |
11 testing "uuencode uu 1-char" "uuencode test" \ | 11 testing "uuencode uu 1-char" "uuencode test" \ |
12 "begin 744 test\n!80 \n\`\nend\n" "" "a" | 12 "begin 744 test\n!80\`\`\nend\n" "" "a" |
13 testing "uuencode uu 2-char" "uuencode test" \ | 13 testing "uuencode uu 2-char" "uuencode test" \ |
14 "begin 744 test\n\"86( \n\`\nend\n" "" "ab" | 14 "begin 744 test\n\"86(\`\nend\n" "" "ab" |
15 testing "uuencode uu 3-char" "uuencode test" \ | 15 testing "uuencode uu 3-char" "uuencode test" \ |
16 "begin 744 test\n#86)C\n\`\nend\n" "" "abc" | 16 "begin 744 test\n#86)C\nend\n" "" "abc" |
17 | 17 |
18 testing "uuencode b64 empty file" "uuencode -m test" \ | 18 testing "uuencode b64 empty file" "uuencode -m test" \ |
19 "begin-base64 744 test\n====\n" "" "" | 19 "begin-base64 744 test\n====\n" "" "" |
20 testing "uuencode b64 1-char" "uuencode -m test" \ | 20 testing "uuencode b64 1-char" "uuencode -m test" \ |
21 "begin-base64 744 test\nYQ==\n====\n" "" "a" | 21 "begin-base64 744 test\nYQ==\n====\n" "" "a" |