Skip to content

Commit

Permalink
test: odd occurrences in array
Browse files Browse the repository at this point in the history
  • Loading branch information
rldnrl committed Oct 20, 2023
1 parent 71ef747 commit fa3b13e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/codility/OddOccurrencesInArrayTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package codility;

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

class OddOccurrencesInArrayTest {
@Test
void solutionTest() {
int[] A1 = {9, 3, 9, 3, 9, 7, 9};
Assertions.assertEquals(OddOccurrencesInArray.solution(A1), 7);
}
}

0 comments on commit fa3b13e

Please sign in to comment.