Migrate several more passing tests to new test framework

This commit is contained in:
Michael Hansen
2019-10-04 09:04:04 -07:00
parent 7cd576280e
commit 154b80b2fe
58 changed files with 320 additions and 5 deletions

View File

@@ -119,7 +119,7 @@ SYMBOLIC_TOKENS = (
'<<=', '>>=', '**=', '//=', '...', '.',
'+=', '-=', '*=', '@=', '/=', '%=', '&=', '|=', '^=',
'<>', '<<', '<=', '<', '>>', '>=', '>', '!=', '==', '=',
',', ';', ':=', ':', '->', '~',
',', ';', ':=', ':', '->', '~', '`',
'+', '-', '**', '*', '@', '//', '/', '%', '&', '|', '^',
'(', ')', '{', '}', '[', ']',
)
@@ -244,8 +244,7 @@ def read_tokens(pysrc):
line = line[match.end():]
continue
print('Error: Unrecognized tokens: "{}" at line {}'.format(line, n_line))
sys.exit(1)
raise RuntimeError('Error: Unrecognized tokens: "{}" at line {}'.format(line, n_line))
if len(context_stack) == 0:
yield PyToken(PyToken.ENDLINE, n_line)