This commit is contained in:
InsanusMokrassar 2020-11-02 00:14:25 +06:00
parent 5eb48a58bf
commit f0127b018e

View File

@ -16,7 +16,7 @@ class DiffUtilsTests {
continue continue
} }
val removedSublist = oldList.subList(i, i + count) val removedSublist = oldList.subList(i, i + count)
oldList.calculateNonstrictDiff(oldList - removedSublist).apply { oldList.calculateDiff(oldList - removedSublist).apply {
assertEquals( assertEquals(
removedSublist.mapIndexed { j, o -> IndexedValue(i + j, o) }, removedSublist.mapIndexed { j, o -> IndexedValue(i + j, o) },
removed removed
@ -68,7 +68,7 @@ class DiffUtilsTests {
mutable[index] = it.value mutable[index] = it.value
} }
} }
oldList.calculateNonstrictDiff(mutable).apply { oldList.calculateDiff(mutable).apply {
assertEquals( assertEquals(
changes, changes,
replaced replaced