Skip to content

Commit f45bfec

Browse files
update 351 test
1 parent 8be01e9 commit f45bfec

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed
+5-12
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,22 @@
11
package com.fishercoder.firstthousand;
22

3-
import com.fishercoder.solutions.firstthousand._985;
3+
import com.fishercoder.solutions.firstthousand._351;
44
import org.junit.jupiter.api.BeforeEach;
55
import org.junit.jupiter.api.Test;
66

77
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
8+
import static org.junit.jupiter.api.Assertions.assertEquals;
89

910
public class _351Test {
10-
private static _985.Solution1 solution1;
11-
private static int[] expected;
12-
private static int[] actual;
13-
private static int[] A;
14-
private static int[][] queries;
11+
private static _351.Solution1 solution1;
1512

1613
@BeforeEach
1714
public void setup() {
18-
solution1 = new _985.Solution1();
15+
solution1 = new _351.Solution1();
1916
}
2017

2118
@Test
2219
public void test1() {
23-
A = new int[]{1, 2, 3, 4};
24-
queries = new int[][]{{1, 0}, {-3, 1}, {-4, 0}, {2, 3}};
25-
expected = new int[]{8, 6, 2, 4};
26-
actual = solution1.sumEvenAfterQueries(A, queries);
27-
assertArrayEquals(expected, actual);
20+
assertEquals(9, solution1.numberOfPatterns(1, 1));
2821
}
2922
}

0 commit comments

Comments
 (0)