diff options
author | Eric Molitor <emolitor@molitor.org> | 2019-07-03 09:33:33 +0100 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-07-03 14:49:27 -0500 |
commit | 1e4cb6cae92d8cd2070d9388d10b0e01d6cf8f68 (patch) | |
tree | 0dfcd8fe3746af3e5f7c11b9a4324835bafdbfdb /tests/nl.test | |
parent | a55b7d7094072cfdc2f818f63633a89cff8f7cd5 (diff) | |
download | toybox-1e4cb6cae92d8cd2070d9388d10b0e01d6cf8f68.tar.gz |
nl: nl -v
Implement nl -v supporting negative and zero starting values.
Diffstat (limited to 'tests/nl.test')
-rwxr-xr-x | tests/nl.test | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/nl.test b/tests/nl.test index 499734d3..046773f5 100755 --- a/tests/nl.test +++ b/tests/nl.test @@ -39,8 +39,13 @@ testing "-sook -b p" "nl -sook -bpoing" \ " one\n 1ookboing\n 2ooksproingy\n" \ "" "one\nboing\nsproingy\n" -testing "-v" "nl -v 42" " 42\tone\n 43\ttwo\n 44\tthree\n" \ +testing "-v42" "nl -v 42" " 42\tone\n 43\ttwo\n 44\tthree\n" \ "" "one\ntwo\nthree\n" +testing "-v-1" "nl -v -1" " -1\tone\n 0\ttwo\n 1\tthree\n" \ + "" "one\ntwo\nthree\n" +testing "-v0" "nl -v 0" " 0\tone\n 1\ttwo\n 2\tthree\n" \ + "" "one\ntwo\nthree\n" + testing "-l" "nl -ba -l2 -w2 - input" \ " 1\tone\n \n 2\t\n 3\ttwo\n \n 4\t\n \n 5\tthree\n 6\tfour\n \n 7\t\n \n 8\tbang\n \n" \ "\n\nbang\n\n" "one\n\n\ntwo\n\n\n\nthree\nfour\n\n" |