diff --git a/test/README.md b/test/README.md index 4df5dd1e..c9f7136c 100644 --- a/test/README.md +++ b/test/README.md @@ -8,7 +8,6 @@ test/x86Cfgs.sh path/to/mlochbaum/BQN // run the test suite for x86-64-specific test/moreCfgs.sh path/to/mlochbaum/BQN // run "2+2" in a bunch of configurations; requires dzaima/BQN to be accessible as dbqn test/run.bqn // run tests in test/cases/ ./BQN test/cmp.bqn // fuzz-test scalar comparison functions =≠<≤>≥ -./BQN test/equal.bqn // fuzz-test 𝕨≡𝕩 ./BQN test/copy.bqn // fuzz-test creating new arrays with elements copied from another ./BQN test/mut.bqn // fuzz-test mut.h (currently just bitarr fill) ./BQN test/various.bqn // tests for various small things diff --git a/test/equal.bqn b/test/cases/fuzz/equal.bqn similarity index 79% rename from test/equal.bqn rename to test/cases/fuzz/equal.bqn index 54aaca1a..f06d1764 100644 --- a/test/equal.bqn +++ b/test/cases/fuzz/equal.bqn @@ -1,9 +1,8 @@ -# make o3n-singeli && ./BQN test/equal.bqn +### WHOLE-FILE-TEST +# tests 𝕨 ≡ 𝕩 +helpers ← ⊑•args +r ← helpers.GetRand@ ⟨ListVariations, ClearRefs, Variation, Squeeze, Info⟩ ← •internal -u ← ⌊100×(•UnixTime+1|100וMonoTime)@ -# u ↩ 123 - -r ← •MakeRand •Show u TestVars ← { w𝕊a‿b: n ← ¬w @@ -13,14 +12,14 @@ TestVars ← { w𝕊a‿b: •Out •Repr a •Out •Repr b •Out •Repr a≠b - •Exit 1 + !0 }⌜ ListVariations b ClearRefs@ } (1 TestVars ⋈˜)¨ ⟨⟨⟩ ⋄ "" ⋄ ↕0⟩ -⟨RandVals⟩ ← ⟨r⟩ •Import "utils.bqn" +⟨RandVals⟩ ← ⟨r⟩ helpers.Import "utils.bqn" Do ← { 𝕊: at ← r.Range 8 @@ -36,4 +35,4 @@ Do ← { 𝕊: }∘@⍟100 @ } -@∘Do⍟1000 @ \ No newline at end of file +@∘Do⍟1000 @