Fix string indentation in LexerTest

This commit is contained in:
Riccardo Azzolini 2019-01-27 19:08:10 +01:00
parent 27b128a6ea
commit c069e00178

View File

@ -13,10 +13,10 @@ public class LexerTest {
public void validRule() {
final Lexer lexer = new Lexer(
"reduction TestRule_123:\n" +
" x + y * z = -(a_123 +- 3 / 2.2) -> [\n" +
" x^a_123 = cos(pi) - log(e, e), // comment\n" +
" undefined, /*\n" +
"comment */ ]\n"
" x + y * z = -(a_123 +- 3 / 2.2) -> [\n" +
" x^a_123 = cos(pi) - log(e, e), // comment\n" +
" undefined, /*\n" +
"comment */ ]\n"
);
final List<Token> expected = Arrays.asList(
new Token(REDUCTION, "reduction", 0),