diff options
Diffstat (limited to 'tests/head.test')
-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 |