aboutsummaryrefslogtreecommitdiff
path: root/test/dz_comp
diff options
context:
space:
mode:
Diffstat (limited to 'test/dz_comp')
-rwxr-xr-xtest/dz_comp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/dz_comp b/test/dz_comp
index 4fee5da3..1909a150 100755
--- a/test/dz_comp
+++ b/test/dz_comp
@@ -1,6 +1,7 @@
#! /usr/bin/env dbqn
-nc‿rt‿prim ← "-nocomp"‿"-rt"‿"-prim" ∊ •args
+nc‿rt ← "-nocomp"‿"-rt" ∊ •args
+files ← "simple"‿"syntax"‿"prim"⍟(0=≠) ('-'≠⊑)¨⊸/ •args
"Can't test runtime without the compiler!" ! ¬nc∧rt
⟨DRun,DCompile⟩ ← •Import "../dc.bqn"
@@ -26,7 +27,7 @@ Native ← {⍎𝕩}
exec ← (rt¬nc)◶⟨Native˙, DRun˙, {𝕩⊸DRun}∘GetRT⟩ @
Cases ← (0<≠)◶0‿('#'≠⊑)¨⊸/ · •FLines "cases/"∾∾⟜".bqn"
-c ← ∾ Cases¨ "simple"‿"syntax"∾prim/⟨"prim"⟩
+c ← ∾ Cases¨ files
M ← {e‿b:
Err ← {(@+10)∾˜""""∾b∾""": expected "∾e∾" but received "∾⍕𝕩}
(Native e) ≢◶""‿Err Exec b