bcalc

cli bitcoin unit calculator
git clone git://jb55.com/bcalc
Log | Files | Refs | README | LICENSE

commit 465405e43b9438166a4f040f61a805efede57f20
parent dff28a8da92c38a8b7bf109db5e634cb1ea5838e
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 23 Dec 2017 16:22:35 -0800

minor fixups

Diffstat:
M.gitignore | 1+
Mtest/run | 8++++++--
2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -3,3 +3,4 @@ /parser.tab.h /bcalc *.o +/TAGS diff --git a/test/run b/test/run @@ -1,11 +1,15 @@ #!/usr/bin/env bash +process () { + tail -n+2 "$1" | sed -n '/^# failing/q;p' +} + n=1 -c=$(($(wc -l < tests.csv) - 1)) +c=$(($(process tests.csv | wc -l))) printf "1..%d\n" "$c" -tail -n+2 tests.csv | sed -n '/^# failing/q;p' | \ +process tests.csv | \ (fail=0 while IFS=, read -r description args input expected do