@@ -8,9 +8,9 @@ import org.junit.jupiter.api.Test
88internal  class  SolutionTest  {
99    @Test
1010    fun  calcEquation () {
11-         val  equations:  List <List <String ? >> =  ArrayUtils .getLists(arrayOf(arrayOf(" a" " b" " b" " c" 
11+         val  equations:  List <List <String >> =  ArrayUtils .getLists(arrayOf(arrayOf(" a" " b" " 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" " b" " c" " 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" " c" " b" " bc" " cd" " 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" " b" " a" " a" " c" " x" " y" 
4343        val  expected =  doubleArrayOf(0.50000 , 2.00000 , - 1.00000 , - 1.00000 )
4444        assertThat(Solution ().calcEquation(equations, values, queries), equalTo(expected))
0 commit comments