examples: bistromathic: strengthen tests

* examples/c/bistromathic/bistromathic.test: here.
* examples/test: Be clearer on failing tests.
This commit is contained in:
Akim Demaille
2020-02-29 12:11:37 +01:00
parent 388e12ac0f
commit c4a7e7a1ab
4 changed files with 21 additions and 7 deletions

View File

@@ -90,9 +90,12 @@ run ()
echo "$me: PASS: $number"
else
echo "$me: FAIL: $number"
echo "$me: expected output: $out_exp"
echo "$me: effective output: $out_eff"
cat err_eff
echo "$me: input:"
sed -e 's/^/ /' input
echo "$me: expected output:"
echo "$out_exp" | sed -e 's/^/ /'
echo "$me: effective output:"
echo "$out_eff" | sed -e 's/^/ /'
exit=false
fi
else