Skip to content

Commit 8c8b94a

Browse files
committed
Added tests for 28.
1 parent a859758 commit 8c8b94a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/test/java/g0001_0100/s0028_implement_strstr/SolutionTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,14 @@ class SolutionTest {
1010
void strStr() {
1111
assertThat(new Solution().strStr("hello", "ll"), equalTo(2));
1212
}
13+
14+
@Test
15+
void strStr2() {
16+
assertThat(new Solution().strStr("hello", ""), equalTo(0));
17+
}
18+
19+
@Test
20+
void strStr3() {
21+
assertThat(new Solution().strStr("hello", "oo"), equalTo(-1));
22+
}
1323
}

0 commit comments

Comments
 (0)