use of org.eclipse.xtext.parser.terminalrules.unicode.AbstractString in project xtext-core by eclipse.
the class UnicodeTest method testParseSTRING.
@Test
public void testParseSTRING() throws Exception {
XtextResource resource = getResource("'" + UMLAUTS + "' '" + QUOTED_UMLAUTS + "' '" + MIXED_UMLAUTS + "'", "test.mydsl");
Model model = (Model) resource.getContents().get(0);
for (AbstractString s : model.getStrings()) {
assertEquals(UMLAUTS, s.getName());
}
}
use of org.eclipse.xtext.parser.terminalrules.unicode.AbstractString in project xtext-core by eclipse.
the class UnicodeTest method testParse.
@Test
public void testParse() throws Exception {
XtextResource resource = getResource(UMLAUTS, "test.mydsl");
Model model = (Model) resource.getContents().get(0);
for (AbstractString s : model.getStrings()) {
assertEquals(UMLAUTS, s.getName());
}
}
Aggregations