Add more tests

This commit is contained in:
James Westman 2021-11-04 00:05:38 -05:00
parent 08a74acb37
commit a4b31f2cb0
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
24 changed files with 89 additions and 8 deletions

View file

@ -152,9 +152,9 @@ def validate(token_name=None, end_token_name=None, skip_incomplete=False):
e.start = self.group.start
if e.end is None:
if token := self.group.tokens.get(token_name):
if token := self.group.tokens.get(end_token_name):
e.end = token.end
elif token := self.group.tokens.get(end_token_name):
elif token := self.group.tokens.get(token_name):
e.end = token.end
else:
e.end = self.group.end