We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f0bc85 commit b5d3585Copy full SHA for b5d3585
test/com/github/masx200/leetcode_test/operations_lcci/OperationsTest.kt
@@ -78,10 +78,13 @@ class OperationsTest {
78
// }
79
assertContentEquals(
80
81
- expected.map { if (it is Number) it.toLong() else it },
82
- actual.map { if (it is Number) it.toLong() else it }
+ mapToLong(expected),
+ mapToLong(actual)
83
)
84
}
85
86
+ private fun mapToLong(expected: List<Any?>) =
87
+ expected.map { if (it is Number) it.toLong() else it }
88
+
89
90
0 commit comments