chromium/third_party/rust/chromium_crates_io/vendor/flate2-1.0.33/tests/zero-write.rs

#[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());
}