assertEquals(imports[0], children[0].getNodeAtOffset(5));
}
public void testGlobalVar() throws Exception
{
String source = "$foo = 5";
<BUG>fParseState.setEditState(source, source, 0, 0);
IParseNode result = fParser.parse(fParseState);</BUG>
IParseNode[] children = result.getChildren();
assertEquals(1, children.length); // one global variable
assertEquals(IRubyElement.GLOBAL, children[0].getNodeType());

assertEquals(imports[0], children[0].getNodeAtOffset(5));
}
public void testGlobalVar() throws Exception
{
String source = "$foo = 5";
fParseState.setEditState(source, 0);
IParseNode result = fParser.parse(fParseState);
IParseNode[] children = result.getChildren();
assertEquals(1, children.length); // one global variable
assertEquals(IRubyElement.GLOBAL, children[0].getNodeType());
