mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-30 08:23:37 -04:00
added an additional test
This commit is contained in:
parent
c31554c5b1
commit
0c7aea59e0
@ -28,17 +28,7 @@ ist. Die jeweils anderen Ausgänge sind hochohmig.</string>
|
|||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<string>Data</string>
|
<string>Data</string>
|
||||||
<data>
|
<data size="8">44,69,65,73,20,69,73,74</data>
|
||||||
<size>8</size>
|
|
||||||
<long>68</long>
|
|
||||||
<long>105</long>
|
|
||||||
<long>101</long>
|
|
||||||
<long>115</long>
|
|
||||||
<long>32</long>
|
|
||||||
<long>105</long>
|
|
||||||
<long>115</long>
|
|
||||||
<long>116</long>
|
|
||||||
</data>
|
|
||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<string>Addr Bits</string>
|
<string>Addr Bits</string>
|
||||||
@ -56,17 +46,7 @@ ist. Die jeweils anderen Ausgänge sind hochohmig.</string>
|
|||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<string>Data</string>
|
<string>Data</string>
|
||||||
<data>
|
<data size="8">20,65,69,6e,20,6c,61,6e</data>
|
||||||
<size>8</size>
|
|
||||||
<long>32</long>
|
|
||||||
<long>101</long>
|
|
||||||
<long>105</long>
|
|
||||||
<long>110</long>
|
|
||||||
<long>32</long>
|
|
||||||
<long>108</long>
|
|
||||||
<long>97</long>
|
|
||||||
<long>110</long>
|
|
||||||
</data>
|
|
||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<string>Addr Bits</string>
|
<string>Addr Bits</string>
|
||||||
@ -112,17 +92,7 @@ ist. Die jeweils anderen Ausgänge sind hochohmig.</string>
|
|||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<string>Data</string>
|
<string>Data</string>
|
||||||
<data>
|
<data size="8">67,65,72,20,54,65,73,74</data>
|
||||||
<size>8</size>
|
|
||||||
<long>103</long>
|
|
||||||
<long>101</long>
|
|
||||||
<long>114</long>
|
|
||||||
<long>32</long>
|
|
||||||
<long>84</long>
|
|
||||||
<long>101</long>
|
|
||||||
<long>115</long>
|
|
||||||
<long>116</long>
|
|
||||||
</data>
|
|
||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<string>Addr Bits</string>
|
<string>Addr Bits</string>
|
||||||
@ -140,17 +110,7 @@ ist. Die jeweils anderen Ausgänge sind hochohmig.</string>
|
|||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<string>Data</string>
|
<string>Data</string>
|
||||||
<data>
|
<data size="8">74,65,78,74,2e,20,20,20</data>
|
||||||
<size>8</size>
|
|
||||||
<long>116</long>
|
|
||||||
<long>101</long>
|
|
||||||
<long>120</long>
|
|
||||||
<long>116</long>
|
|
||||||
<long>46</long>
|
|
||||||
<long>32</long>
|
|
||||||
<long>32</long>
|
|
||||||
<long>32</long>
|
|
||||||
</data>
|
|
||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<string>Addr Bits</string>
|
<string>Addr Bits</string>
|
||||||
@ -202,18 +162,76 @@ ist. Die jeweils anderen Ausgänge sind hochohmig.</string>
|
|||||||
<pos x="280" y="160"/>
|
<pos x="280" y="160"/>
|
||||||
</visualElement>
|
</visualElement>
|
||||||
<visualElement>
|
<visualElement>
|
||||||
<elementName>Probe</elementName>
|
<elementName>Testcase</elementName>
|
||||||
|
<elementAttributes>
|
||||||
|
<entry>
|
||||||
|
<string>Testdata</string>
|
||||||
|
<testData>
|
||||||
|
<dataString>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
|
||||||
|
</dataString>
|
||||||
|
</testData>
|
||||||
|
</entry>
|
||||||
|
</elementAttributes>
|
||||||
|
<pos x="320" y="300"/>
|
||||||
|
</visualElement>
|
||||||
|
<visualElement>
|
||||||
|
<elementName>Out</elementName>
|
||||||
<elementAttributes>
|
<elementAttributes>
|
||||||
<entry>
|
<entry>
|
||||||
<string>Label</string>
|
<string>Label</string>
|
||||||
<string>Data</string>
|
<string>Data</string>
|
||||||
</entry>
|
</entry>
|
||||||
<entry>
|
<entry>
|
||||||
<string>intFormat</string>
|
<string>Bits</string>
|
||||||
<intFormat>ascii</intFormat>
|
<int>8</int>
|
||||||
</entry>
|
</entry>
|
||||||
</elementAttributes>
|
</elementAttributes>
|
||||||
<pos x="800" y="160"/>
|
<pos x="760" y="160"/>
|
||||||
</visualElement>
|
</visualElement>
|
||||||
</visualElements>
|
</visualElements>
|
||||||
<wires>
|
<wires>
|
||||||
@ -231,7 +249,7 @@ ist. Die jeweils anderen Ausgänge sind hochohmig.</string>
|
|||||||
</wire>
|
</wire>
|
||||||
<wire>
|
<wire>
|
||||||
<p1 x="740" y="160"/>
|
<p1 x="740" y="160"/>
|
||||||
<p2 x="800" y="160"/>
|
<p2 x="760" y="160"/>
|
||||||
</wire>
|
</wire>
|
||||||
<wire>
|
<wire>
|
||||||
<p1 x="580" y="480"/>
|
<p1 x="580" y="480"/>
|
||||||
|
@ -29,7 +29,7 @@ public class TestExamples extends TestCase {
|
|||||||
public void testDistExamples() throws Exception {
|
public void testDistExamples() throws Exception {
|
||||||
File examples = new File(Resources.getRoot().getParentFile().getParentFile(), "/main/dig");
|
File examples = new File(Resources.getRoot().getParentFile().getParentFile(), "/main/dig");
|
||||||
assertEquals(91, new FileScanner(this::check).scan(examples));
|
assertEquals(91, new FileScanner(this::check).scan(examples));
|
||||||
assertEquals(42, testCasesInFiles);
|
assertEquals(43, testCasesInFiles);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user