diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-11-01 16:22:09 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-11-01 16:30:33 -0400 |
| commit | 10b72d3a9a74cda526219bdc149dac8feb3f25e4 (patch) | |
| tree | f6cd814796e5396677e5626f1beae2925fb02a1a /test/dz_comp | |
| parent | 0a5ec5b2c31eccda5e00239df80ae3675a51b0a2 (diff) | |
Move all dzaima/BQN-specific tools into test/
Diffstat (limited to 'test/dz_comp')
| -rwxr-xr-x | test/dz_comp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/test/dz_comp b/test/dz_comp index 9815bb40..e9bf1c06 100755 --- a/test/dz_comp +++ b/test/dz_comp @@ -5,12 +5,17 @@ files ← "simple"‿"syntax"‿"prim"⍟(0=≠) ('-'≠⊑)¨⊸/ •args "Can't test runtime without the compiler!" ! ¬nc∧rt∨ref Native ← •BQN -exec ← ((rt⌈2×ref)¬nc)◶⟨ - Native˙ # Native - {𝕤⋄ ⟨DRun⟩←•Import "../dc.bqn" ⋄ DRun} # Compiled; native runtime - {𝕤⋄ •Import "../bqn.bqn"} # Self-hosted - {𝕤⋄ ⟨DRun⟩←•Import "../dc.bqn" ⋄ (•Import"ref.bqn")⊸DRun} # Reference implementations -⟩ @ +exec ← { + nc ? Native ; + # Otherwise compiled + ⟨DRun⟩ ← •Import "dc.bqn" + r ← { + ref ? •Import "ref.bqn" ; # Reference implementations + rt ? •Import "dzrt.bqn" ; # Self-hosted + •BQN∘⥊¨ ∾ •Import "../src/glyphs.bqn" # Native runtime + } + r⊸DRun +} Cases ← (0<≠)◶0‿('#'≠⊑)¨⊸/ · •FLines "cases/"∾∾⟜".bqn" c ← ∾ Cases¨ files |
