use of org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.Model in project xtext-core by eclipse.
the class AbstractParserTest method testParse_10_A_B.
@Test
public void testParse_10_A_B() throws Exception {
Model model = (Model) getModel("10 a b");
assertEquals(1, model.getFirstAsList().size());
assertEquals(1, model.getSecondAsList().size());
}
use of org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.Model in project xtext-core by eclipse.
the class AbstractParserTest method internalTestNested.
public void internalTestNested(String input, int expected) throws Exception {
Model model = (Model) getModel("bug302585 " + input);
assertNotNull(model);
List<NestedModel> nestedModels = model.getNestedModel();
assertEquals(expected, nestedModels.size());
for (NestedModel nested : nestedModels) {
assertTrue(nested.isFirst());
assertTrue(nested.isSecond());
}
}
use of org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.Model in project xtext-core by eclipse.
the class AbstractParserTest method testParse_7_A_B.
@Test
public void testParse_7_A_B() throws Exception {
Model model = (Model) getModel("7 a b");
assertEquals(1, model.getFirstAsList().size());
assertEquals(1, model.getSecondAsList().size());
}
use of org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.Model in project xtext-core by eclipse.
the class AbstractParserTest method testParse_6_A_B.
@Test
public void testParse_6_A_B() throws Exception {
Model model = (Model) getModel("6 a b");
assertEquals(1, model.getFirstAsList().size());
assertEquals(1, model.getSecondAsList().size());
}
use of org.eclipse.xtext.parser.unorderedGroups.unorderedGroupsTestLanguage.Model in project xtext-core by eclipse.
the class AbstractParserTest method testParse_10_A_B_A_B.
@Test
public void testParse_10_A_B_A_B() throws Exception {
Model model = (Model) getModel("10 a b a b");
assertEquals(2, model.getFirstAsList().size());
assertEquals(2, model.getSecondAsList().size());
}
Aggregations