This commit is contained in:
Paul Tagliamonte 2012-12-15 17:47:05 -05:00
parent 45cf8ac453
commit ec06d6af88
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,3 @@
class HYString(str): class HYString(str):
def __init__(self, string): def __init__(self, string):
self = string self = string # NOQA

View File

@ -7,6 +7,16 @@ code = """
""" """
def test_basics():
"""Test the basics"""
assert {
"function": "fn",
"args": [
"one"
]
} == HYExpression(["fn", "one"]).get_invocation()
def test_fn_split(): def test_fn_split():
"""Test if we can get a statement something right.""" """Test if we can get a statement something right."""
one, two = tokenize(code) one, two = tokenize(code)