

def testLastLineSymbolCanHaveMultiplePostfixSearchBasedOffsets(self):
    parser = cmd_line.VimParser('$?foo?+10/bar/100/baz/')
    rv = parser.parse_range()
    expected = cmd_line.default_range_info.copy()
    expected['left_ref'] = '$'
    expected['left_search_offsets'] = [['?', 'foo', 10], ['/', 'bar', 100], ['/', 'baz', 0]]
    expected['text_range'] = '$?foo?+10/bar/100/baz/'
    self.assertEqual(rv, expected)

dataset/ETHPy150Open SublimeText/VintageEx/vex/parsers/test_cmdline.py VimParser.testLastLineSymbolCanHaveMultiplePostfixSearchBasedOffsets/original