fix in several new tests

This commit is contained in:
InsanusMokrassar 2023-05-13 15:28:47 +06:00
parent 3573b2c558
commit 119009d3fb

View File

@ -24,7 +24,7 @@ class MapDiffUtilsTests {
@Test @Test
fun testMapDiffAdded() { fun testMapDiffAdded() {
val oldMap = mapOf("a" to 1, "b" to 2, "c" to 3) val oldMap = mapOf("a" to 1, "b" to 2, "c" to 3)
val newMap = mapOf("a" to 1, "c" to 3, "d" to 4) val newMap = mapOf("a" to 1, "b" to 2, "c" to 3, "d" to 4)
val diff = oldMap.diff(newMap) val diff = oldMap.diff(newMap)
@ -37,7 +37,7 @@ class MapDiffUtilsTests {
@Test @Test
fun testMapDiffChanged() { fun testMapDiffChanged() {
val oldMap = mapOf("a" to 1, "b" to 2, "c" to 3) val oldMap = mapOf("a" to 1, "b" to 2, "c" to 3)
val newMap = mapOf("a" to 1, "c" to 5, "d" to 4) val newMap = mapOf("a" to 1, "b" to 2, "c" to 5)
val diff = oldMap.diff(newMap) val diff = oldMap.diff(newMap)