From 0b9046a45682c60b5c2dc152b1b3af3d5f7c97a0 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Fri, 9 Apr 2021 11:02:59 -0400 Subject: Fix test/js for lines with no % --- test/js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/js b/test/js index 59d15799..e12098ec 100755 --- a/test/js +++ b/test/js @@ -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']; -- cgit v1.2.3