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 402a44d commit 722f746Copy full SHA for 722f746
src/test/java/com/fishercoder/_35Test.java
@@ -0,0 +1,23 @@
1
+package com.fishercoder;
2
+
3
+import com.fishercoder.solutions._35;
4
+import org.junit.BeforeClass;
5
+import org.junit.Test;
6
7
+import static org.junit.Assert.assertEquals;
8
9
+public class _35Test {
10
+ private static _35.Solution1 solution1;
11
+ private static int[] nums;
12
13
+ @BeforeClass
14
+ public static void setup() {
15
+ solution1 = new _35.Solution1();
16
+ }
17
18
+ @Test
19
+ public void test1() {
20
+ nums = new int[]{1, 3, 5, 6};
21
+ assertEquals(2, solution1.searchInsert(nums, 5));
22
23
+}
0 commit comments