diff --git a/src/test/java/de/neemann/digital/integration/TestExamples.java b/src/test/java/de/neemann/digital/integration/TestExamples.java index 0fa31dcf3..cae0d47fe 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 void testDistExamples() throws Exception { */ public void testTestExamples() throws Exception { File examples = new File(Resources.getRoot(), "/dig/test"); - assertEquals(71, new FileScanner(this::check).scan(examples)); - assertEquals(65, testCasesInFiles); + assertEquals(72, new FileScanner(this::check).scan(examples)); + assertEquals(66, testCasesInFiles); } diff --git a/src/test/resources/dig/test/splitter/splitter4.dig b/src/test/resources/dig/test/splitter/splitter4.dig new file mode 100644 index 000000000..4f26f39d2 --- /dev/null +++ b/src/test/resources/dig/test/splitter/splitter4.dig @@ -0,0 +1,110 @@ + + + 1 + + + + Splitter + + + Input Splitting + 4 + + + Output Splitting + 3-3,2-2,1-1,0-0 + + + + + + In + + + Label + A + + + Bits + 4 + + + + + + Out + + + Label + X + + + + + + Out + + + Label + Z + + + + + + Out + + + Label + Y + + + + + + Testcase + + + Testdata + + A X Y Z U +repeat(16) (n) ((n>>3)&1) ((n>>2)&1) ((n>>1)&1) (n&1) + + + + + + + Out + + + Label + U + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file