Add tests for #831
This commit is contained in:
parent
73ace37678
commit
a2f95366fe
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user