diff --git a/test/README.md b/test/README.md index 1d727dca..c529e8ba 100644 --- a/test/README.md +++ b/test/README.md @@ -7,7 +7,6 @@ test/mainCfgs.sh path/to/mlochbaum/BQN // run the test suite for a couple primar test/x86Cfgs.sh path/to/mlochbaum/BQN // run the test suite for x86-64-specific configurations, including singeli; 32-bit build is "supposed" to fail one test involving ⋆⁼ 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/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 ./BQN test/random.bqn // test (•MakeRand n).Range diff --git a/test/copy.bqn b/test/cases/fuzz/copy.bqn similarity index 89% rename from test/copy.bqn rename to test/cases/fuzz/copy.bqn index e72073c2..c93c010b 100644 --- a/test/copy.bqn +++ b/test/cases/fuzz/copy.bqn @@ -1,6 +1,8 @@ +### WHOLE-FILE-TEST +# tests full array copying via •internal.Variation +helpers ← ⊑•args +R ← (helpers.GetRand@).Range ⟨Variation, ListVariations, ClearRefs⟩ ⇐ •internal -u ← ⌊100×(•UnixTime+1|100וMonoTime)@ -R ← (•MakeRand •Show u).Range vn ← "Ab"‿"Ai8"‿"Ai16"‿"Ai32"‿"Af64"‿"Ac8"‿"Ac16"‿"Ac32"‿"Ah"‿"Af" vi ←⟨0, 0, 0, 0, 1, 2, 2, 2, 1, 1⟩ @@ -14,7 +16,7 @@ vf ↩ ∾⟜(8↓vn)¨ vf vf ↩ (↕10) {𝕩 ∾ 'S'∾¨ 1↓¨ (𝕨=0)↓𝕩}¨ vf vf ↩ {𝕩 ∾ ∾⟜"Inc"¨ 𝕩}¨ vf -•Show¨ vf +# •Show¨ vf count ← 10000 eqlen ← 0 @@ -44,7 +46,7 @@ eqlen ← 0 a0 ≡ a1?1; •Out "fail:" •Show v0‿"→"‿𝕩 - •Exit 1 + !0 }¨ vs }¨ vs ClearRefs@