zstd: add test for uncompressing 0 length

This commit is contained in:
Kevin Albertson 2023-01-01 20:50:02 -05:00 committed by AndersBroman
parent a2e18feae7
commit 8ad7e2f538
1 changed files with 6 additions and 0 deletions

View File

@ -757,6 +757,12 @@ zstd_tests (void) {
"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F"),
.expect = NULL
},
{
.desc = "Uncompressing no data",
.data = "\0",
.len = 0,
.expect = ""
},
};