}
public void testNormalNewSlice() throws Exception {
GoFile file = get(parse("package main; func a() { a[i:j:k] }"));
GoSliceExpression sliceExpression =
getAs(GoSliceExpression.class,
castAs(GoExpressionStatement.class, 0,
get(
childAt(0,
file.getFunctions()
).getBlock()
).getStatements()
).getExpression()
);
assertEquals("a", get(sliceExpression.getBaseExpression()).getText());
assertEquals("i", get(sliceExpression.getFirstIndex()).getText());
assertEquals("j", get(sliceExpression.getSecondIndex()).getText());
assertEquals("k", get(sliceExpression.getCapacity()).getText());
}