diff --git a/src/test/java/com/fishercoder/firstthousand/_351Test.java b/src/test/java/com/fishercoder/firstthousand/_351Test.java index 8b2ba88c70..58aa781516 100644 --- a/src/test/java/com/fishercoder/firstthousand/_351Test.java +++ b/src/test/java/com/fishercoder/firstthousand/_351Test.java @@ -1,29 +1,22 @@ package com.fishercoder.firstthousand; -import com.fishercoder.solutions.firstthousand._985; +import com.fishercoder.solutions.firstthousand._351; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; public class _351Test { - private static _985.Solution1 solution1; - private static int[] expected; - private static int[] actual; - private static int[] A; - private static int[][] queries; + private static _351.Solution1 solution1; @BeforeEach public void setup() { - solution1 = new _985.Solution1(); + solution1 = new _351.Solution1(); } @Test public void test1() { - A = new int[]{1, 2, 3, 4}; - queries = new int[][]{{1, 0}, {-3, 1}, {-4, 0}, {2, 3}}; - expected = new int[]{8, 6, 2, 4}; - actual = solution1.sumEvenAfterQueries(A, queries); - assertArrayEquals(expected, actual); + assertEquals(9, solution1.numberOfPatterns(1, 1)); } }