diff --git a/src/test/java/de/neemann/digital/integration/TestExamples.java b/src/test/java/de/neemann/digital/integration/TestExamples.java index 4798a1d7d..4891e76c6 100644 --- a/src/test/java/de/neemann/digital/integration/TestExamples.java +++ b/src/test/java/de/neemann/digital/integration/TestExamples.java @@ -49,8 +49,8 @@ public class TestExamples extends TestCase { */ public void testTestExamples() throws Exception { File examples = new File(Resources.getRoot(), "/dig/test"); - assertEquals(193, new FileScanner(this::check).scan(examples)); - assertEquals(181, testCasesInFiles); + assertEquals(194, new FileScanner(this::check).scan(examples)); + assertEquals(182, testCasesInFiles); } /** diff --git a/src/test/resources/dig/test/virtualTestSignal.dig b/src/test/resources/dig/test/virtualTestSignal.dig new file mode 100644 index 000000000..292ff467d --- /dev/null +++ b/src/test/resources/dig/test/virtualTestSignal.dig @@ -0,0 +1,147 @@ + + + 1 + + + + Splitter + + + Input Splitting + 1,1,1 + + + Output Splitting + 3 + + + + + + In + + + Label + A + + + + + + Out + + + Label + Y + + + Bits + 3 + + + + + + Not + + + Bits + 3 + + + + + + Testcase + + + Testdata + + A P SP Y + +declare SP=(Y>>1)&1; + +loop (n,20) +1 0 0 x +0 1 1 x +end loop + + + + + + + Probe + + + Label + P + + + + + + Splitter + + + Input Splitting + 3 + + + Output Splitting + 1-1 + + + + + + NotConnected + + + + + NotConnected + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file