

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

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