From 1201a665bfa6295ef9c0fd2b1a6476e0f0f5d0ac Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 28 Mar 2019 12:11:22 -0700 Subject: 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" -- cgit v1.2.3