From 83887753e540d2e7a625717acdd247d79bcda231 Mon Sep 17 00:00:00 2001 From: edef Date: Sun, 1 May 2022 16:55:14 +0000 Subject: ripple/fossil/chunker: clarify MAX_CHUNK_SIZE test Change-Id: Ia5adb5a9056fd0e9ddcd8667c56129219b9d6f52 --- ripple/fossil/src/chunker/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ripple/fossil') 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() -- cgit 1.4.1