Skip to content

Commit

Permalink
Fixed format
Browse files Browse the repository at this point in the history
  • Loading branch information
javadev committed Mar 2, 2025
1 parent c86a441 commit e5ced96
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/test/kotlin/g3401_3500/s3470_permutations_iv/SolutionTest.kt
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
package g3401_3500.s3470_permutations_iv

import org.hamcrest.CoreMatchers
import org.hamcrest.MatcherAssert
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test

internal class SolutionTest {
@Test
fun permute() {
MatcherAssert.assertThat<IntArray?>(
assertThat<IntArray>(
Solution().permute(4, 6L),
CoreMatchers.equalTo<IntArray?>(intArrayOf(3, 4, 1, 2)),
equalTo<IntArray>(intArrayOf(3, 4, 1, 2)),
)
}

@Test
fun permute2() {
MatcherAssert.assertThat<IntArray?>(
assertThat<IntArray>(
Solution().permute(3, 2L),
CoreMatchers.equalTo<IntArray?>(intArrayOf(3, 2, 1)),
equalTo<IntArray>(intArrayOf(3, 2, 1)),
)
}

@Test
fun permute3() {
MatcherAssert.assertThat<IntArray?>(Solution().permute(2, 3L), CoreMatchers.equalTo<IntArray?>(intArrayOf()))
assertThat<IntArray>(Solution().permute(2, 3L), equalTo<IntArray>(intArrayOf()))
}

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

0 comments on commit e5ced96

Please sign in to comment.