Files
jedi/test/test_new_parser.py
2014-11-06 14:16:17 +01:00

13 lines
335 B
Python

from jedi.parser import Parser
def test_basic_parsing():
def compare(string):
"""Generates the AST object and then regenerates the code."""
assert Parser(string).module.get_code() == string
compare('\na #pass\n')
compare('wblabla* 1\t\n')
compare('def x(a, b:3): pass\n')
compare('assert foo\n')