Commit 334130be authored by Christopher Happe's avatar Christopher Happe
Browse files

Test: Fehlender Test für Semikolon am Ende des Programms hinzugefügt

parent e5c6a18a
......@@ -114,6 +114,8 @@ class WHILEInterpreterTest(LOOPInterpreterTest):
interpret('x1:=2;; x0:=3')
with self.assertRaises(SyntaxError):
interpret('WHILE x1 != 0 DO x0:=2;;x2:=1 END')
with self.assertRaises(SyntaxError):
@mock.patch('whileinterpreter.input', side_effect=str_yes)
def test_infinite_loop(self, custom_input):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment