diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-04-09 11:02:59 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-04-09 11:02:59 -0400 |
| commit | 0b9046a45682c60b5c2dc152b1b3af3d5f7c97a0 (patch) | |
| tree | 3f7c91aef4947dd97f4132554fed6de15e994c51 /test | |
| parent | f64156e1e19ac824b75f7a24ebdaa9c2cad5cdd7 (diff) | |
Fix test/js for lines with no %
Diffstat (limited to 'test')
| -rwxr-xr-x | test/js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4,7 +4,7 @@ let bqn = require(__dirname+'/../docs/bqn.js'); let read = require('fs').readFileSync; let cases = f=>read(__dirname+'/cases/'+f+'.bqn','utf8').split('\n') .filter(x=>x.length>0 && x.charAt(0)!=='#') - .map(x=>x.indexOf('%')===-1?[1,x]:x.split(' % ')); + .map(x=>x.indexOf('%')===-1?["1",x]:x.split(' % ')); let args = process.argv.slice(2); let files = args.length ? args : ['simple','syntax']; |
