testing thinger

This commit is contained in:
Paul Tagliamonte 2012-12-15 18:24:06 -05:00
parent 5975f2c8d6
commit 11fe591d38

View File

@ -6,3 +6,17 @@ def test_list_lex():
assert fn == [
"fn", ["1", "2", "3", "4"]
]
def test_list_recurse():
fn = tokenize("(fn [1 2 3 4 [5 6 7]])")[0]
assert fn == [
"fn", ["1", "2", "3", "4", ["5", "6", "7"]]
]
def test_double_rainbow():
fn = tokenize("(fn [1 2 3 4] [5 6 7])")[0]
assert fn == [
"fn", ["1", "2", "3", "4"], ["5", "6", "7"]
]