From a8c17db048019e1e5c59d9dca9626d0064bf9ed6 Mon Sep 17 00:00:00 2001 From: Paul Tagliamonte Date: Sat, 15 Dec 2012 18:24:40 -0500 Subject: [PATCH] more list tests --- tests/lexer/test_list_lexing.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/lexer/test_list_lexing.py b/tests/lexer/test_list_lexing.py index 2c27921..9cab25e 100644 --- a/tests/lexer/test_list_lexing.py +++ b/tests/lexer/test_list_lexing.py @@ -2,6 +2,7 @@ from hy.lex.tokenize import tokenize def test_list_lex(): + """test basic lexing of lists""" fn = tokenize("(fn [1 2 3 4])")[0] assert fn == [ "fn", ["1", "2", "3", "4"] @@ -9,6 +10,7 @@ def test_list_lex(): def test_list_recurse(): + """ test we can recurse lists """ fn = tokenize("(fn [1 2 3 4 [5 6 7]])")[0] assert fn == [ "fn", ["1", "2", "3", "4", ["5", "6", "7"]] @@ -16,6 +18,7 @@ def test_list_recurse(): def test_double_rainbow(): + """ DOUBLE LISTS """ fn = tokenize("(fn [1 2 3 4] [5 6 7])")[0] assert fn == [ "fn", ["1", "2", "3", "4"], ["5", "6", "7"]