Skip to content

Commit a4cc6d3

Browse files
committed
Added tests
1 parent 09f3a38 commit a4cc6d3

File tree

1 file changed

+26
-0
lines changed
  • src/test/java/g3301_3400/s3337_total_characters_in_string_after_transformations_ii

1 file changed

+26
-0
lines changed

src/test/java/g3301_3400/s3337_total_characters_in_string_after_transformations_ii/SolutionTest.java

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,30 @@ void lengthAfterTransformations2() {
3232
2, 2, 2, 2, 2, 2)),
3333
equalTo(8));
3434
}
35+
36+
@Test
37+
void lengthAfterTransformations3() {
38+
assertThat(
39+
new Solution()
40+
.lengthAfterTransformations(
41+
"sutnqlhkolxwjtrunkmaakgfyitzluklnrglpbnknbpdvxccpyupjzqldm",
42+
2826,
43+
List.of(
44+
9, 1, 6, 3, 2, 7, 8, 10, 8, 3, 9, 5, 10, 8, 10, 2, 2, 9, 10,
45+
1, 3, 5, 4, 4, 8, 10)),
46+
equalTo(557232981));
47+
}
48+
49+
@Test
50+
void lengthAfterTransformations4() {
51+
assertThat(
52+
new Solution()
53+
.lengthAfterTransformations(
54+
"mppgvcssluzhipednraxbdfbyn",
55+
3719,
56+
List.of(
57+
5, 3, 8, 1, 4, 2, 2, 4, 5, 2, 8, 5, 8, 2, 6, 10, 8, 1, 4, 1,
58+
7, 4, 2, 4, 7, 5)),
59+
equalTo(467065288));
60+
}
3561
}

0 commit comments

Comments
 (0)