Пример #1
0
 def test_rfind_backslash_quoted(self):
     s = 'abc > def \\>'
     self.assertEqual(scanner.rfind_unquoted(s, len(s), '>'), 4)
Пример #2
0
 def test_rfind_one_of(self):
     s = 'abc > def | ghi >'
     self.assertEqual(scanner.rfind_unquoted(s, len(s), '|>'), 16)
Пример #3
0
 def test_rfind_quoted(self):
     s = 'abc > def ">"'
     self.assertEqual(scanner.rfind_unquoted(s, len(s), '>'), 4)