Changing api to get sequences across all blocks

This commit is contained in:
Bimba Shrestha
2019-08-30 09:18:44 -07:00
parent 623b90f85d
commit 5f8b0f6890
4 changed files with 103 additions and 71 deletions
+5
View File
@@ -1960,6 +1960,11 @@ static int basicUnitTests(U32 const seed, double compressibility)
DISPLAYLEVEL(3, "OK \n");
}
DISPLAYLEVEL(3, "test%3i : ZSTD_getSequences zeros : ", testNb++);
memset(CNBuffer, 0, 1000000);
assert(ZSTD_getSequences(ZSTD_createCCtx(), CNBuffer, 1000000,
compressedBuffer, 1000000, 3) == 1000000 / 131071 + 1);
/* All zeroes test (test bug #137) */
#define ZEROESLENGTH 100
DISPLAYLEVEL(3, "test%3i : compress %u zeroes : ", testNb++, ZEROESLENGTH);