

def testComplexFullRange(self):
    parser = cmd_line.VimParser(".++9/foo\\bar/100?baz?--;'b-100?buzz\\\\\\??+10")
    rv = parser.parse_full_range()
    expected = cmd_line.default_range_info.copy()
    expected['left_ref'] = '.'
    expected['left_offset'] = 10
    expected['left_search_offsets'] = [['/', 'foobar', 100], ['?', 'baz', (- 2)]]
    expected['separator'] = ';'
    expected['right_ref'] = "'b"
    expected['right_offset'] = (- 100)
    expected['right_search_offsets'] = [['?', 'buzz\\?', 10]]
    expected['text_range'] = ".++9/foo\\bar/100?baz?--;'b-100?buzz\\\\\\??+10"
    self.assertEqual(rv, expected)

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