def test_rfind_backslash_quoted(self): s = 'abc > def \\>' self.assertEqual(scanner.rfind_unquoted(s, len(s), '>'), 4)
def test_rfind_one_of(self): s = 'abc > def | ghi >' self.assertEqual(scanner.rfind_unquoted(s, len(s), '|>'), 16)
def test_rfind_quoted(self): s = 'abc > def ">"' self.assertEqual(scanner.rfind_unquoted(s, len(s), '>'), 4)