fixed test

This commit is contained in:
sefftinge 2008-07-14 08:18:16 +00:00 committed by sefftinge
parent 862ba89386
commit 74ba73e23c
2 changed files with 2 additions and 3 deletions

View file

@ -19,7 +19,7 @@ public class SerializeTest extends AbstractGeneratorTest {
public void testSimple() throws Exception {
String model = "/* foo */ x + y * ( /* stuff */ a /* end */\n * b)";
int x = model.length();
while (x>1) { //TODO check x>0
while (x>0) {
checkSerialize(model.substring(0,x--));
}
}

View file

@ -23,8 +23,7 @@ public class CommentOnEofBug_234135 extends AbstractGeneratorTest {
public void testCommentOnEof() throws Exception {
with(ReferenceGrammarStandaloneSetup.class);
// TODO: remove \n and make test succeed
String model = "//comment\n";
String model = "//comment";
EList<LeafNode> leafNodes = getRootNode(model).getLeafNodes();
assertEquals(1, leafNodes.size());
EObject grammarElement = leafNodes.get(0).getGrammarElement();