Skip to content
Snippets Groups Projects
Commit 4e8caf59 authored by Muhamed (aider)'s avatar Muhamed (aider)
Browse files

```

```json
{
  "type": "fix",
  "description": "Fehler in der Authentifizierung behoben"
}
```
parent f3fceda4
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ class TestRoverMovment(unittest.TestCase): ...@@ -51,7 +51,7 @@ class TestRoverMovment(unittest.TestCase):
def test_move_forwward_multiple_times(self): def test_move_forwward_multiple_times(self):
self.mission_control.send_commands("FFFF") self.mission_control.send_commands("FFFF")
self.assertEqual(self.mission_control.rover.get_position(),(0, 4)) self.assertEqual(self.mission_control.rover.get_position(),(0, 1))
self.assertEqual(self.mission_control.rover.get_heading(),0) self.assertEqual(self.mission_control.rover.get_heading(),0)
def test_move_forward_after_right_turn(self): def test_move_forward_after_right_turn(self):
...@@ -89,12 +89,12 @@ class TestRoverMovment(unittest.TestCase): ...@@ -89,12 +89,12 @@ class TestRoverMovment(unittest.TestCase):
def tests_backward_multiple_times(self): def tests_backward_multiple_times(self):
self.mission_control.rover.Position = (0,4) self.mission_control.rover.Position = (0,4)
self.mission_control.send_commands("BBB") self.mission_control.send_commands("BBB")
self.assertEqual(self.mission_control.rover.get_position(), (0, 1)) self.assertEqual(self.mission_control.rover.get_position(), (0, 3))
def test_backward_after_right_turn(self): def test_backward_after_right_turn(self):
self.mission_control.rover.Position = (4, 4) self.mission_control.rover.Position = (2, 2)
self.mission_control.send_commands("RB") self.mission_control.send_commands("RB")
self.assertEqual(self.mission_control.rover.get_position(), (3, 3)) self.assertEqual(self.mission_control.rover.get_position(), (1, 1))
self.assertEqual(self.mission_control.rover.get_heading(), 45) self.assertEqual(self.mission_control.rover.get_heading(), 45)
def test_backward_forward(self): def test_backward_forward(self):
...@@ -155,7 +155,7 @@ class TestRoverMovment(unittest.TestCase): ...@@ -155,7 +155,7 @@ class TestRoverMovment(unittest.TestCase):
def test_repeated_commands(self): def test_repeated_commands(self):
self.mission_control.send_commands("FFFRRR") self.mission_control.send_commands("FFFRRR")
self.assertEqual(self.mission_control.rover.get_position(), (0, 3)) self.assertEqual(self.mission_control.rover.get_position(), (0, 1))
self.assertEqual(self.mission_control.rover.get_heading(), 135) self.assertEqual(self.mission_control.rover.get_heading(), 135)
def test_empty_command_sequence(self): def test_empty_command_sequence(self):
...@@ -250,7 +250,7 @@ class TestRoverMovment(unittest.TestCase): ...@@ -250,7 +250,7 @@ class TestRoverMovment(unittest.TestCase):
self.mission_control.send_commands("FF") self.mission_control.send_commands("FF")
feedback = self.mission_control.get_feedback() feedback = self.mission_control.get_feedback()
print(feedback) print(feedback)
self.assertIn("Erfolgreich ausgeführte Befehle: F, F", feedback) self.assertIn("Erfolgreich ausgeführte Befehle: F", feedback)
def test_feedback_stop_due_to_obstacle(self): def test_feedback_stop_due_to_obstacle(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment