From 5157ac6cb4518c152a2124c73241dc62cf19e59b Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Mon, 14 Dec 2020 20:10:06 -0500 Subject: =?UTF-8?q?Use=20=F0=9D=95=8A=20instead=20of=20a=20header=20in=20p?= =?UTF-8?q?rim.bqn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/dz_comp | 2 +- test/js | 3 +-- test/prim.bqn | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/dz_comp b/test/dz_comp index 67fef043..c415bdf8 100755 --- a/test/dz_comp +++ b/test/dz_comp @@ -26,7 +26,7 @@ Native ← {⍎𝕩} exec ← (rt¬nc)◶⟨Native˙, DRun˙, {𝕩⊸DRun}∘GetRT⟩ @ c ← ∾(•FLines ∾⟜"cases.bqn")¨""‿"b" -{𝕩: c ∾↩ "1 %"⊸∾¨ (0<≠)◶0‿((¬":"⊑∘∊⊢)∧'#'≠⊑)¨⊸/ •FLines "prim.bqn" }⍟⊢ prim +{𝕩: c ∾↩ "1 %"⊸∾¨ (0<≠)◶0‿('#'≠⊑)¨⊸/ •FLines "prim.bqn" }⍟⊢ prim M ← {e‿b: Err ← {(@+10)∾˜""""∾b∾""": expected "∾e∾" but received "∾⍕𝕩} (Native e) ≢◶""‿Err Exec b diff --git a/test/js b/test/js index b756113e..f70a0ca4 100755 --- a/test/js +++ b/test/js @@ -13,8 +13,7 @@ if (prim || args.length==0) { if (prim) { let r = load('prim.bqn').split('\n') .filter(x=>x.length>0 - &&x.charAt(0)!=='#' - &&x.indexOf(':')===-1); + &&x.charAt(0)!=='#'); test = test.concat(r); expt = expt.concat(r.map(e=>1)); } diff --git a/test/prim.bqn b/test/prim.bqn index 473810f6..03df0500 100644 --- a/test/prim.bqn +++ b/test/prim.bqn @@ -121,7 +121,7 @@ (<<2)≡<¨2 ⟨1,⟨3,2,2‿2⥊⟨1,0,2,0⟩⟩,⟨5,4⟩⟩≡-⟨-1,⟨-3,-2,-¨2‿2⥊⟨1,0,2,0⟩⟩,⟨-5,-4⟩⟩ 3(+¨≡+⌜)↕6 -3‿4‿5‿6‿6≡{F:F⍟(×≡)⊸∾⟜⥊´𝕩}⟨2,1⟩+⟨⟨⟨⟨1,2⟩,3⟩,4⟩,5⟩ +3‿4‿5‿6‿6≡{𝕊⍟(×≡)⊸∾⟜⥊´𝕩}⟨2,1⟩+⟨⟨⟨⟨1,2⟩,3⟩,4⟩,5⟩ (=¨⟜(⥊⟜(↕×´)3‿4)≡(↕4)=⌜˜4|⊢)1‿6‿8 # LAYER 3 -- cgit v1.2.3