aboutsummaryrefslogtreecommitdiff
path: root/tests/core/hash
Commit message (Collapse)AuthorAgeFilesLines
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-281-1/+1
|
* [xxhash] For the streaming tests, randomly select the size to use.Jeroen van Rijn2022-05-021-5/+23
| | | | | | | | | Randomize size used with `update`. It'll print "Using user-selected seed {18109872483301276539,2000259725719371} for update size randomness." If a streaming test then fails, you can repeat it using: `odin run . -define:RAND_STATE=18109872483301276539 -define:RAND_INC=2000259725719371`
* [xxhash] Add tests for large inputsJeroen van Rijn2022-05-022-3/+155
| | | | | | | | | | | | | | Test XXH32, XXH64, XXH3-64 and XXH3-128 for large inputs, with both all-at-once and streaming APIs. XXH32_create_state and XXH64_create_state now implicitly call their "reset state" variants to simplify the streaming API to 3 steps: - create state / defer destroy - update - digest (finalize) These are tested with an array of 1, 2, 4, 8 and 16 megabytes worth of zeroes. All return the same hashes as do both the one-shot version, as well as that of the official xxhsum tool. 3778/3778 tests successful.
* [varint] Add LEB128 decoding + testsJeroen van Rijn2022-03-081-3/+1
| | | | Also make tests in general less spammy: Don't print [PASS] for each successful test, only report failures and progress.
* [tests] Make test runners exit with errorlevel 1 if a test fails.Jeroen van Rijn2022-03-031-0/+4
|
* hash: Smaller CRC-64 ISO 3306 table.Jeroen van Rijn2021-09-211-4/+4
|
* hash: Add CRC-64 (ISO 3306) and inverse.Jeroen van Rijn2021-09-211-3/+13
|
* Correct CRC-64 (ECMA 182) & add CRC-64 (XZ) and tests.Jeroen van Rijn2021-09-211-0/+31
|
* xxhash: Add tests for streaming input.Jeroen van Rijn2021-09-151-3/+27
|
* Add XXH3-64 + tests.Jeroen van Rijn2021-09-131-0/+28
|
* xxhash: typo.Jeroen van Rijn2021-09-121-1/+1
|
* xxhash: Add custom secret tests.Jeroen van Rijn2021-09-122-137/+2222
|
* xxhash: Extra (generated) tests.Jeroen van Rijn2021-09-112-1564/+4654
|
* xxhash: Add XXH3_128 + test vectors.Jeroen van Rijn2021-09-112-9/+1631
|
* Fix typo.Jeroen van Rijn2021-09-091-1/+1
|
* Add xxhash tests to CI.Jeroen van Rijn2021-09-091-0/+131