uCBQN/test
2022-08-21 07:49:09 +03:00
..
ffi @ •FFI 𝕩 2022-08-21 07:49:09 +03:00
bitcpy.bqn remove old t= 2022-04-27 21:29:53 +03:00
cmp.bqn tests 2022-04-02 18:20:18 +03:00
copy.bqn randomize shape a bit in test/copy.bqn 2022-04-25 03:13:58 +03:00
equal.bqn fix generic squeeze case 2022-04-04 21:38:35 +03:00
hash.bqn wyhash microoptimization 2022-08-05 03:08:39 +03:00
joinReuse.bqn high-rank in-place w∾x 2022-07-09 02:00:22 +03:00
mainCfgs.sh remove old t= 2022-04-27 21:29:53 +03:00
moreCfgs.sh proper test order of precomp test 2022-07-26 04:54:15 +03:00
precompiled.bqn move old helper utilities to test/ 2022-06-04 01:54:19 +03:00
random.bqn slightly more random test coverage 2022-08-17 19:35:41 +03:00
README.md typed •rand.Range 2022-08-17 18:53:41 +03:00
readTests.bqn add argument descriptions to test/readTests.bqn 2022-06-04 02:25:18 +03:00
squeezeExact.bqn singeli chr_squeeze 2022-06-30 01:47:57 +03:00
squeezeValid.bqn singeli num_squeeze 2022-06-30 01:47:50 +03:00
utils.bqn squeeze test 2022-04-04 17:00:54 +03:00
various.bqn test/random.bqn → test/various.bqn 2022-08-17 16:20:55 +03:00
x86Cfgs.sh document expected fail for x86Cfgs.sh 2022-08-10 02:35:57 +03:00

Tests

Must be run from the projects root directory.

test/mainCfgs.sh path/to/mlochbaum/BQN // run the test suite for a couple primary configurations
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
./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/bitcpy.bqn // fuzz-test bit_cpy; requires a CBQN build with -DTEST_BITCPY
./BQN test/hash.bqn // fuzz-test hashing
./BQN test/squeezeValid.bqn // fuzz-test squeezing giving a correct result; requires a CBQN build with -DEEQUAL_NEGZERO
./BQN test/squeezeExact.bqn // fuzz-test squeezing giving the exact smallest result; requires a CBQN build with -DEEQUAL_NEGZERO
./BQN test/various.bqn // tests for various small things
./BQN test/random.bqn // test (•MakeRand n).Range
make -C test/ffi // test FFI functionality; expects both regular and shared library CBQN builds to already exist

legacy utilities:
  test/readTests.bqn // read mlochbaum/BQN tests in various formats
  test/precompiled.bqn // run a precompiled expression