From 0c7aea59e0fb98c24515366d969506f132fc42ae Mon Sep 17 00:00:00 2001 From: hneemann Date: Wed, 14 Dec 2016 20:34:21 +0100 Subject: [PATCH] added an additional test --- src/main/dig/combinatorial/Bus.dig | 116 ++++++++++-------- .../digital/integration/TestExamples.java | 2 +- 2 files changed, 68 insertions(+), 50 deletions(-) diff --git a/src/main/dig/combinatorial/Bus.dig b/src/main/dig/combinatorial/Bus.dig index aa800be36..5f02a13f1 100644 --- a/src/main/dig/combinatorial/Bus.dig +++ b/src/main/dig/combinatorial/Bus.dig @@ -28,17 +28,7 @@ ist. Die jeweils anderen Ausgänge sind hochohmig. Data - - 8 - 68 - 105 - 101 - 115 - 32 - 105 - 115 - 116 - + 44,69,65,73,20,69,73,74 Addr Bits @@ -56,17 +46,7 @@ ist. Die jeweils anderen Ausgänge sind hochohmig. Data - - 8 - 32 - 101 - 105 - 110 - 32 - 108 - 97 - 110 - + 20,65,69,6e,20,6c,61,6e Addr Bits @@ -112,17 +92,7 @@ ist. Die jeweils anderen Ausgänge sind hochohmig. Data - - 8 - 103 - 101 - 114 - 32 - 84 - 101 - 115 - 116 - + 67,65,72,20,54,65,73,74 Addr Bits @@ -140,17 +110,7 @@ ist. Die jeweils anderen Ausgänge sind hochohmig. Data - - 8 - 116 - 101 - 120 - 116 - 46 - 32 - 32 - 32 - + 74,65,78,74,2e,20,20,20 Addr Bits @@ -202,18 +162,76 @@ ist. Die jeweils anderen Ausgänge sind hochohmig. - Probe + Testcase + + + Testdata + + Clock Data + 0 0x44 + c 0x69 + c 0x65 + c 0x73 + c 0x20 + c 0x69 + c 0x73 + c 0x74 + + c 0x20 + c 0x65 + c 0x69 + c 0x6E + c 0x20 + c 0x6C + c 0x61 + c 0x6E + + c 0x67 + c 0x65 + c 0x72 + c 0x20 + c 0x54 + c 0x65 + c 0x73 + c 0x74 + + c 0x74 + c 0x65 + c 0x78 + c 0x74 + c 0x2E + c 0x20 + c 0x20 + c 0x20 + +# repeat first block + c 0x44 + c 0x69 + c 0x65 + c 0x73 + c 0x20 + c 0x69 + c 0x73 + c 0x74 + + + + + + + + Out Label Data - intFormat - ascii + Bits + 8 - + @@ -231,7 +249,7 @@ ist. Die jeweils anderen Ausgänge sind hochohmig. - + diff --git a/src/test/java/de/neemann/digital/integration/TestExamples.java b/src/test/java/de/neemann/digital/integration/TestExamples.java index ef6c76c06..df78e0c19 100644 --- a/src/test/java/de/neemann/digital/integration/TestExamples.java +++ b/src/test/java/de/neemann/digital/integration/TestExamples.java @@ -29,7 +29,7 @@ public class TestExamples extends TestCase { public void testDistExamples() throws Exception { File examples = new File(Resources.getRoot().getParentFile().getParentFile(), "/main/dig"); assertEquals(91, new FileScanner(this::check).scan(examples)); - assertEquals(42, testCasesInFiles); + assertEquals(43, testCasesInFiles); } /**