diff --git a/src/commonTest/kotlin/testMerge.kt b/src/commonTest/kotlin/testMerge.kt index 6333d3d..4d95bc0 100644 --- a/src/commonTest/kotlin/testMerge.kt +++ b/src/commonTest/kotlin/testMerge.kt @@ -5,6 +5,7 @@ import net.sergeych.mp_logger.Log import net.sergeych.sprintf.sprintf import kotlin.test.Test import kotlin.test.assertEquals +import kotlin.test.assertTrue val List.str: String get() = joinToString("") @@ -105,4 +106,16 @@ class BasicTest { println(unchanged) assertEquals(0, unchanged.referenceIndex) } + + @Test + fun testMergeFilter() { + Log.connectConsole() + val source = "lxcvv".toList() + val our = "lssdfasdwerwev".toList() + val their = "lxcvasdfasdfs".toList() + val result = merge3(source, their, our) + println("got result") + val unchanged = result.blocks.filter { it is MergedBlock.Unchanged } + assertTrue(true) + } } \ No newline at end of file