X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=calc.c;h=08ff10c14308c34769a49fb69af5111c367033a9;hb=fdae2f232ae602b72dc09beaa7588d452e3faadc;hp=7476252d1c42312ffd17042e69c0cfb3bcf0ffbc;hpb=e877b1ac3005fbbdb1702aec48be80908a8048ee;p=calc.git diff --git a/calc.c b/calc.c index 7476252..08ff10c 100644 --- a/calc.c +++ b/calc.c @@ -372,7 +372,7 @@ int main (int argc, char *argv[]) // test: echo -e 'si\t\t (pi / 2)' | calc.exe | grep -q '=> 1' // test: echo -e '\t\t' | calc.exe | grep -q 'print' // test: echo -e '1 + 1;\nans + 1' | calc.exe | grep -qv 2 -// test: echo -e 'mem (3)\nsto (4, pi)' | calc.exe | grep -q error +// test: echo -e 'mem\nmem (3)\nsto (4, pi)' | calc.exe | grep -q "error out of bound" // 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"