Skip to content

Commit e5ced96

Browse files
committed
Fixed format
1 parent c86a441 commit e5ced96

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/test/kotlin/g3401_3500/s3470_permutations_iv/SolutionTest.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
package g3401_3500.s3470_permutations_iv
22

3-
import org.hamcrest.CoreMatchers
4-
import org.hamcrest.MatcherAssert
3+
import org.hamcrest.CoreMatchers.equalTo
4+
import org.hamcrest.MatcherAssert.assertThat
55
import org.junit.jupiter.api.Test
66

77
internal class SolutionTest {
88
@Test
99
fun permute() {
10-
MatcherAssert.assertThat<IntArray?>(
10+
assertThat<IntArray>(
1111
Solution().permute(4, 6L),
12-
CoreMatchers.equalTo<IntArray?>(intArrayOf(3, 4, 1, 2)),
12+
equalTo<IntArray>(intArrayOf(3, 4, 1, 2)),
1313
)
1414
}
1515

1616
@Test
1717
fun permute2() {
18-
MatcherAssert.assertThat<IntArray?>(
18+
assertThat<IntArray>(
1919
Solution().permute(3, 2L),
20-
CoreMatchers.equalTo<IntArray?>(intArrayOf(3, 2, 1)),
20+
equalTo<IntArray>(intArrayOf(3, 2, 1)),
2121
)
2222
}
2323

2424
@Test
2525
fun permute3() {
26-
MatcherAssert.assertThat<IntArray?>(Solution().permute(2, 3L), CoreMatchers.equalTo<IntArray?>(intArrayOf()))
26+
assertThat<IntArray>(Solution().permute(2, 3L), equalTo<IntArray>(intArrayOf()))
2727
}
2828

2929
@Test
3030
fun permute4() {
31-
MatcherAssert.assertThat<IntArray?>(
31+
assertThat<IntArray>(
3232
Solution().permute(43, 142570305460935L),
33-
CoreMatchers.equalTo<IntArray?>(
33+
equalTo<IntArray>(
3434
intArrayOf(
3535
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
3636
21, 22, 43, 40, 27, 36, 25, 34, 31, 32, 29, 28, 33, 24, 23, 26, 41, 42,

0 commit comments

Comments
 (0)