From 632f0d031f6f1c0bd0b0b6a7107d0fcd542d78e1 Mon Sep 17 00:00:00 2001 From: Mazet Laurent Date: Sun, 29 Jan 2023 00:32:35 +0100 Subject: [PATCH] extend a test --- calc.c | 1 + 1 file changed, 1 insertion(+) 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" -- 2.30.2