Skip to content

Commit

Permalink
Add test for issue 96
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Dec 11, 2024
1 parent e764e88 commit cccce2f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,13 @@ mod tests {
assert_eq!(&data[..], b"");
}

#[test]
fn write_empty2() {
let mut d = BzDecoder::new(Vec::new());
d.write(b"").unwrap();
d.finish().unwrap();
}

#[test]
fn qc() {
::quickcheck::quickcheck(test as fn(_) -> _);
Expand Down

0 comments on commit cccce2f

Please sign in to comment.