add some coverage tests
[calc.git] / calc.c
diff --git a/calc.c b/calc.c
index 771f7f09657d513877c3846d4368edb2ffe086b9..75189f5ec32404e5eb9ac705fc2f9cd30d6cc881 100644 (file)
--- a/calc.c
+++ b/calc.c
@@ -333,6 +333,7 @@ int main (int argc, char *argv[])
 // test: echo -e '{sto (1, 1 + 1), rcl (1) * 3}' | calc.exe | grep -q '=> 6'
 // test: echo -e '{\n{}\n{1, 2\n{sto (1, 1 + 1),\npow(2, {sto (1, 1 + 2), 2}, {rcl(2)})\n2 {sto (1, 1 + 1)}' | calc.exe | grep -c error | xargs test 6 =
 // test: echo -e '1 }\n1 )\n1 , 2\n ' | calc.exe | grep -c error | xargs test 3 =
+// test: echo -e 'print (1)' | calc.exe -v 3 | grep -q Print
 // test: echo -e 'si\t\t (pi / 2)' | calc.exe | grep -q '=> 1'
 
 // Gauss sequence