RegexpNode n = new RegexpNode(new IDESourcePosition("", 0, 0, 2, 4), ByteList.create(".*"), 0);
assertEquals("/.*/", visitNode(n));
}
public void testGetLocalVarIndex() {
assertEquals(ReWriteVisitor.getLocalVarIndex(new LocalVarNode(emptyPosition, 5, "")), 5);
assertEquals(ReWriteVisitor.getLocalVarIndex(new LocalVarNode(emptyPosition, 1, "")), 1);
assertEquals(ReWriteVisitor.getLocalVarIndex(null), -1);
}