aboutsummaryrefslogtreecommitdiff
path: root/tests/nl.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-03-02 15:20:04 -0600
committerRob Landley <rob@landley.net>2016-03-02 15:20:04 -0600
commit336c44adca1768ada1e1e2f4d7dbbc33e994e582 (patch)
tree9780ee9602ffbca6b04e472d3ac0d158f92ac49c /tests/nl.test
parenteb830728b12152702c3852d079ad5c8a7f6e709b (diff)
downloadtoybox-336c44adca1768ada1e1e2f4d7dbbc33e994e582.tar.gz
Factor out command name at the start of test name, have runtest.sh print it.
Diffstat (limited to 'tests/nl.test')
-rwxr-xr-xtests/nl.test24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/nl.test b/tests/nl.test
index 958cb41e..499734d3 100755
--- a/tests/nl.test
+++ b/tests/nl.test
@@ -7,20 +7,20 @@
testing "nl" "nl" " 1\tone\n 2\ttwo\n 3\tthree\n" \
"" "one\ntwo\nthree\n"
-testing "nl explicit defaults" "nl -nrn -b a" \
+testing "explicit defaults" "nl -nrn -b a" \
" 1\tone\n 2\ttwo\n 3\tthree\n" "" "one\ntwo\nthree\n"
# -n ln rn rz
-testing "nl -nln" "nl -nln" "1 \tone\n2 \ttwo\n3 \tthree\n" \
+testing "-nln" "nl -nln" "1 \tone\n2 \ttwo\n3 \tthree\n" \
"" "one\ntwo\nthree\n"
-testing "nl -nln -w" "nl -nln -w 8" \
+testing "-nln -w" "nl -nln -w 8" \
"1 \tone\n2 \ttwo\n3 \tthree\n" "" "one\ntwo\nthree\n"
-testing "nl -nrz" "nl -nrz" "000001\tone\n000002\ttwo\n000003\tthree\n" \
+testing "-nrz" "nl -nrz" "000001\tone\n000002\ttwo\n000003\tthree\n" \
"" "one\ntwo\nthree\n"
-testing "nl -nrz -w" "nl -w3 -nrz" "001\tone\n002\ttwo\n003\tthree\n" \
+testing "-nrz -w" "nl -w3 -nrz" "001\tone\n002\ttwo\n003\tthree\n" \
"" "one\ntwo\nthree\n"
@@ -31,20 +31,20 @@ testing "nl -nrz -w" "nl -w3 -nrz" "001\tone\n002\ttwo\n003\tthree\n" \
# nl -w 3 -bpthe README
# Yeah. And I doubt utf8 fontmetrics are used either.
-testing "nl -b t" "nl -b t" " \n 1\tone\n \n 2\ttwo\n" \
+testing "-b t" "nl -b t" " \n 1\tone\n \n 2\ttwo\n" \
"" "\none\n\ntwo\n"
-testing "nl -b n" "nl -b n" " one\n two\n three\n" \
+testing "-b n" "nl -b n" " one\n two\n three\n" \
"" "one\ntwo\nthree\n"
-testing "nl -sook -b p" "nl -sook -bpoing" \
+testing "-sook -b p" "nl -sook -bpoing" \
" one\n 1ookboing\n 2ooksproingy\n" \
"" "one\nboing\nsproingy\n"
-testing "nl -v" "nl -v 42" " 42\tone\n 43\ttwo\n 44\tthree\n" \
+testing "-v" "nl -v 42" " 42\tone\n 43\ttwo\n 44\tthree\n" \
"" "one\ntwo\nthree\n"
-testing "nl -l" "nl -ba -l2 -w2 - input" \
+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"
-testing "nl no space" "nl -w 1 -v 42" "42\tline\n" "" "line\n"
+testing "no space" "nl -w 1 -v 42" "42\tline\n" "" "line\n"
# Should test for -E but no other implementation seems to have it?
-#testing "nl -E" "nl -w2 -sx -Ebp'(one|two)'" " 1x" "one\nand\ntwo\n"
+#testing "-E" "nl -w2 -sx -Ebp'(one|two)'" " 1x" "one\nand\ntwo\n"