Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9d93e2c

Browse files
authored
Improved tasks 399, 3508
1 parent c931341 commit 9d93e2c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

‎src/test/kotlin/g0301_0400/s0399_evaluate_division/SolutionTest.kt‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import org.junit.jupiter.api.Test
88
internal class SolutionTest {
99
@Test
1010
fun calcEquation() {
11-
val equations: List<List<String?>> = ArrayUtils.getLists(arrayOf(arrayOf("a", "b"), arrayOf("b", "c")))
11+
val equations: List<List<String>> = ArrayUtils.getLists(arrayOf(arrayOf("a", "b"), arrayOf("b", "c")))
1212
val values = doubleArrayOf(2.0, 3.0)
13-
val queries: List<List<String?>> = ArrayUtils.getLists(
13+
val queries: List<List<String>> = ArrayUtils.getLists(
1414
arrayOf(
1515
arrayOf("a", "c"),
1616
arrayOf("b", "a"),
@@ -25,20 +25,20 @@ internal class SolutionTest {
2525

2626
@Test
2727
fun calcEquation2() {
28-
val equations: List<List<String?>> =
28+
val equations: List<List<String>> =
2929
ArrayUtils.getLists(arrayOf(arrayOf("a", "b"), arrayOf("b", "c"), arrayOf("bc", "cd")))
3030
val values = doubleArrayOf(1.5, 2.5, 5.0)
31-
val queries: List<List<String?>> =
31+
val queries: List<List<String>> =
3232
ArrayUtils.getLists(arrayOf(arrayOf("a", "c"), arrayOf("c", "b"), arrayOf("bc", "cd"), arrayOf("cd", "bc")))
3333
val expected = doubleArrayOf(3.75000, 0.40000, 5.00000, 0.20000)
3434
assertThat(Solution().calcEquation(equations, values, queries), equalTo(expected))
3535
}
3636

3737
@Test
3838
fun calcEquation3() {
39-
val equations: List<List<String?>> = ArrayList(listOf(listOf("a", "b")))
39+
val equations: List<List<String>> = ArrayList(listOf(listOf("a", "b")))
4040
val values = doubleArrayOf(0.5)
41-
val queries: List<List<String?>> =
41+
val queries: List<List<String>> =
4242
ArrayUtils.getLists(arrayOf(arrayOf("a", "b"), arrayOf("b", "a"), arrayOf("a", "c"), arrayOf("x", "y")))
4343
val expected = doubleArrayOf(0.50000, 2.00000, -1.00000, -1.00000)
4444
assertThat(Solution().calcEquation(equations, values, queries), equalTo(expected))

‎src/test/kotlin/g3501_3600/s3508_implement_router/RouterTest.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ internal class RouterTest {
2828
// Packet is added. Return True.
2929
assertThat<Boolean>(router.addPacket(5, 2, 110), equalTo<Boolean>(true))
3030
// The only packet with destination 5 and timestamp in the inclusive range
31-
assertThat<Int?>(router.getCount(5, 100, 110), equalTo<Int?>(1))
31+
assertThat<Int>(router.getCount(5, 100, 110), equalTo<Int>(1))
3232
}
3333

3434
@Test

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /