Add test for option --ignore-extras
This commit is contained in:
parent
c682546640
commit
b19b1751b5
1 changed files with 19 additions and 0 deletions
19
test.sh
19
test.sh
|
@ -65,6 +65,25 @@ EOF
|
|||
./skip --foo > test.out 2>&1 || ## error is expected
|
||||
diff --brief test.expect test.out
|
||||
|
||||
echo "> skip lines until 3 tokens seen - ignored extra tokens on same line"
|
||||
cat<<EOF > test.in
|
||||
Lorem ipsum dolor sit amet,
|
||||
consectetur adipiscing elit,
|
||||
sed do eiusmod tempor incididunt
|
||||
ut labore et dolore magna aliqua.
|
||||
Ut enim ad minim veniam,
|
||||
quis nostrud exercitation ullamco
|
||||
laboris nisi ut aliquip ex ea
|
||||
commodo consequat.
|
||||
EOF
|
||||
cat<<EOF > test.expect
|
||||
quis nostrud exercitation ullamco
|
||||
laboris nisi ut aliquip ex ea
|
||||
commodo consequat.
|
||||
EOF
|
||||
./skip 3 test.in --token m --ignore-extras > test.out
|
||||
diff --brief test.expect test.out
|
||||
|
||||
rm test.in test.out test.expect
|
||||
|
||||
echo done
|
||||
|
|
Loading…
Reference in a new issue