From ec06d6af88629c309a2ece26686506f0ba72f349 Mon Sep 17 00:00:00 2001 From: Paul Tagliamonte Date: Sat, 15 Dec 2012 17:47:05 -0500 Subject: [PATCH] cleanup --- hy/lang/string.py | 2 +- tests/lang/test_expression.py | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/hy/lang/string.py b/hy/lang/string.py index 4983da1..a49e8e3 100644 --- a/hy/lang/string.py +++ b/hy/lang/string.py @@ -1,3 +1,3 @@ class HYString(str): def __init__(self, string): - self = string + self = string # NOQA diff --git a/tests/lang/test_expression.py b/tests/lang/test_expression.py index ddf8341..caf7456 100644 --- a/tests/lang/test_expression.py +++ b/tests/lang/test_expression.py @@ -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(): """Test if we can get a statement something right.""" one, two = tokenize(code)