simplified SRAM example

This commit is contained in:
hneemann 2017-04-19 16:15:01 +02:00
parent 3d6000abe6
commit 83fdfa98c5
2 changed files with 676 additions and 1531 deletions

File diff suppressed because it is too large Load Diff

View File

@ -67,7 +67,7 @@ public class ParserLoopTest extends TestCase {
}
}
public void testMissingEndloop() throws IOException, ParserException {
public void testMissingEndLoop() throws IOException, ParserException {
try {
new Parser("A B\nloop(i,10) C ((i+j)*2)").parse();
fail();
@ -75,7 +75,7 @@ public class ParserLoopTest extends TestCase {
}
}
public void testUnexpectedEndloop() throws IOException, ParserException {
public void testUnexpectedEndLoop() throws IOException, ParserException {
try {
new Parser("A B\n C ((i+j)*2)\nend loop").parse();
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) {
}
}
}