diff --git a/info4/kapitel-8/Interpreter/test_loop_interpreter.py b/info4/kapitel-8/Interpreter/test_loop_interpreter.py index 125ffd977884d1ac2c974a12f03991f18386b01f..fbcadba6218801c7007a087f0713a84e3f8a0c20 100644 --- a/info4/kapitel-8/Interpreter/test_loop_interpreter.py +++ b/info4/kapitel-8/Interpreter/test_loop_interpreter.py @@ -234,15 +234,15 @@ class LOOPInterpreterTest(unittest.TestCase): self.assertEqual(interpret('x1:=x1-2;\n x0:=x1+2'), 2) @mock.patch('loopinterpreter.input', side_effect=input_exit) - def test_break_exit(self, input): + def test_break_exit(self, custom_input): self.assertEqual(interpret('x1:=2; BREAK x0:=2'), -1) self.assertEqual(interpret('LOOP x1 DO BREAK x2:= 2 END'), -1) @mock.patch('loopinterpreter.input', side_effect=input_continue) - def test_break_continue(self, input): + def test_break_continue(self, custom_input): self.assertEqual(interpret('x1:=2; LOOP x1 DO x0:=x0+2 BREAK END'), 4) @mock.patch('lexer.Lexer.__init__', init_without_tokens) def test_unknown_tokens(self): with self.assertRaises(SyntaxError): - interpret('BLIBLABLUB') \ No newline at end of file + interpret('BLIBLABLUB') diff --git a/info4/kapitel-8/Interpreter/test_while_interpreter.py b/info4/kapitel-8/Interpreter/test_while_interpreter.py index f326993b202191e4a6fd9c5915f6bb8bf440258f..c446fafc15e3fb7da0e951696619da1fc6b5280a 100644 --- a/info4/kapitel-8/Interpreter/test_while_interpreter.py +++ b/info4/kapitel-8/Interpreter/test_while_interpreter.py @@ -116,5 +116,5 @@ class WHILEInterpreterTest(LOOPInterpreterTest): interpret('WHILE x1 != 0 DO x0:=2;;x2:=1 END') @mock.patch('whileinterpreter.input', side_effect=str_yes) - def test_infinite_loop(self, input): + def test_infinite_loop(self, custom_input): self.assertEqual(interpret('x1:=100000; WHILE x1 != 0 DO x0:=1; x1:=x1-1 END', 1), -1)