diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-06-09 11:10:11 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-06-09 11:10:11 -0400 |
| commit | ef4fb4e192e8080205e752143224091a62b81c0e (patch) | |
| tree | 8863666ca04b858fc8992e1bcf8fb3f54b79e714 /test | |
| parent | 24df71f0cce04aa9b3f80630b95bb29a7ade7639 (diff) | |
Fix failure reporting
Diffstat (limited to 'test')
| -rwxr-xr-x | test/t.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ const t=load('cases.bqn').split('\n').filter(x=>x).map(x=>x.split(' % ')) , fail=pass.map((p,i)=>p?-1:i).filter(i=>i>=0) console.log( fail.length - ? fail.map(i=>'"'+test[i]+'": expected '+expt[i]+' but received '+rslt[i]) + ? fail.map(i=>'"'+t[i][1]+'": expected '+expt[i]+' but received '+rslt[i]) : "All passed!" ) process.exit(+(fail.length>0)) |
