add shapes decompression test
parent
0c0591f5ce
commit
dcf0f9e22f
4
LICENSE
4
LICENSE
|
@ -1,3 +1,7 @@
|
|||
Some of the data contained in tests/data and benches/data is
|
||||
Copyright © Bungie Software. I do not own them, but am permitted to
|
||||
redistribute them. Everything else is:
|
||||
|
||||
To the extent possible under law, I, Alison Sanderson, have waived all
|
||||
copyright and related or neighboring rights to this Document as described by
|
||||
the Creative Commons Zero license as follows:
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -22,6 +22,16 @@ fn defl_alice()
|
|||
assert_eq!(defl::load_deflate(b).unwrap().1, OUT.to_vec());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn defl_shapes()
|
||||
{
|
||||
const INPUT: &[u8] = include_bytes!("data/Shapes.in");
|
||||
const OUTPUT: &[u8] = include_bytes!("data/Shapes.out");
|
||||
|
||||
let b = &INPUT[defl::load_gzip_header(INPUT).unwrap()..];
|
||||
assert_eq!(defl::load_deflate(b).unwrap().1, OUTPUT.to_vec());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn defl_must_succeed()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue