aboutsummaryrefslogtreecommitdiff
path: root/tests/head.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-03-29 12:03:46 -0500
committerRob Landley <rob@landley.net>2015-03-29 12:03:46 -0500
commitd5c92c55c424d21fc5ab84ccc8b6d3e905fede6b (patch)
tree25becf3fd75f6a5705be305e669982dde3fe44dd /tests/head.test
parent857912ee354ae0c94ce18a99f7c7dd32b8169b87 (diff)
downloadtoybox-d5c92c55c424d21fc5ab84ccc8b6d3e905fede6b.tar.gz
Add head test for -123.
Diffstat (limited to 'tests/head.test')
-rwxr-xr-xtests/head.test2
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