mirror of https://github.com/dswd/zvault
Test changes
This commit is contained in:
parent
3839ed943f
commit
d3e74d6b7f
|
@ -1,6 +1,5 @@
|
|||
use super::*;
|
||||
|
||||
//use std::f64::consts;
|
||||
use std::ptr;
|
||||
|
||||
// AE Chunker
|
||||
|
|
|
@ -32,9 +32,11 @@ fn test_chunking(chunker: &mut Chunker, data: &[u8]) -> usize {
|
|||
chunks.push(chunk);
|
||||
let mut pos = 0;
|
||||
for chunk in &chunks {
|
||||
assert!(pos+chunk.len() <= data.len());
|
||||
assert_eq!(&data[pos..pos+chunk.len()], chunk as &[u8]);
|
||||
pos += chunk.len();
|
||||
}
|
||||
assert_eq!(pos, data.len());
|
||||
chunks.len()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue