From a264b81e5773b8a3ccd7ba344f3f9b748968b591 Mon Sep 17 00:00:00 2001 From: Matt Fenwick Date: Fri, 25 Jan 2013 14:53:23 +0100 Subject: [PATCH] test case for lexing a lone string --- tests/lexer/test_basic_lexing.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/lexer/test_basic_lexing.py b/tests/lexer/test_basic_lexing.py index e1dfcb9..86e8fcd 100644 --- a/tests/lexer/test_basic_lexing.py +++ b/tests/lexer/test_basic_lexing.py @@ -73,3 +73,8 @@ def test_full_recurse(): ], ['fn1', 'foo', 'bar'] ] == tokenize("(fn el (+ 1 2 (== 1 20) (- 1 1)))(fn1 foo bar)") + + +def test_string(): + """ Lex a lone string """ + assert ['"a string"'] == tokenize('"a string"')