Add tests for #831

This commit is contained in:
Ryan Gonzalez 2015-08-22 15:26:23 -05:00
parent 73ace37678
commit a2f95366fe

View File

@ -100,6 +100,12 @@ def test_lex_strings():
""" Make sure that strings are valid expressions"""
objs = tokenize("\"foo\" ")
assert objs == [HyString("foo")]
# Make sure backslash-escaped newlines work (see issue #831)
objs = tokenize(r"""
"a\
bc"
""")
assert objs == [HyString("abc")]
def test_lex_integers():