assertEquals(20, result.getEndingOffset());
}
public void testFor() throws Exception
{
String source = "for foo in (1..3)\n\tputs foo\nend";
<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(20, result.getEndingOffset());
}
public void testFor() throws Exception
{
String source = "for foo in (1..3)\n\tputs foo\nend";
fParseState.setEditState(source, 0);
IParseNode result = fParser.parse(fParseState);
IParseNode[] children = result.getChildren();
assertEquals(1, children.length);
assertEquals(IRubyElement.LOCAL_VAR, children[0].getNodeType());
