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

This commit is contained in:
dzaima 2025-06-01 05:19:45 +03:00
parent b049fe196d
commit 2da4422434
2 changed files with 4 additions and 3 deletions

View File

@ -12,7 +12,6 @@ test/run.bqn // run tests in test/cases/
./BQN test/copy.bqn // fuzz-test creating new arrays with elements copied from another
./BQN test/bit.bqn // fuzz-test •bit functions
./BQN test/mut.bqn // fuzz-test mut.h (currently just bitarr fill)
./BQN test/hash.bqn // fuzz-test hashing
./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

View File

@ -1,6 +1,7 @@
### WHOLE-FILE-TEST
# note: tests only bit/i8/i16/i32 arrays; no f64/c8/c16/c32/generic array tests
u 100×(•UnixTime+1|100וMonoTime)@
R (•MakeRand •Show u).Range
helpers •args
R (helpers.GetRand@).Range
M (232)×+´
Test { 𝕊:
@ -23,3 +24,4 @@ fails ← 0‿0
{𝕊: fails+ Test@}¨1000
•Out "Collisions: " •Repr 0fails " (expected 0, assuming no actual hash collisions)"
•Out "Mismatches: " •Repr 1fails " (expected 0)"
! 0 = 1fails