diff --git a/.aider.tags.cache.v4/cache.db b/.aider.tags.cache.v4/cache.db index a03bfd15093849da0292f04400ccf1d13a8e4294..c61b4eb29cb0795a51d21b47b58178b70a575294 100644 Binary files a/.aider.tags.cache.v4/cache.db and b/.aider.tags.cache.v4/cache.db differ diff --git a/.aider.tags.cache.v4/cache.db-shm b/.aider.tags.cache.v4/cache.db-shm index 201af83e6456763676632ad6d985bb6dd999297a..fe9ac2845eca6fe6da8a63cd096d9cf9e24ece10 100644 Binary files a/.aider.tags.cache.v4/cache.db-shm and b/.aider.tags.cache.v4/cache.db-shm differ diff --git a/.aider.tags.cache.v4/cache.db-wal b/.aider.tags.cache.v4/cache.db-wal index a1ca1802c4180602698e2c366fd4e81ff12fee70..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 Binary files a/.aider.tags.cache.v4/cache.db-wal and b/.aider.tags.cache.v4/cache.db-wal differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..b0ac3ed9c09f528e05b0668aacb8b046dd3bdcb5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.aider* diff --git a/Aider implementation/map.py b/Aider_implementation/map.py similarity index 100% rename from Aider implementation/map.py rename to Aider_implementation/map.py diff --git a/Aider implementation/mars.py b/Aider_implementation/mars.py similarity index 100% rename from Aider implementation/mars.py rename to Aider_implementation/mars.py diff --git a/Aider implementation/mission_control.py b/Aider_implementation/mission_control.py similarity index 100% rename from Aider implementation/mission_control.py rename to Aider_implementation/mission_control.py diff --git a/Aider implementation/plateau.py b/Aider_implementation/plateau.py similarity index 100% rename from Aider implementation/plateau.py rename to Aider_implementation/plateau.py diff --git a/Aider implementation/rover.py b/Aider_implementation/rover.py similarity index 100% rename from Aider implementation/rover.py rename to Aider_implementation/rover.py diff --git a/Aider implementation/telescope.py b/Aider_implementation/telescope.py similarity index 100% rename from Aider implementation/telescope.py rename to Aider_implementation/telescope.py diff --git a/Aider implementation/test_rover.py b/Aider_implementation/test_rover.py similarity index 100% rename from Aider implementation/test_rover.py rename to Aider_implementation/test_rover.py diff --git a/Unittest.py b/Unittest.py index 617bc9bfcd16be6c30d099f1851a0dec25544d1d..bb4fd6d674d4b6df7d348bccb8a2474d6c45b9c6 100644 --- a/Unittest.py +++ b/Unittest.py @@ -1,15 +1,15 @@ import sys import os #from Pyscript import MissionControl, Plateau, Rover, Mars -from plateau import Plateau -from mars import Mars -from rover import Rover -from mission_control import MissionControl -from telescope import Telescope -from map import Map +from Aider_implementation.plateau import Plateau +from Aider_implementation.mars import Mars +from Aider_implementation.rover import Rover +from Aider_implementation.mission_control import MissionControl +from Aider_implementation.telescope import Telescope +from Aider_implementation.map import Map import unittest -import telescope +import Aider_implementation.telescope # ---US01: Als Mars Mission Control möchte ich den Mars Rover steuern, um die grundlegende Interaktion und Kontrolle über den Rover zu ermöglichen. # TC01.01: Gültiger Vorwärtsbefehl: Überprüft, ob der Rover sich korrekt um ein Feld vorwärts bewegt, wenn der Befehl "F" empfangen wird. diff --git a/rest.txt b/rest.txt new file mode 100644 index 0000000000000000000000000000000000000000..8dfe76b41bbae2b9d2fcfdea82d9119ff14f5a43 --- /dev/null +++ b/rest.txt @@ -0,0 +1,81 @@ +openapi: 3.0.3 +info: + title: Drive Endpoint API + version: 1.0.0 + description: > + A simple API endpoint that receives a command string and may return: + - the full command string + - a substring of the command string + - an empty response + +paths: + /drive: + post: + summary: Process a string input + description: Accepts a string and returns either the same string, a substring of it, or nothing. + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - input + properties: + input: + type: string + examples: + example1: + summary: Forward backward commands + value: + input: "FFFFBBB" + example2: + summary: Simple command string + value: + input: "FB" + example3: + summary: Alternating directions + value: + input: "RRRRLLLL" + example4: + summary: Mixed commands with invalid at the end + value: + input: "FBRLX" + example5: + summary: Unknown command at start + value: + input: "XFB" + responses: + '200': + description: Response may include the original string, a substring, or an empty string + content: + application/json: + schema: + type: object + properties: + output: + type: string + examples: + fullString: + summary: Full string returned + value: + output: "FFFFBBB" + subString: + summary: Substring returned + value: + output: "FBRL" + empty: + summary: Empty string returned + value: + output: "" + '400': + description: Bad request due to missing or invalid input + content: + application/json: + schema: + type: object + properties: + error: + type: string + example: + error: "Missing or invalid input"