diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..fbd604cd --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +language: java +jdk: + - oraclejdk8 + - oraclejdk7 + - openjdk8 + - openjdk7 diff --git a/src/test/java/PermuteTest.java b/src/test/java/PermuteTest.java new file mode 100644 index 00000000..179ec1aa --- /dev/null +++ b/src/test/java/PermuteTest.java @@ -0,0 +1,22 @@ +import java.util.ArrayList; +import org.cellocad.MIT.dnacompiler.Permute; +import java.util.Arrays; +import org.junit.Test; +import static org.junit.Assert.*; + +public class PermuteTest { + + @Test + public void testGetLogicPermutationTypeCheck() { + int[] arr = {0, 0}; + ArrayList inputLogicsSet = new ArrayList(Arrays.asList(arr)); + int n[] = {0, 0}; + int nR[] = {0, 0}; + int idx = 0; + Permute.getLogicPermutation(inputLogicsSet, n, nR, idx); + int[] actual = inputLogicsSet.get(0); + int[] expected = {0, 0}; + assertArrayEquals(expected, actual); + } +} +