bcalc

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

commit 077321ef9a0cce72fd0444350831778d8b117d3f
parent 173d7dce198d7990ee7d4dac1c360e949d8acb4a
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 19 Dec 2017 15:03:20 -0800

test: finney plural

Diffstat:
Mlexer.l | 2+-
Mtest/tests.csv | 1+
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/lexer.l b/lexer.l @@ -25,7 +25,7 @@ return T_UNIT; } -[fF][iI][nN][nN][eE][yY]? { +[fF][iI][nN][nN][eE][yY]?[sS]? { yylval.unit = UNIT_FINNEY; return T_UNIT; } diff --git a/test/tests.csv b/test/tests.csv @@ -6,3 +6,4 @@ lots of msats,-B,2 msat * 100000000000,2 chained multiply,-B,2100 btc * 0.1 * 0.1,21 10000 satoshis in bits,--bits,10000 sats,100 satoshis in bits to smallest bit,-bp,10000 sats * 0.01,1 bits +parens,-B,(10 finneys * 1000) / 10,0.0001