Skip to content

Commit e369f48

Browse files
committed
Added test
1 parent c34728c commit e369f48

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/kotlin/g1301_1400/s1392_longest_happy_prefix/SolutionTest.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@ internal class SolutionTest {
1414
fun longestPrefix2() {
1515
assertThat(Solution().longestPrefix("ababab"), equalTo("abab"))
1616
}
17+
18+
@Test
19+
fun longestPrefix3() {
20+
assertThat(Solution().longestPrefix("babbb"), equalTo("b"))
21+
}
1722
}

0 commit comments

Comments
 (0)