forked from fishercoder1534/Leetcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_1033Test.java
More file actions
34 lines (27 loc) · 787 Bytes
/
_1033Test.java
File metadata and controls
34 lines (27 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.fishercoder;
import com.fishercoder.solutions._1033;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.assertArrayEquals;
public class _1033Test {
private static _1033.Solution1 solution1;
@BeforeClass
public static void setup() {
solution1 = new _1033.Solution1();
}
@Test
public void test1() {
int[] expected = {1, 2};
assertArrayEquals(expected, solution1.numMovesStones(1, 2, 5));
}
@Test
public void test2() {
int[] expected = {0, 0};
assertArrayEquals(expected, solution1.numMovesStones(4, 3, 2));
}
@Test
public void test3() {
int[] expected = {1, 2};
assertArrayEquals(expected, solution1.numMovesStones(3, 5, 1));
}
}