correct a test
authorLaurent Mazet <mazet@softndesign.org>
Tue, 26 Dec 2023 02:05:07 +0000 (03:05 +0100)
committerLaurent Mazet <mazet@softndesign.org>
Tue, 26 Dec 2023 02:05:07 +0000 (03:05 +0100)
bf.c

diff --git a/bf.c b/bf.c
index e06041b8cb2949553336b80af19af951b3b6ac50..6a9e0506fb7d56ba10ac643c1995a095e2445ed3 100644 (file)
--- 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!"