summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorketsuban <ketsuban@192.168.3.110>2026-08-26 08:37:24 +0000
committerketsuban <ketsuban@192.168.3.110>2026-08-26 08:37:24 +0000
commitf347d28b93f38c07d068228f500a35a9137dd46d (patch)
tree9d4ee2dc1cf0ed6364e98240b19e66ccd91fa208
parent3af7a43305c7112e3778c22369154bf6ed1d533a (diff)
downloadkukuri-f347d28b93f38c07d068228f500a35a9137dd46d.tar.gz
kukuri-f347d28b93f38c07d068228f500a35a9137dd46d.tar.bz2
kukuri-f347d28b93f38c07d068228f500a35a9137dd46d.zip
ContentSplitterTest: content-equality for byte arrays
-rw-r--r--modules/orgflow-content-store/src/commonTest/kotlin/jp/orgflow/contentstore/ContentSplitterTest.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/orgflow-content-store/src/commonTest/kotlin/jp/orgflow/contentstore/ContentSplitterTest.kt b/modules/orgflow-content-store/src/commonTest/kotlin/jp/orgflow/contentstore/ContentSplitterTest.kt
index e227917..2545bb7 100644
--- a/modules/orgflow-content-store/src/commonTest/kotlin/jp/orgflow/contentstore/ContentSplitterTest.kt
+++ b/modules/orgflow-content-store/src/commonTest/kotlin/jp/orgflow/contentstore/ContentSplitterTest.kt
@@ -26,7 +26,10 @@ class ContentSplitterTest {
@Test
fun deterministicBoundaries() {
val data = pseudoRandom(10_000)
- assertEquals(splitter.split(data), splitter.split(data))
+ val a = splitter.split(data)
+ val b = splitter.split(data)
+ assertEquals(a.map { it.size }, b.map { it.size })
+ assertTrue(a.zip(b).all { (x, y) -> x.contentEquals(y) })
}
@Test