530531532533534535536537538539540
} @Test public void testArrayAccessNested2() { this.parser = new ExpressionParser(new ExpressionLexer("a[c[3+c[y*2]]]"), codeGenerator); this.parser.parse(); assertEquals("a c 3 c y 2 * [] + [] []", codeGenerator.getPostFixExpression()); }
540541542543544545546547
} @Test(expected = ExpressionSyntaxErrorException.class) public void testArrayAccess_Illegal1() { this.parser = new ExpressionParser(new ExpressionLexer("ab+c/2]"), codeGenerator); this.parser.parse(); }
547548549550551552553554
} @Test(expected = ExpressionSyntaxErrorException.class) public void testArrayAccess_Illegal2() { this.parser = new ExpressionParser(new ExpressionLexer("a[c[3+c[y*2]]"), codeGenerator); this.parser.parse(); }
554555556557558559560561
} @Test(expected = ExpressionSyntaxErrorException.class) public void testArrayAccess_Illegal3() { this.parser = new ExpressionParser(new ExpressionLexer("a[c[3+true[y*2]]]"), codeGenerator); this.parser.parse(); }
561562563564565566567568
} @Test(expected = ExpressionSyntaxErrorException.class) public void testArrayAccess_Illegal4() { this.parser = new ExpressionParser(new ExpressionLexer("a[c3+c[y*2]]]"), codeGenerator); this.parser.parse(); }