Skip to content

Commit 533ddfa

Browse files
add test for 3006
1 parent 2c08b18 commit 533ddfa

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package com.fishercoder;
2+
3+
import com.fishercoder.solutions._3006;
4+
import org.junit.BeforeClass;
5+
import org.junit.Test;
6+
7+
import java.util.ArrayList;
8+
import java.util.Arrays;
9+
10+
import static org.junit.Assert.assertEquals;
11+
12+
public class _3006Test {
13+
private static _3006.Solution1 solution1;
14+
15+
@BeforeClass
16+
public static void setup() {
17+
solution1 = new _3006.Solution1();
18+
}
19+
20+
@Test
21+
public void test1() {
22+
assertEquals(Arrays.asList(16, 33), solution1.beautifulIndices("isawsquirrelnearmysquirrelhouseohmy", "my", "squirrel", 15));
23+
}
24+
25+
@Test
26+
public void test2() {
27+
assertEquals(new ArrayList<>(Arrays.asList(0)), solution1.beautifulIndices("bavgoc", "ba", "c", 6));
28+
}
29+
30+
@Test
31+
public void test3() {
32+
assertEquals(Arrays.asList(), solution1.beautifulIndices("lrtsi", "lrts", "i", 3));
33+
}
34+
35+
}

0 commit comments

Comments
 (0)