Skip to content

Commit

Permalink
test: perm missing elem
Browse files Browse the repository at this point in the history
  • Loading branch information
rldnrl committed Oct 20, 2023
1 parent 2538936 commit 4ce1dba
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/codility/PermMissingElemTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package codility;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public class PermMissingElemTest {
@Test
void solution() {
int[] input1 = {};
Assertions.assertEquals(PermMissingElem.solution(input1), 1);

int[] input2 = {1, 2, 3, 5};
Assertions.assertEquals(PermMissingElem.solution(input2), 4);
}
}

0 comments on commit 4ce1dba

Please sign in to comment.