Skip to content

Simple compress/decompress test failed on LZ77 #2

@tereshchenko

Description

@tereshchenko

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions