diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-07-03 08:31:43 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-07-03 08:31:43 -0400 |
| commit | b14e796dd1fa6707bd86fc11f4de89ab70c8e19a (patch) | |
| tree | 2ff0356e02083f6697f9f2f0a4362f11289d96f5 /test | |
| parent | 704b8bb41436243a92427c94a3c3f112fab42195 (diff) | |
Make dt.js work from any current directory
Diffstat (limited to 'test')
| -rwxr-xr-x | test/dt.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8,7 +8,7 @@ const t=load('cases.bqn').split('\n').filter(x=>x).map(x=>x.split(' % ')) , test=t.map(e=>'"'+e[1]+'"').join('\n') , expt=t.map(e=>+e[0]) -var compiler = exec('../spec/dzref', function (error, stdout, stderr) { +var compiler = exec(__dirname+'/../spec/dzref', function (error, stdout, stderr) { const rslt=stdout.split('\n').filter(a=>a.length) .map(a=>runWasm(a.split("‿").map(n=>+n))) , pass=rslt.map((r,i)=>r===expt[i]) |
