Skip to content

Commit b3dd3ff

Browse files
committed
Added test
1 parent 70f19c2 commit b3dd3ff

File tree

1 file changed

+8
-0
lines changed
  • src/test/kotlin/g3201_3300/s3297_count_substrings_that_can_be_rearranged_to_contain_a_string_i

1 file changed

+8
-0
lines changed

src/test/kotlin/g3201_3300/s3297_count_substrings_that_can_be_rearranged_to_contain_a_string_i/SolutionTest.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,12 @@ internal class SolutionTest {
2525
equalTo<Long>(0L)
2626
)
2727
}
28+
29+
@Test
30+
fun validSubstringCount4() {
31+
assertThat<Long>(
32+
Solution().validSubstringCount("dcbdcdccb", "cdd"),
33+
equalTo<Long>(18L)
34+
)
35+
}
2836
}

0 commit comments

Comments
 (0)