diff options
author | edef <edef@unfathomable.blue> | 2022-05-01 16:55:14 +0000 |
---|---|---|
committer | edef <edef@unfathomable.blue> | 2022-05-01 16:55:14 +0000 |
commit | 83887753e540d2e7a625717acdd247d79bcda231 (patch) | |
tree | e51045a17837727bbab68cbce27ca3459b5dd2dd | |
parent | a53b951b5597ed1be46946073839032b0e2116df (diff) | |
download | unf-legacy-83887753e540d2e7a625717acdd247d79bcda231.tar.zst |
ripple/fossil/chunker: clarify MAX_CHUNK_SIZE test
Change-Id: Ia5adb5a9056fd0e9ddcd8667c56129219b9d6f52
-rw-r--r-- | ripple/fossil/src/chunker/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ripple/fossil/src/chunker/mod.rs b/ripple/fossil/src/chunker/mod.rs index 3bc160e..3451990 100644 --- a/ripple/fossil/src/chunker/mod.rs +++ b/ripple/fossil/src/chunker/mod.rs @@ -163,7 +163,9 @@ mod test { } #[test] - fn all_zeroes() { + fn max_chunk() { + // all-zero byte sequences don't contain any split points, + // so the chunker is forced to limit the chunk size assert_eq!( super::Chunker::from(&[0u8; super::MAX_CHUNK_SIZE + 1]) .next() |