summaryrefslogtreecommitdiffstats
path: root/vendor/flate2/tests/zero-write.rs
blob: f0db86cb8dc1e506d7217b82b51225feaff4365a (plain)
1
2
3
4
5
6
7
8
extern crate flate2;

#[test]
fn zero_write_is_error() {
    let mut buf = [0u8];
    let writer = flate2::write::DeflateEncoder::new(&mut buf[..], flate2::Compression::default());
    assert!(writer.finish().is_err());
}