diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-04-05 22:10:57 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-04-05 22:15:13 -0400 |
| commit | d94396d3b87fae4dc1281f9b03b30b5619d42c76 (patch) | |
| tree | d65561bcd1f140529507d7dc8360f8e92451e671 /test | |
| parent | 5f4c18885f6e2445d2f1034a73be1213f45a092c (diff) | |
Handle extra space between ! and % in test/js
Diffstat (limited to 'test')
| -rwxr-xr-x | test/js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10,7 +10,7 @@ let files = args.length ? args : ['simple','syntax']; let t = [].concat.apply([],files.map(cases)); let test = t.map(e=>e[1]); -let expt = t.map(e=>e[0]==='!'?null:+e[0]); +let expt = t.map(e=>e[0].trim()==='!'?null:+e[0]); let rslt = test.map(t => {try{return bqn(t);}catch(e){return null;}}); let pass = rslt.map((r,i)=>r===expt[i]); |
