-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainTest.java
More file actions
46 lines (28 loc) · 883 Bytes
/
MainTest.java
File metadata and controls
46 lines (28 loc) · 883 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
35
36
37
38
39
40
41
42
import org.junit.Assert;
import static org.junit.jupiter.api.Assertions.*;
class MainTest {
@org.junit.jupiter.api.Test
void combinationSum() {
int [] input = { 1,3,5,4};
int expected = 68;
Main obj1 = new Main();
int actual = obj1.combinationSum(input);
Assert .assertEquals(expected,actual);
}
@org.junit.jupiter.api.Test
void combinationSum1() {
int [] input = { 1,4,7,6,5};
int expected = 173;
Main obj1 = new Main();
int actual = obj1.combinationSum(input);
Assert .assertEquals(expected,actual);
}
@org.junit.jupiter.api.Test
void combinationSum2() {
int [] input = { 7,6,5};
int expected = 60;
Main obj1 = new Main();
int actual = obj1.combinationSum(input);
Assert .assertEquals(expected,actual);
}
}