mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-05 07:27:42 +08:00
Fix a few more issues, mostly with the fast parser.
This commit is contained in:
@@ -469,3 +469,13 @@ def test_decorator_string_issue():
|
||||
s = jedi.Script(source)
|
||||
assert s.completions()
|
||||
assert s._parser.module().get_code() == source
|
||||
|
||||
|
||||
def test_round_trip():
|
||||
source = dedent('''
|
||||
def x():
|
||||
"""hahaha"""
|
||||
func''')
|
||||
|
||||
f = FastParser(load_grammar(), source)
|
||||
assert f.get_parsed_node().get_code() == source
|
||||
|
||||
@@ -146,7 +146,7 @@ class TestRegression(TestCase):
|
||||
x = 0
|
||||
a = \
|
||||
[1, 2, 3, 4, 5, 6, 7, 8, 9, (x)] # <-- here
|
||||
""", '(x)] # <-- here', [])
|
||||
""", '(x)] # <-- here', ['int'])
|
||||
|
||||
def test_generator(self):
|
||||
# Did have some problems with the usage of generator completions this
|
||||
|
||||
Reference in New Issue
Block a user