Skip to content

Commit eaa14de

Browse files
committed
Added test
1 parent 8d33874 commit eaa14de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/java/g1301_1400/s1392_longest_happy_prefix/SolutionTest.java

+5
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@ void longestPrefix() {
1515
void longestPrefix2() {
1616
assertThat(new Solution().longestPrefix("ababab"), equalTo("abab"));
1717
}
18+
19+
@Test
20+
void longestPrefix3() {
21+
assertThat(new Solution().longestPrefix("babbb"), equalTo("b"));
22+
}
1823
}

0 commit comments

Comments
 (0)