added a test

test both that the new parameter works as intended,
and that the over-split protection works as intended
This commit is contained in:
Yann Collet
2024-10-28 16:31:15 -07:00
parent 226ae73311
commit 37706a677c
3 changed files with 69 additions and 2 deletions
+1
View File
@@ -229,6 +229,7 @@ size_t ZSTD_splitBlock(const void* blockStart, size_t blockSize,
int level,
void* workspace, size_t wkspSize)
{
DEBUGLOG(6, "ZSTD_splitBlock (level=%i)", level);
assert(0<=level && level<=4);
if (level == 0)
return ZSTD_splitBlock_fromBorders(blockStart, blockSize, workspace, wkspSize);