Skip to content

Commit 264fadc

Browse files
committed
Improved tests
1 parent 208997d commit 264fadc

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/test/kotlin/g3301_3400/s3355_zero_array_transformation_i/SolutionTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package g3301_3400.s3355_zero_array_transformation_i
22

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

@@ -10,7 +10,7 @@ internal class SolutionTest {
1010
assertThat<Boolean>(
1111
Solution()
1212
.isZeroArray(intArrayOf(1, 0, 1), arrayOf<IntArray>(intArrayOf(0, 2))),
13-
CoreMatchers.equalTo<Boolean>(true),
13+
equalTo<Boolean>(true),
1414
)
1515
}
1616

@@ -21,7 +21,7 @@ internal class SolutionTest {
2121
intArrayOf(4, 3, 2, 1),
2222
arrayOf<IntArray>(intArrayOf(1, 3), intArrayOf(0, 2)),
2323
),
24-
CoreMatchers.equalTo<Boolean>(false),
24+
equalTo<Boolean>(false),
2525
)
2626
}
2727

@@ -32,7 +32,7 @@ internal class SolutionTest {
3232
intArrayOf(-1, 0, 1),
3333
arrayOf<IntArray>(intArrayOf(1, 3), intArrayOf(0, 2)),
3434
),
35-
CoreMatchers.equalTo<Boolean>(true),
35+
equalTo<Boolean>(true),
3636
)
3737
}
3838
}

src/test/kotlin/g3301_3400/s3380_maximum_area_rectangle_with_point_constraints_i/SolutionTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package g3301_3400.s3380_maximum_area_rectangle_with_point_constraints_i
22

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

@@ -16,7 +16,7 @@ internal class SolutionTest {
1616
intArrayOf(3, 3),
1717
),
1818
),
19-
CoreMatchers.equalTo<Int>(4),
19+
equalTo<Int>(4),
2020
)
2121
}
2222

@@ -33,7 +33,7 @@ internal class SolutionTest {
3333
intArrayOf(2, 2),
3434
),
3535
),
36-
CoreMatchers.equalTo<Int>(-1),
36+
equalTo<Int>(-1),
3737
)
3838
}
3939

@@ -51,7 +51,7 @@ internal class SolutionTest {
5151
intArrayOf(3, 2),
5252
),
5353
),
54-
CoreMatchers.equalTo<Int>(2),
54+
equalTo<Int>(2),
5555
)
5656
}
5757
}

0 commit comments

Comments
 (0)