-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathResultTest.java
More file actions
24 lines (19 loc) · 796 Bytes
/
ResultTest.java
File metadata and controls
24 lines (19 loc) · 796 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
package hackrank.algorithm.implement.team;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.Arrays;
import java.util.List;
import org.junit.jupiter.api.Test;
public class ResultTest {
@Test
public void acmTeam_ThreePeople_FiveTopicsOneTeam() {
List<String> topicsKnowledge = Arrays.asList("10101", "11110", "00010");
List<Integer> maxTopicsTeams = Result.acmTeam(topicsKnowledge);
assertThat(maxTopicsTeams).containsExactly(5, 1);
}
@Test
public void acmTeam_FourPeople_FiveTopicsTwoTeams() {
List<String> topicsKnowledge = Arrays.asList("10101", "11100", "11010", "00101");
List<Integer> maxTopicsTeams = Result.acmTeam(topicsKnowledge);
assertThat(maxTopicsTeams).containsExactly(5, 2);
}
}