diff --git a/LICENSE b/LICENSE index bb46440..b60e7d7 100644 --- a/LICENSE +++ b/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: diff --git a/tests/data/Shapes.in b/tests/data/Shapes.in new file mode 100644 index 0000000..8dcdf05 Binary files /dev/null and b/tests/data/Shapes.in differ diff --git a/tests/data/Shapes.out b/tests/data/Shapes.out new file mode 100644 index 0000000..a079962 Binary files /dev/null and b/tests/data/Shapes.out differ diff --git a/tests/defl.rs b/tests/defl.rs index 80936ab..5742b0d 100644 --- a/tests/defl.rs +++ b/tests/defl.rs @@ -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() {