Increase cgolz4 Writer buf len for older lz4 libs

This commit is contained in:
Nigel Tao committed 2019-12-23 17:30:50 +11:00
1 parent 6f7e9dfa26
commit 7d4a3a127d
2 files changed
+13 -1

No files matched your search

+6
View File
@@ -89,3 +89,9 @@ func TestRoundTrip(tt *testing.T) {
}
}
}
func TestWriterBufIsLargeEnough(tt *testing.T) {
if m := minDstLenForBlockMaxLen(); writerBufLen < m {
tt.Fatalf("writerBufLen: got %d, want >= %d", writerBufLen, m)
}
}