Skip to content

Commit

Permalink
Made test for bad syntax with read input.
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahGale committed Mar 5, 2024
1 parent 8f48876 commit 1e2f3ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_syntax_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,6 +1101,10 @@ def testReadCardConfusions(self):
input = ReadInput([f"Read FILE={file}"], BlockType.CELL)
self.assertEqual(input.file_name, file)

def testReadCardBadSyntax(self):
with self.assertRaises(ParsingError):
card = ReadInput(["Read 1"], BlockType.CELL)

def testTitleFinder(self):
test_title = "Richard Stallman writes GNU"
test_string = f"""{test_title}
Expand Down

0 comments on commit 1e2f3ef

Please sign in to comment.