message: Add test for compression
diff: @@ -311,6 +311,21 @@ mod test {
  assert_eq!(files[0], std::path::Path::new("Cargo.toml"));
  }
  + #[test]
  + fn test_compression() {
  + let orig = "fn main() {}";
  + let compressed = compress(orig.as_bytes()).unwrap();
  + let blob = Blob {
  + mime: "text/rust".into(),
  + content: compressed.clone(),
  + path: "main.rs".into(),
  + date_updated: Timespec::new(42, 0),
  + compressed: true,
  + };
  + test_roundtrip(std::slice::from_ref(&blob));
  + assert_eq!(decompress(compressed.as_slice()).unwrap(), orig.as_bytes());
  + }
  +
  #[test]
  fn test_mime_types() {
  check_mime(".gitignore", "text/plain");
  