new functions: quit and help
[calc.git] / calc.c
diff --git a/calc.c b/calc.c
index a57137475d7f4a8c7dc83ff251eef54d6224f4aa..d24bda307c1bf7e8a177091c7e3e22193c837b17 100644 (file)
--- a/calc.c
+++ b/calc.c
@@ -166,5 +166,7 @@ int main (int argc, char *argv[])
 // test: echo "95 - 6.3 * 15 - 1" | calc.exe | grep -q '=> -5.000028e-1'
 // test: echo "95-6.3+15" | calc.exe | grep -q '=> 1.037e2'
 // test: echo "-cos (0) + 1" | calc.exe | grep -q '=> 0'
+// test: echo "quit" | calc.exe | grep -q 'bye'
+// test: echo "help" | calc.exe | grep -q 'miscellaneous'
 
 /* vim: set ts=4 sw=4 et: */