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