@@ -25,16 +25,14 @@ void testLengthOfTwo() {
25
25
26
26
@ Test
27
27
void testLengthOfThree () {
28
- List <List <String >> expected = List .of (List .of (), List .of ("C" ), List .of ("B" ), List .of ("B" , "C" ), List .of ("A" ), List .of ("A" , "C" ), List .of ("A" , "B" ), List .of ("A" , "B" , "C" )
29
- );
28
+ List <List <String >> expected = List .of (List .of (), List .of ("C" ), List .of ("B" ), List .of ("B" , "C" ), List .of ("A" ), List .of ("A" , "C" ), List .of ("A" , "B" ), List .of ("A" , "B" , "C" ));
30
29
List <List <Object >> actual = Subsequence .generateAllSubsequences (List .of ("A" , "B" , "C" ));
31
30
assertIterableEquals (expected , actual );
32
31
}
33
32
34
33
@ Test
35
34
void testLengthOfThreeInteger () {
36
- List <List <Integer >> expected = List .of (List .of (), List .of (3 ), List .of (2 ), List .of (2 , 3 ), List .of (1 ), List .of (1 , 3 ), List .of (1 , 2 ), List .of (1 , 2 , 3 )
37
- );
35
+ List <List <Integer >> expected = List .of (List .of (), List .of (3 ), List .of (2 ), List .of (2 , 3 ), List .of (1 ), List .of (1 , 3 ), List .of (1 , 2 ), List .of (1 , 2 , 3 ));
38
36
List <List <Object >> actual = Subsequence .generateAllSubsequences (List .of (1 , 2 , 3 ));
39
37
assertIterableEquals (expected , actual );
40
38
}
0 commit comments