diff --git a/common/src/commonTest/kotlin/dev/inmo/micro_utils/common/MapDiffUtilsTests.kt b/common/src/commonTest/kotlin/dev/inmo/micro_utils/common/MapDiffUtilsTests.kt index 0c290e786ef..0ff4408bd0b 100644 --- a/common/src/commonTest/kotlin/dev/inmo/micro_utils/common/MapDiffUtilsTests.kt +++ b/common/src/commonTest/kotlin/dev/inmo/micro_utils/common/MapDiffUtilsTests.kt @@ -7,12 +7,6 @@ import kotlin.test.assertTrue class MapDiffUtilsTests { - private fun compareFun(wasCalled: BooleanArray): (K, V, V) -> Boolean = { _, a, b -> - wasCalled[0] = true - a != b - } - private val compareFunWasCalled = booleanArrayOf(false) - private val originalMap = mapOf( "a" to 1, "b" to 2, @@ -61,6 +55,12 @@ class MapDiffUtilsTests { newMapAdded.second, ) ) + private val compareFunWasCalled = booleanArrayOf(false) + + private fun compareFun(wasCalled: BooleanArray): (K, V, V) -> Boolean = { _, a, b -> + wasCalled[0] = true + a != b + } @Test fun testMapDiffRemoved() {