I am running a simple compress and decompress test using the LZ77 algorithm. However, when I run the test, I get panic "called Result::unwrap() on an Err value: CorruptedData" on decompress() call.
Here's the code for the test:
#[test]
fn test_data_compress_decompress() {
let compressed = lzxpress::data::compress(TEST_LZNT1_UNCOMPRESSED_DATA).unwrap();
let uncompressed = lzxpress::data::decompress(compressed.as_slice()).unwrap();
assert_eq!(uncompressed, TEST_LZNT1_UNCOMPRESSED_DATA);
}