aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-03 08:31:43 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-03 08:31:43 -0400
commitb14e796dd1fa6707bd86fc11f4de89ab70c8e19a (patch)
tree2ff0356e02083f6697f9f2f0a4362f11289d96f5 /test
parent704b8bb41436243a92427c94a3c3f112fab42195 (diff)
Make dt.js work from any current directory
Diffstat (limited to 'test')
-rwxr-xr-xtest/dt.js2
1 files changed, 1 insertions, 1 deletions
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])