X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=bf.c;fp=bf.c;h=6a9e0506fb7d56ba10ac643c1995a095e2445ed3;hb=20c6036200ce459202199d5d29924a8eacdacc65;hp=e06041b8cb2949553336b80af19af951b3b6ac50;hpb=a213b0aedbfcd2e59640d3ac23c00123ce65262c;p=brainfuck.git diff --git a/bf.c b/bf.c index e06041b..6a9e050 100644 --- a/bf.c +++ b/bf.c @@ -298,7 +298,7 @@ int main (int argc, char *argv[]) // test: bf.exe -e '+++' -e '+++>++>>-<--' -v2 | grep -q "memory: 3 2 -2 -1 0" // test: bf.exe -e '+++>++>>-<--' -v2 | grep -q "memory: 3 2 -2 -1 0" // test: bf.exe -m "51 50 49" -e '.>.>.' |grep -q "321" -// test: bf.exe -m "51 50 49" -e '.>.>.' -o test.log | grep -q "321" test.log; rc=$?; rm test.log; test $rc -eq 0 +// test: bf.exe -m "51 50 49" -e '.>.>.' -o test.log && grep -q "321" test.log; rc=$?; rm test.log; test $rc -eq 0 // test: echo '+++>++>>-<--' > test.b | bf.exe -i test.b | grep -q "memory: 3 2 -2 -1 0"; rc=$?; rm test.b; test $rc -eq 0 // test: echo '++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.' | bf.exe -v1 | grep -q "Hello World!"