diff options
| author | Jack O'Connor <[email protected]> | 2020-09-29 10:42:23 -0400 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2020-09-29 10:51:49 -0400 |
| commit | ae3e8e6b3a5ae3190ca5d62820789b17886a0038 (patch) | |
| tree | e2c9fb2ceec234f0b2ca03bd6a72652bd4850b45 /test_vectors/src | |
| parent | b54f8ff5ba1b4230e3ebabf183ddd066380be542 (diff) | |
add more test cases at shorter input lengths
Diffstat (limited to 'test_vectors/src')
| -rw-r--r-- | test_vectors/src/lib.rs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/test_vectors/src/lib.rs b/test_vectors/src/lib.rs index b07004a..04460f6 100644 --- a/test_vectors/src/lib.rs +++ b/test_vectors/src/lib.rs @@ -1,4 +1,4 @@ -use blake3::CHUNK_LEN; +use blake3::{BLOCK_LEN, CHUNK_LEN}; use serde::{Deserialize, Serialize}; // A non-multiple of 4 is important, since one possible bug is to fail to emit @@ -8,6 +8,19 @@ pub const OUTPUT_LEN: usize = 2 * blake3::BLOCK_LEN + 3; pub const TEST_CASES: &[usize] = &[ 0, 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + BLOCK_LEN - 1, + BLOCK_LEN, + BLOCK_LEN + 1, + 2 * BLOCK_LEN - 1, + 2 * BLOCK_LEN, + 2 * BLOCK_LEN + 1, CHUNK_LEN - 1, CHUNK_LEN, CHUNK_LEN + 1, |
