1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-05-04 10:56:08 +02:00

fix the short_test_cases loop in the C bindings tests

This commit is contained in:
Jack O'Connor 2020-09-29 11:05:49 -04:00
parent 5bdfd07666
commit 3817999f17
2 changed files with 4 additions and 2 deletions

View File

@ -251,7 +251,6 @@ fn bench_many_parents_sse2(b: &mut Bencher) {
);
}
#[bench]
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
fn bench_many_parents_sse41(b: &mut Bencher) {

View File

@ -425,7 +425,10 @@ fn reference_hash(input: &[u8]) -> [u8; OUT_LEN] {
fn test_compare_update_multiple() {
// Don't use all the long test cases here, since that's unnecessarily slow
// in debug mode.
let short_test_cases = &TEST_CASES[..10];
let mut short_test_cases = TEST_CASES;
while *short_test_cases.last().unwrap() > 4 * CHUNK_LEN {
short_test_cases = &short_test_cases[..short_test_cases.len() - 1];
}
assert_eq!(*short_test_cases.last().unwrap(), 4 * CHUNK_LEN);
let mut input_buf = [0; 2 * TEST_CASES_MAX];