~mmach/netext73/busybox

« back to all changes in this revision

Viewing changes to testsuite/xxd.tests

  • Committer: mmach
  • Date: 2023-07-06 04:40:25 UTC
  • Revision ID: netbit73@gmail.com-20230706044025-2ia9985i8wzdn2a7
1.36.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
        '' \
38
38
        '30313233343536373736353433323130 30313233343536373736353433323130'
39
39
 
 
40
testing 'xxd -r skips leading whitespace and truncates at two spaces' \
 
41
        'xxd -r' \
 
42
        '0123456789:;<=>?@' \
 
43
        '' "\
 
44
   00000000: 3031 3233 3435 3637 3839 3a3b 3c3d 3e3f  0123456789:;<=>?
 
45
        00000010: 40                                       @
 
46
"
 
47
 
 
48
testing 'xxd -p -r skips one bad char, truncates at two bad chars' \
 
49
        'xxd -p -r' \
 
50
        '01' \
 
51
        '' "\
 
52
30 !31 !!32
 
53
"
 
54
 
 
55
testing 'xxd -p -r ignores the nibble with 2nd char bad' \
 
56
        'xxd -p -r' \
 
57
        '3C6' \
 
58
        '' "\
 
59
33 3!4 3!!5
 
60
36
 
61
"
 
62
 
40
63
exit $FAILCOUNT