@@ -12,7 +12,7 @@ internal class SolutionTest {
12
12
.lengthAfterTransformations(
13
13
" abcyy" ,
14
14
2 ,
15
- mutableListOf <Int >(
15
+ listOf <Int >(
16
16
1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 ,
17
17
1 , 1 , 1 , 1 , 1 , 2
18
18
)
@@ -28,12 +28,44 @@ internal class SolutionTest {
28
28
.lengthAfterTransformations(
29
29
" azbk" ,
30
30
1 ,
31
- mutableListOf <Int >(
31
+ listOf <Int >(
32
32
2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 ,
33
33
2 , 2 , 2 , 2 , 2 , 2
34
34
)
35
35
),
36
36
equalTo<Int >(8 )
37
37
)
38
38
}
39
+
40
+ @Test
41
+ fun lengthAfterTransformations3 () {
42
+ assertThat<Int >(
43
+ Solution ()
44
+ .lengthAfterTransformations(
45
+ " sutnqlhkolxwjtrunkmaakgfyitzluklnrglpbnknbpdvxccpyupjzqldm" ,
46
+ 2826 ,
47
+ listOf<Int >(
48
+ 9 , 1 , 6 , 3 , 2 , 7 , 8 , 10 , 8 , 3 , 9 , 5 , 10 , 8 , 10 , 2 , 2 , 9 , 10 ,
49
+ 1 , 3 , 5 , 4 , 4 , 8 , 10
50
+ )
51
+ ),
52
+ equalTo<Int >(557232981 )
53
+ )
54
+ }
55
+
56
+ @Test
57
+ fun lengthAfterTransformations4 () {
58
+ assertThat<Int >(
59
+ Solution ()
60
+ .lengthAfterTransformations(
61
+ " mppgvcssluzhipednraxbdfbyn" ,
62
+ 3719 ,
63
+ listOf<Int >(
64
+ 5 , 3 , 8 , 1 , 4 , 2 , 2 , 4 , 5 , 2 , 8 , 5 , 8 , 2 , 6 , 10 , 8 , 1 , 4 , 1 ,
65
+ 7 , 4 , 2 , 4 , 7 , 5
66
+ )
67
+ ),
68
+ equalTo<Int >(467065288 )
69
+ )
70
+ }
39
71
}
0 commit comments