aboutsummaryrefslogtreecommitdiff
path: root/tests/seq.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/seq.test')
-rwxr-xr-xtests/seq.test8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/seq.test b/tests/seq.test
index 59966172..c9e1c019 100755
--- a/tests/seq.test
+++ b/tests/seq.test
@@ -23,8 +23,14 @@ testing "seq count by .3" "seq 3 .3 4" "3\n3.3\n3.6\n3.9\n" "" ""
testing "seq count by -.9" "seq .7 -.9 -2.2" "0.7\n-0.2\n-1.1\n-2\n" "" ""
testing "seq count by zero" "seq 4 0 8 | head -n 10" "" "" ""
testing "seq separator -" "seq -s - 1 3" "1-2-3\n" "" ""
-testing "seq format string" 'seq -f %+01g -10 5 10' "-10\n-5\n+0\n+5\n+10\n" "" ""
+testing "seq format string" 'seq -f %+01g -10 5 10' "-10\n-5\n+0\n+5\n+10\n" \
+ "" ""
testing "seq separator and format string" "seq -f \%03g -s \; 5 -1 0" "005;004;003;002;001;000\n" "" ""
+testing "seq padding" "seq -s, -w -2 19 120" "-02,017,036,055,074,093,112\n" \
+ "" ""
+testing "seq padding" "seq -s, -w -2 3 12" "-2,01,04,07,10\n" "" ""
+testing "seq padding" "seq -s, -w -2.2 3.3 12" "-2.2,01.1,04.4,07.7,11.0\n" \
+ "" ""
# Test -f format filtering
for i in %f %e %g "boo %f yah" "% f" %-1.2f %+-f "%+ - f" %.2f %3.f "%'.2f" \