From b14e796dd1fa6707bd86fc11f4de89ab70c8e19a Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Fri, 3 Jul 2020 08:31:43 -0400 Subject: Make dt.js work from any current directory --- test/dt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/dt.js b/test/dt.js index 142bb421..07be98e2 100755 --- a/test/dt.js +++ b/test/dt.js @@ -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]) -- cgit v1.2.3