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 6efca54 commit 4f0d620Copy full SHA for 4f0d620
src/test/kotlin/g3701_3800/s3731_find_missing_elements/SolutionTest.kt
@@ -7,25 +7,25 @@ import org.junit.jupiter.api.Test
7
internal class SolutionTest {
8
@Test
9
fun findMissingElements() {
10
- assertThat<MutableList<Int>>(
+ assertThat<List<Int>>(
11
Solution().findMissingElements(intArrayOf(1, 4, 2, 5)),
12
- equalTo<MutableList<Int>>(mutableListOf<Int>(3)),
+ equalTo<List<Int>>(mutableListOf<Int>(3)),
13
)
14
}
15
16
17
fun findMissingElements2() {
18
19
Solution().findMissingElements(intArrayOf(7, 8, 6, 9)),
20
- equalTo<MutableList<out Any>>(mutableListOf<Any>()),
+ equalTo<List<Int>>(mutableListOf<Int>()),
21
22
23
24
25
fun findMissingElements3() {
26
27
Solution().findMissingElements(intArrayOf(5, 1)),
28
- equalTo<MutableList<Int>>(mutableListOf<Int>(2, 3, 4)),
+ equalTo<List<Int>>(mutableListOf<Int>(2, 3, 4)),
29
30
31
0 commit comments