A trivial test, but it would have caught the previous bug...
---
 tests/bc.test | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
From f6515df098609f4c414bcfedf926c63b0f8af6ec Mon Sep 17 00:00:00 2001
From: Elliott Hughes <[email protected]>
Date: Thu, 28 Mar 2019 12:11:22 -0700
Subject: [PATCH] bc: add a trivial regression test for input from stdin.

A trivial test, but it would have caught the previous bug...
---
 tests/bc.test | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/bc.test b/tests/bc.test
index 130e049f..65969b79 100644
--- a/tests/bc.test
+++ b/tests/bc.test
@@ -2,7 +2,7 @@
 
 [ -f testing.sh ] && . testing.sh
 
-#testing "name" "command" "result" "infile" "stdin"
+#testcmd "name "args" "result" "infile" "stdin"
 
 BDIR="$FILES/bc"
 TESTDIR="./"
@@ -37,3 +37,4 @@ run_bc_test misc
 run_bc_test misc1
 run_bc_test misc2
 
+testcmd "stdin" "" "2\n" "" "1+1\n"
-- 
2.21.0.392.gf8f6787159e-goog

_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to