diff options
author | Rob Landley <rob@landley.net> | 2015-03-29 12:03:46 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-03-29 12:03:46 -0500 |
commit | d5c92c55c424d21fc5ab84ccc8b6d3e905fede6b (patch) | |
tree | 25becf3fd75f6a5705be305e669982dde3fe44dd | |
parent | 857912ee354ae0c94ce18a99f7c7dd32b8169b87 (diff) | |
download | toybox-d5c92c55c424d21fc5ab84ccc8b6d3e905fede6b.tar.gz |
Add head test for -123.
-rwxr-xr-x | tests/head.test | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/head.test b/tests/head.test index eeb07e00..d4eecd9a 100755 --- a/tests/head.test +++ b/tests/head.test @@ -7,6 +7,8 @@ testing "head, stdin" "head -n 1 && echo yes" "one\nyes\n" "" "one\ntwo" testing "head, stdin via -" "head -n 1 - && echo yes" "one\nyes\n" "" "one\ntwo" testing "head, file" "head input -n 1 && echo yes" "one\nyes\n" "one\ntwo" "" +testing "head -number" "head -2 input && echo yes" "one\ntwo\nyes\n" \ + "one\ntwo\nthree\nfour" "" testing "head, default lines" "head" "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n" "" "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12" echo "foo |