From: Rob Landley Date: Sun, 29 Mar 2015 17:03:46 +0000 (-0500) Subject: Add head test for -123. X-Git-Tag: upstream/0.6.0~134 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5c92c55c424d21fc5ab84ccc8b6d3e905fede6b;p=platform%2Fupstream%2Ftoybox.git Add head test for -123. --- diff --git a/tests/head.test b/tests/head.test index eeb07e0..d4eecd9 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