Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
jmg
/
gitmirror
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Pull requests
0
Versões
39
Wiki
Atividade
Ver código fonte
Extend comments in rules tests
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.8.0
Erez Sh
4 anos atrás
pai
ce996f445b
commit
94dd3646d4
1 arquivos alterados
com
5 adições
e
2 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+5
-2
tests/test_parser.py
+ 5
- 2
tests/test_parser.py
Ver arquivo
@@ -106,9 +106,12 @@ class TestParsers(unittest.TestCase):
def test_comment_in_rule_definition(self):
g = Lark("""start: a
a: "a"
// A comment
// Another
// A comment
// Another
comment
| "b"
// Still more
c: "unrelated"
""")
r = g.parse('b')
self.assertEqual( r.children[0].data, "a" )
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar