From 5479a6601a98be19d66bb84d4a55bac11132c65d Mon Sep 17 00:00:00 2001 From: DoumanAsh Date: Sat, 17 Feb 2024 13:43:11 +0900 Subject: [PATCH] Increase input size to xxh3 test up to 4096 bytes --- tests/assert_correctness.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/assert_correctness.rs b/tests/assert_correctness.rs index e1c846f..f0acd76 100644 --- a/tests/assert_correctness.rs +++ b/tests/assert_correctness.rs @@ -197,8 +197,8 @@ fn assert_xxh3() { let mut hasher_1_128 = Xxh3::new(); let mut hasher_2_128 = Xxh3::with_seed(1); - let mut input = Vec::with_capacity(2048); - for num in 0..2048 { + let mut input = Vec::with_capacity(4096); + for num in 0..input.capacity() { input.resize(num, 1); println!("input(len={})", input.len()); getrandom(&mut input).expect("getrandom");