We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a859758 commit 8c8b94aCopy full SHA for 8c8b94a
src/test/java/g0001_0100/s0028_implement_strstr/SolutionTest.java
@@ -10,4 +10,14 @@ class SolutionTest {
10
void strStr() {
11
assertThat(new Solution().strStr("hello", "ll"), equalTo(2));
12
}
13
+
14
+ @Test
15
+ void strStr2() {
16
+ assertThat(new Solution().strStr("hello", ""), equalTo(0));
17
+ }
18
19
20
+ void strStr3() {
21
+ assertThat(new Solution().strStr("hello", "oo"), equalTo(-1));
22
23
0 commit comments