correct a test master
authorLaurent Mazet <mazet@softndesign.org>
Sat, 30 Dec 2023 06:57:43 +0000 (07:57 +0100)
committerLaurent Mazet <mazet@softndesign.org>
Sat, 30 Dec 2023 06:57:43 +0000 (07:57 +0100)
bf.c

diff --git a/bf.c b/bf.c
index 6a9e0506fb7d56ba10ac643c1995a095e2445ed3..552c5b0bc30dd992a67495446bf7b3d51d8c33f7 100644 (file)
--- a/bf.c
+++ b/bf.c
@@ -299,7 +299,7 @@ int main (int argc, char *argv[])
 // 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: 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 '+++>++>>-<--' > 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!"
 // test: echo '++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>++++++++++++++.>+++++++++++++++++.<<++.>+++++++++++++.>--.<<.>+++.+.--.>----.++++++.+.<++.>----.++.<<.>>+.-------.<<.>>++.<.>+++++.<<.>-.+.<.>---.>---.<-.++++++++.>----.<---.>+++++++.<---.++++++++.' | bf.exe -v1 | grep -q "Tu as decouvert un peu de brainfuck"