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 5f7cea7 commit 5efbbb2Copy full SHA for 5efbbb2
src/test/java/com/fishercoder/_34Test.java
@@ -34,4 +34,28 @@ public void test2() {
34
assertArrayEquals(new int[]{-1, -1}, solution2.searchRange(nums, 0));
35
assertArrayEquals(new int[]{-1, -1}, solution3.searchRange(nums, 0));
36
}
37
+
38
+ @Test
39
+ public void IrinaTest3() {
40
+ nums = new int[]{1, 2, 3};
41
+ assertArrayEquals(new int[]{-1, -1}, solution2.searchRange(nums, 0)); // hits flag2
42
+ }
43
44
45
+ public void IrinaTest4() {
46
47
+ assertArrayEquals(new int[]{-1, -1}, solution2.searchRange(nums, 4)); // hits flag3
48
49
50
51
+ public void IrinaTest5() {
52
+ nums = new int[]{5, 7, 7, 8, 8, 10};
53
+ assertArrayEquals(new int[]{3, 4}, solution2.searchRange(nums, 8)); // hits flag4, flag5, flag6, flag7
54
55
56
57
+ public void IrinaTest6() {
58
59
+ assertArrayEquals(new int[]{-1, -1}, solution2.searchRange(nums, 6)); // hits flag4, flag8, flag9
60
61
0 commit comments