mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 08:18:55 +00:00
fixed test on win
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
This commit is contained in:
parent
412ad126dc
commit
7f8843fa1f
1 changed files with 9 additions and 8 deletions
|
@ -55,6 +55,7 @@ public class GrammarAccessExtensions2Test {
|
|||
|
||||
@Test
|
||||
public void testGrammarFragmentToString() throws Exception {
|
||||
String NL = System.lineSeparator();
|
||||
String grammar = "grammar org.xtext.example.mydsl.MyDsl\n" +
|
||||
"generate myDsl 'http://www.xtext.org/example/mydsl/MyDsl'\n" +
|
||||
"OpOther:\n" +
|
||||
|
@ -68,14 +69,14 @@ public class GrammarAccessExtensions2Test {
|
|||
" | '<>'\n" +
|
||||
" | '?:';\n";
|
||||
String expected =
|
||||
"//OpOther:\n" +
|
||||
"// '->'\n" +
|
||||
"// | '..<'\n" +
|
||||
"// | '>' '..'\n" +
|
||||
"// | '..'\n" +
|
||||
"// | '=>'\n" +
|
||||
"// | '>' (=> ('>' '>') | '>') | '<' (=> ('<' '<') | '<' | '=>') | '<>'\n" +
|
||||
"// | '?:';\n";
|
||||
"//OpOther:" + NL +
|
||||
"// '->'" + NL +
|
||||
"// | '..<'" + NL +
|
||||
"// | '>' '..'" + NL +
|
||||
"// | '..'" + NL +
|
||||
"// | '=>'" + NL +
|
||||
"// | '>' (=> ('>' '>') | '>') | '<' (=> ('<' '<') | '<' | '=>') | '<>'" + NL +
|
||||
"// | '?:';";
|
||||
firstRuleIsConvertedTo(
|
||||
grammar,
|
||||
expected);
|
||||
|
|
Loading…
Reference in a new issue