mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-26 22:41:59 -04:00
simplified SRAM example
This commit is contained in:
parent
3d6000abe6
commit
83fdfa98c5
File diff suppressed because it is too large
Load Diff
@ -67,7 +67,7 @@ public class ParserLoopTest extends TestCase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testMissingEndloop() throws IOException, ParserException {
|
public void testMissingEndLoop() throws IOException, ParserException {
|
||||||
try {
|
try {
|
||||||
new Parser("A B\nloop(i,10) C ((i+j)*2)").parse();
|
new Parser("A B\nloop(i,10) C ((i+j)*2)").parse();
|
||||||
fail();
|
fail();
|
||||||
@ -75,7 +75,7 @@ public class ParserLoopTest extends TestCase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testUnexpectedEndloop() throws IOException, ParserException {
|
public void testUnexpectedEndLoop() throws IOException, ParserException {
|
||||||
try {
|
try {
|
||||||
new Parser("A B\n C ((i+j)*2)\nend loop").parse();
|
new Parser("A B\n C ((i+j)*2)\nend loop").parse();
|
||||||
fail();
|
fail();
|
||||||
@ -83,4 +83,12 @@ public class ParserLoopTest extends TestCase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testIncompleteEndLoop() throws IOException, ParserException {
|
||||||
|
try {
|
||||||
|
new Parser("A B\n C ((i+j)*2)\nend").parse();
|
||||||
|
fail();
|
||||||
|
} catch (ParserException e) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user