From d4e8cf5c90a2c5b6ed661e468842f34b631dbb44 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Mon, 14 Dec 2020 20:47:05 -0500 Subject: Pass names of tests as options instead of using ad-hoc prim option --- test/dz_comp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/dz_comp') 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 -- cgit v1.2.3