Mercurial > hg > toybox
diff scripts/test/tail.test @ 619:47edfc1a4983
- Do not abort testing after running the sort tests
- Add tail testcases for input not ending on a newline
- Fix condition where input coming from stdin does not have a trailing newline
author | Elie De Brauwer <eliedebrauwer@gmail.com> |
---|---|
date | Thu, 05 Jul 2012 22:58:28 +0200 |
parents | c2f39708a4c4 |
children | ef72a16f4b3a |
line wrap: on
line diff
--- a/scripts/test/tail.test Thu Jul 05 20:11:40 2012 +0200 +++ b/scripts/test/tail.test Thu Jul 05 22:58:28 2012 +0200 @@ -22,6 +22,9 @@ testing "tail -c+ out of bonds" "tail -c +999 file1" "" "" "" rm file1 +testing "tail stdin no trailing newline" "tail -n 1 - " "c" "" "a\nb\nc" +testing "tail file no trailing newline" "tail -n 1 input" "c" "a\nb\nc" "" + optional TAIL_SEEK testing "tail noseek -n in bounds" "tail -n 3" "nine\nten\neleven\n" \ "" "$BIGTEST"