mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 00:38:56 +00:00
fixed test
This commit is contained in:
parent
b9aef0a957
commit
728d946742
2 changed files with 2 additions and 3 deletions
|
@ -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--));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue