From 01fea8904d407e55bbbd21f2e899bd4561908c05 Mon Sep 17 00:00:00 2001 From: dzaima Date: Sun, 1 Jun 2025 06:11:04 +0300 Subject: [PATCH] move test/mut.bqn to test/run.bqn system --- src/builtins/internal.c | 2 +- test/README.md | 1 - test/{mut.bqn => cases/fuzz/bitarr-fill.bqn} | 7 ++++--- 3 files changed, 5 insertions(+), 5 deletions(-) rename test/{mut.bqn => cases/fuzz/bitarr-fill.bqn} (77%) diff --git a/src/builtins/internal.c b/src/builtins/internal.c index 87a90b5f..39447f5e 100644 --- a/src/builtins/internal.c +++ b/src/builtins/internal.c @@ -370,7 +370,7 @@ B internalTemp_c2(B t, B w, B x) { #endif #if TEST_UTILS - case 201: { // test/mut.bqn + case 201: { // test/cases/fuzz/bitarr-fill.bqn SGetU(x) FILL_TO(tyarr_ptr(GetU(x,4)), o2s(GetU(x,0)), o2s(GetU(x,1)), GetU(x,2), o2s(GetU(x,3))); return x; diff --git a/test/README.md b/test/README.md index c529e8ba..ba57ce76 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/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 ./BQN test/joinReuse.bqn // test in-place join; requires -DPRINT_JOIN_REUSE diff --git a/test/mut.bqn b/test/cases/fuzz/bitarr-fill.bqn similarity index 77% rename from test/mut.bqn rename to test/cases/fuzz/bitarr-fill.bqn index 3aed019b..0d455033 100644 --- a/test/mut.bqn +++ b/test/cases/fuzz/bitarr-fill.bqn @@ -1,5 +1,6 @@ -u ← ⌊100×(•UnixTime+1|100וMonoTime)@ -Range ← (•MakeRand •Show u).Range +### WHOLE-FILE-TEST +helpers ← ⊑•args +Range ← (helpers.GetRand@).Range Do ← {𝕊: orig ← (1000⌊𝕩) Range 2 @@ -14,7 +15,7 @@ Do ← {𝕊: •Show '0'+mut •Show '0'+exp •Show s‿l‿v - •Exit 1; + !0; 𝕩 }