assertEquals("foo()", children[0].toString());
}
public void testArray() throws Exception
{
String source = "foo = [1, 2, \"3\"] + [a, b]";
<BUG>fParseState.setEditState(source, source, 0, 0);
IParseNode result = fParser.parse(fParseState);</BUG>
IParseNode[] children = result.getChildren();
assertEquals(1, children.length);
assertEquals(IRubyElement.LOCAL_VAR, children[0].getNodeType());

assertEquals("foo()", children[0].toString());
}
public void testArray() throws Exception
{
String source = "foo = [1, 2, \"3\"] + [a, b]";
fParseState.setEditState(source, 0);
IParseNode result = fParser.parse(fParseState);
IParseNode[] children = result.getChildren();
assertEquals(1, children.length);
assertEquals(IRubyElement.LOCAL_VAR, children[0].getNodeType());
