mirror of
https://github.com/arnaucube/miden-crypto.git
synced 2026-01-12 00:51:29 +01:00
20
src/hash/blake/tests.rs
Normal file
20
src/hash/blake/tests.rs
Normal file
@@ -0,0 +1,20 @@
|
||||
use super::*;
|
||||
use crate::Vec;
|
||||
use proptest::prelude::*;
|
||||
|
||||
proptest! {
|
||||
#[test]
|
||||
fn blake160_wont_panic_with_arbitrary_input(ref vec in any::<Vec<u8>>()) {
|
||||
Blake3_160::hash(vec);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn blake192_wont_panic_with_arbitrary_input(ref vec in any::<Vec<u8>>()) {
|
||||
Blake3_192::hash(vec);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn blake256_wont_panic_with_arbitrary_input(ref vec in any::<Vec<u8>>()) {
|
||||
Blake3_256::hash(vec);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user