Test changes

This commit is contained in:
Dennis Schwerdel 2017-04-19 22:23:56 +02:00
parent 3839ed943f
commit d3e74d6b7f
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,5 @@
use super::*;
//use std::f64::consts;
use std::ptr;
// AE Chunker

View File

@ -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()
}