Browse Source

Test changes

pull/10/head
Dennis Schwerdel 5 years ago
parent
commit
d3e74d6b7f
  1. 1
      chunking/src/ae.rs
  2. 2
      chunking/tests/all.rs

1
chunking/src/ae.rs

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

2
chunking/tests/all.rs

@ -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…
Cancel
Save