use lz_str::decompress; #[test] fn invalid_decompress() { let invalid_data = &["bed123", "zed123", "ed[[[[d1d[[[[dF9]"]; for data in invalid_data { eprintln!("Decompressing '{}'", data); let arr: Vec = data.encode_utf16().collect(); assert!(decompress(&arr).is_none()); } }