move test/copy.bqn to test/run.bqn system

This commit is contained in:
dzaima 2025-06-01 06:02:46 +03:00
parent 3da8a8931b
commit 6812185e06
2 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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@