示例#1
0
 def test_find_backslash_quoted(self):
     s = 'abc \\> def >'
     self.assertEqual(scanner.find_unquoted(s, len(s), '>'), 11)
示例#2
0
 def test_find_one_of(self):
     s = 'abc \\> def | ghi >'
     self.assertEqual(scanner.find_unquoted(s, len(s), '|>'), 11)
示例#3
0
 def test_find_quoted(self):
     s = 'abc ">" def >'
     self.assertEqual(scanner.find_unquoted(s, len(s), '>'), 12)