aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2014-12-24 16:13:08 -0600
committerRob Landley <rob@landley.net>2014-12-24 16:13:08 -0600
commit4391e57913ab84f1edea56157192692d2e41458c (patch)
tree918b192bee2187493500f728cdce1162616914ad /tests
parentd5c66a9fd36777f80ba05301dcfa6789b103e486 (diff)
downloadtoybox-4391e57913ab84f1edea56157192692d2e41458c.tar.gz
Teach factor to accept whitespace separated arguments (reported by Robert Thompson).
(The diff looks bigger than it is because of reindenting.)
Diffstat (limited to 'tests')
-rwxr-xr-xtests/factor.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/factor.test b/tests/factor.test
index a3e4cbf8..ed1cc226 100755
--- a/tests/factor.test
+++ b/tests/factor.test
@@ -16,3 +16,7 @@ testing "factor 10000000018" "factor 10000000018" \
"10000000018: 2 131 521 73259\n" "" ""
testing "factor 10000000019" "factor 10000000019" \
"10000000019: 10000000019\n" "" ""
+
+testing "factor 3 6 from stdin" "factor" "3: 3\n6: 2 3\n" "" "3 6"
+testing "factor stdin newline" "factor" "3: 3\n6: 2 3\n" "" "3\n6\n"
+