diff options
| author | ketsuban <ketsuban@192.168.3.110> | 2026-08-26 08:37:24 +0000 |
|---|---|---|
| committer | ketsuban <ketsuban@192.168.3.110> | 2026-08-26 08:37:24 +0000 |
| commit | f347d28b93f38c07d068228f500a35a9137dd46d (patch) | |
| tree | 9d4ee2dc1cf0ed6364e98240b19e66ccd91fa208 | |
| parent | 3af7a43305c7112e3778c22369154bf6ed1d533a (diff) | |
| download | kukuri-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.kt | 5 |
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 |
