diff --git a/src/test/java/de/neemann/digital/integration/TestExamples.java b/src/test/java/de/neemann/digital/integration/TestExamples.java index fbf39c0ba..4ad567489 100644 --- a/src/test/java/de/neemann/digital/integration/TestExamples.java +++ b/src/test/java/de/neemann/digital/integration/TestExamples.java @@ -39,8 +39,8 @@ public class TestExamples extends TestCase { */ public void testTestExamples() throws Exception { File examples = new File(Resources.getRoot(), "/dig/test"); - assertEquals(49, new FileScanner(this::check).scan(examples)); - assertEquals(42, testCasesInFiles); + assertEquals(51, new FileScanner(this::check).scan(examples)); + assertEquals(44, testCasesInFiles); } diff --git a/src/test/resources/dig/test/transp/trans2.dig b/src/test/resources/dig/test/transp/trans2.dig new file mode 100644 index 000000000..23ae2698a --- /dev/null +++ b/src/test/resources/dig/test/transp/trans2.dig @@ -0,0 +1,100 @@ + + + 1 + + + /home/hneemann/Dokumente/Java/digital/src/test/resources/dig/test/transp/trans.dig + + + + + Out + + + Label + Y + + + + + + In + + + Label + A + + + + + + In + + + Label + B + + + + + + Testcase + + + Testdata + + A B Y +0 0 0 +0 1 1 +1 0 1 +1 1 0 + + + + + + + XOr + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/test/resources/dig/test/transp/transtest2.dig b/src/test/resources/dig/test/transp/transtest2.dig new file mode 100644 index 000000000..38a7f7fad --- /dev/null +++ b/src/test/resources/dig/test/transp/transtest2.dig @@ -0,0 +1,71 @@ + + + 1 + + + Out + + + Label + Y + + + + + + In + + + Label + A + + + + + + In + + + Label + B + + + + + + Testcase + + + Testdata + + A B Y +0 0 0 +0 1 1 +1 0 1 +1 1 0 + + + + + + + trans2.dig + + + + + + + + + + + + + + + + + + + \ No newline at end of file