ExpressionBuilderTest: Add test for index associativity.
1 files changed, 5 insertions(+), 0 deletions(-)

M src/test/java/nl/grauw/glass/expressions/ExpressionBuilderTest.java
M src/test/java/nl/grauw/glass/expressions/ExpressionBuilderTest.java +5 -0
@@ 78,6 78,11 @@ public class ExpressionBuilderTest exten
 	}
 
 	@Test
+	public void testIndexAssociativity() {
+		assertEquals("{{({\"abc\", \"def\"})[0H]}[1H]}", parse("(\"abc\", \"def\")[0][1]"));
+	}
+
+	@Test
 	public void testTernaryIfElse() {
 		assertEquals("{a ? 1H : 2H}", parse("a ? 1H : 2H"));
 	}