Explorar el Código

Fix tests for PR

remotes/origin/gm/2021-09-23T00Z/github.com--lark-parser-lark/master
Erez Sh hace 3 años
padre
commit
19b2aa934f
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. +2
    -2
      tests/test_parser.py
  2. +2
    -2
      tests/test_reconstructor.py

+ 2
- 2
tests/test_parser.py Ver fichero

@@ -208,11 +208,11 @@ class TestParsers(unittest.TestCase):

@v_args(meta=True)
class T1(Transformer):
def a(self, children, meta):
def a(self, meta, children):
assert not children
return meta.line

def start(self, children, meta):
def start(self, meta, children):
return children

@v_args(meta=True, inline=True)


+ 2
- 2
tests/test_reconstructor.py Ver fichero

@@ -183,8 +183,8 @@ class TestReconstructor(TestCase):
keyword x += y
"""

l1 = Lark(g1, parser='lalr')
l2 = Lark(g2, parser='lalr')
l1 = Lark(g1, parser='lalr', maybe_placeholders=False)
l2 = Lark(g2, parser='lalr', maybe_placeholders=False)
r = Reconstructor(l2)

tree = l1.parse(code)


Cargando…
Cancelar
Guardar