forked from fishercoder1534/Leetcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_1086Test.java
More file actions
62 lines (55 loc) · 1.41 KB
/
_1086Test.java
File metadata and controls
62 lines (55 loc) · 1.41 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package com.fishercoder;
import com.fishercoder.solutions._1086;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.assertArrayEquals;
public class _1086Test {
private static _1086.Solution1 solution1;
private static _1086.Solution2 solution2;
private static int[][] items;
@BeforeClass
public static void setup() {
solution1 = new _1086.Solution1();
solution2 = new _1086.Solution2();
}
@Test
public void test1() {
items = new int[][]{
{1, 91},
{1, 92},
{2, 93},
{2, 97},
{1, 60},
{2, 77},
{1, 65},
{1, 87},
{1, 100},
{2, 100},
{2, 76}
};
assertArrayEquals(new int[][]{
{1, 87},
{2, 88}
}, solution1.highFive(items));
}
@Test
public void test2() {
items = new int[][]{
{1, 91},
{1, 92},
{2, 93},
{2, 97},
{1, 60},
{2, 77},
{1, 65},
{1, 87},
{1, 100},
{2, 100},
{2, 76}
};
assertArrayEquals(new int[][]{
{1, 87},
{2, 88}
}, solution2.highFive(items));
}
}