소스 검색

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)


불러오는 중...
취소
저장