Skip to content

Commit 213b25a

Browse files
authored
Merge pull request #33 from Freyert/travis
feat: travis testing
2 parents 767cf6b + ad7524a commit 213b25a

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: java
2+
jdk:
3+
- oraclejdk8
4+
- oraclejdk7
5+
- openjdk8
6+
- openjdk7

src/test/java/PermuteTest.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import java.util.ArrayList;
2+
import org.cellocad.MIT.dnacompiler.Permute;
3+
import java.util.Arrays;
4+
import org.junit.Test;
5+
import static org.junit.Assert.*;
6+
7+
public class PermuteTest {
8+
9+
@Test
10+
public void testGetLogicPermutationTypeCheck() {
11+
int[] arr = {0, 0};
12+
ArrayList<int[]> inputLogicsSet = new ArrayList<int[]>(Arrays.asList(arr));
13+
int n[] = {0, 0};
14+
int nR[] = {0, 0};
15+
int idx = 0;
16+
Permute.getLogicPermutation(inputLogicsSet, n, nR, idx);
17+
int[] actual = inputLogicsSet.get(0);
18+
int[] expected = {0, 0};
19+
assertArrayEquals(expected, actual);
20+
}
21+
}
22+

0 commit comments

Comments
 (0)