also test invalid string tokens

This commit is contained in:
Keewis 2020-06-04 21:07:59 +02:00
parent 1140f7b26d
commit 26855f92d8

View File

@ -2008,14 +2008,18 @@ definition_after_normal_text : int
def test_token_type_invalid(self):
tokens = (
"{1, 2",
"1, 2}",
"}",
"'abc",
"def'",
'"ghi',
'jkl"',
)
for token in tokens:
# TODO: check for the warning
_token_type(token)
assert False
def test_tokenize_type_spec(self):
types = (
"str",