

def testCanMatchSearchBasedOffsets(self):
    parser = cmd_line.VimParser('/foo/')
    rv = parser.parse_range()
    expected = cmd_line.default_range_info.copy()
    expected['left_search_offsets'] = [['/', 'foo', 0]]
    parser['text_range'] = '/foo/'
    self.assertEqual(rv, expected)

dataset/ETHPy150Open SublimeText/VintageEx/vex/parsers/test_cmdline.py VimParser.testCanMatchSearchBasedOffsets/VarMisuse@52/75 `expected`->`parser`