From: Mazet Laurent Date: Sat, 28 Jan 2023 23:32:35 +0000 (+0100) Subject: extend a test X-Git-Tag: v0.8 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Fv0.8;p=calc.git extend a test --- diff --git a/calc.c b/calc.c index f79a89a..690b118 100644 --- a/calc.c +++ b/calc.c @@ -368,6 +368,7 @@ int main (int argc, char *argv[]) // test: echo -e 'si\t\t (pi / 2)' | calc.exe | grep -q '=> 1' // test: echo -e '1 + 1;\nans + 1' | calc.exe | grep -qv 2 // test: echo -e 'mem (3)\nsto (4, pi)' | calc.exe | grep -q "invalid index" +// test: echo -e 'sto (2, 3)\nmem (2)\ndisp' | calc.exe | grep -q 'storage: 0 3$' // test: echo -e 'disp' | calc.exe | grep -q "storage: 0 0 0 0 0 0 0 0 0 0" // test: echo -e 'sto (3, 10)\ndisp' | calc.exe | grep -q "storage: 0 0 10 0 0 0 0 0 0 0" // test: echo -e 'rcl (3)\ndisp' | calc.exe | grep -q "storage: 0 0 0 0 0 0 0 0 0 0"