浏览代码

Fix tests for PR

remotes/origin/gm/2021-09-23T00Z/github.com--lark-parser-lark/master
Erez Sh 3 年前
父节点
当前提交
19b2aa934f
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. +2
    -2
      tests/test_parser.py
  2. +2
    -2
      tests/test_reconstructor.py

+ 2
- 2
tests/test_parser.py 查看文件

@@ -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 查看文件

@@ -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)


正在加载...
取消
保存