3
3
import static org .junit .jupiter .api .Assertions .assertEquals ;
4
4
5
5
import java .util .stream .Stream ;
6
+
6
7
import org .junit .jupiter .params .ParameterizedTest ;
7
8
import org .junit .jupiter .params .provider .Arguments ;
8
9
import org .junit .jupiter .params .provider .MethodSource ;
@@ -11,14 +12,14 @@ public class LongestIncreasingSubsequenceNLogNTest {
11
12
12
13
private static Stream <Arguments > provideTestCases () {
13
14
return Stream .of (
14
- Arguments .of (new int [] {10 , 9 , 2 , 5 , 3 , 7 , 101 , 18 }, 4 ),
15
- Arguments .of (new int [] {0 , 1 , 0 , 3 , 2 , 3 }, 4 ),
16
- Arguments .of (new int [] {7 , 7 , 7 , 7 , 7 }, 1 ),
17
- Arguments .of (new int [] {1 , 3 , 5 , 4 , 7 }, 4 ),
18
- Arguments .of (new int [] {}, 0 ),
19
- Arguments .of (new int [] {10 }, 1 ),
20
- Arguments .of (new int [] {3 , 10 , 2 , 1 , 20 }, 3 ),
21
- Arguments .of (new int [] {50 , 3 , 10 , 7 , 40 , 80 }, 4 )
15
+ Arguments .of (new int []{10 , 9 , 2 , 5 , 3 , 7 , 101 , 18 }, 4 ),
16
+ Arguments .of (new int []{0 , 1 , 0 , 3 , 2 , 3 }, 4 ),
17
+ Arguments .of (new int []{7 , 7 , 7 , 7 , 7 }, 1 ),
18
+ Arguments .of (new int []{1 , 3 , 5 , 4 , 7 }, 4 ),
19
+ Arguments .of (new int []{}, 0 ),
20
+ Arguments .of (new int []{10 }, 1 ),
21
+ Arguments .of (new int []{3 , 10 , 2 , 1 , 20 }, 3 ),
22
+ Arguments .of (new int []{50 , 3 , 10 , 7 , 40 , 80 }, 4 )
22
23
);
23
24
}
24
25
0 commit comments