-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppTest.java
More file actions
29 lines (21 loc) · 954 Bytes
/
AppTest.java
File metadata and controls
29 lines (21 loc) · 954 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
/*
* This Java source file was generated by the Gradle 'init' task.
*/
package find.prime.numbers;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
import java.util.Arrays;
class AppTest {
@Test void solution() {
App classUnderTest = new App();
String[] participants = {"leo", "kiki", "eden"};
String[] completion = {"eden", "kiki"};
assertEquals("leo", classUnderTest.solution(participants, completion));
String[] participants2 = {"marina", "josipa", "nikola", "vinko", "filipa"};
String[] completion2 = {"josipa", "filipa", "marina", "nikola"};
assertEquals("vinko", classUnderTest.solution(participants2, completion2));
String[] participants3 = {"mislav", "stanko", "mislav", "ana"};
String[] completion3 = {"stanko", "ana", "mislav"};
assertEquals("mislav", classUnderTest.solution(participants3, completion3));
}
}