aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormryouse2022-07-08 01:35:20 +0000
committermryouse2022-07-08 01:35:20 +0000
commit0df15c8bfb7ea73eff0040f5e3181eb328065824 (patch)
treecb59c2ad755f3930b1d4b491ebcc1ffc33ff3738
parente2c7c060c370b6c9137f41e69ce44481afbcf89d (diff)
make the test runner look a bit nicer
-rwxr-xr-xtests/runner.bash4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/runner.bash b/tests/runner.bash
index 32af554..20634dd 100755
--- a/tests/runner.bash
+++ b/tests/runner.bash
@@ -6,9 +6,10 @@ do
expected=$(tail -1 $item | sed 's/; //')
actual=$(python3 ../neb.py $item)
if [[ "$expected" == "$actual" ]]; then
+ echo -n "."
((passed=passed+1))
else
- echo "$item... FAILED"
+ echo "$item FAILED"
echo " Expected: $expected"
echo " Actual: $actual"
echo ""
@@ -18,5 +19,6 @@ done
pct=$(python -c "print('{:.2f}'.format($passed / float($total) * 100))")
+echo ""
echo "Total: $total"
echo "Passed: $passed ($pct%)"