fogor cargo, unit test
This commit is contained in:
parent
9d0de8eb96
commit
c7b4502db0
3 changed files with 300 additions and 0 deletions
10
tests/chacha.rs
Normal file
10
tests/chacha.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
use chacha::do_chacha;
|
||||
|
||||
#[test]
|
||||
fn do_some_chacha() {
|
||||
let data = b"Hello world!";
|
||||
|
||||
let data = do_chacha(data, &[69u8; 32], [420u32; 3], 0, 20);
|
||||
|
||||
println!("{:?}", data);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue