From e094e6db1857932f9545bd98222d78df35701469 Mon Sep 17 00:00:00 2001
From: Marvin Serchimo <marvin.serchimo@student.reutlingen-university.de>
Date: Fri, 4 Apr 2025 15:05:35 +0200
Subject: [PATCH] test laufen

---
 .DS_Store                                     | Bin 0 -> 6148 bytes
 .../test_converter.cpython-313.pyc            | Bin 0 -> 4546 bytes
 .../Test_Converter_R\303\266mische_Zahlen.py" |  38 ++++++++++++++++++
 .../test2converter.cpython-313.pyc            | Bin
 .../other}/BerishaAlma/test2converter.py      |   0
 .../other}/GotsisWasilios/TDD_Converter.py    |   0
 .../__pycache__/TDD_Converter.cpython-313.pyc | Bin
 .../__pycache__/converter.cpython-313.pyc     | Bin
 .../other}/RafehDaniel/converter.py           |   0
 ProjektTest/report.md                         |   8 ++++
 .../test_converter.py                         |   3 +-
 report.md                                     |   7 ----
 12 files changed, 47 insertions(+), 9 deletions(-)
 create mode 100644 .DS_Store
 create mode 100644 ProjektTest/__pycache__/test_converter.cpython-313.pyc
 create mode 100644 "ProjektTest/other/AliciMuhamed/Test_Converter_R\303\266mische_Zahlen.py"
 rename {other => ProjektTest/other}/BerishaAlma/__pycache__/test2converter.cpython-313.pyc (100%)
 rename {other => ProjektTest/other}/BerishaAlma/test2converter.py (100%)
 rename {other => ProjektTest/other}/GotsisWasilios/TDD_Converter.py (100%)
 rename {other => ProjektTest/other}/GotsisWasilios/__pycache__/TDD_Converter.cpython-313.pyc (100%)
 rename {other => ProjektTest/other}/RafehDaniel/__pycache__/converter.cpython-313.pyc (100%)
 rename {other => ProjektTest/other}/RafehDaniel/converter.py (100%)
 create mode 100644 ProjektTest/report.md
 rename test_converter => ProjektTest/test_converter.py (97%)
 delete mode 100644 report.md

diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..3ffb7888c9e237975a10d4aa78899c30286bee0a
GIT binary patch
literal 6148
zcmeHKO>fgc5S>i}i4`H`021nHC9Y9PB9K~fF==|>fQ0Ib9sq?HTVU#XtJrA{Q6&F>
z@>{s`L-;%JW_Js;Ay-<V8EN*-?#}btZ>{|xA~l*P1EMYwwc(770L5R7``Op5;ai$O
zWuKAK2~~7NDV1y4(r_CU;JNG2E1Hp^&zQI0^H;sd&4)NQF*5k~cn;tBVGYqnR=g<B
zJnLJ0mS<(v?|)Z~t>&G(tya+LwBALZ%p$6$)w~={XK%Q6WK14k#?$z9mM$jU`}?M-
zrdg5BEFnu$q`W=Oio`5NW?m$v<wmX}2-?A<yS-cv`n$uP9t@xEu6la8H|+QHlfB_;
z6|^5bdi?Bga+04G=E8mfDg3q8?s>d~F9<fMavsf!+!P;?!R&wz=>Xb{=_PQ7PAR#j
z+gD`$sT-<dqJStM3f!;)e)Vg2ZumW9cu_zUxP1!n`k>*Ap~u>xT{=+MD*%v>k=79N
zVUao7W9YGVh#r`7RG_0Of5lLaj&|+yLXWjWM<?YkAIguc{0&9f(eZq3(@BL6r4$83
zfvXB^xoVg9|AWo<|Enaai2|a)f2DwGj-&AipXB$}wU6VyR>R-J**LFu_=|$TZpFyu
et@t6_8rn4nz|dpu5G^n{2v`}U5C#6J0zUz7YH7y+

literal 0
HcmV?d00001

diff --git a/ProjektTest/__pycache__/test_converter.cpython-313.pyc b/ProjektTest/__pycache__/test_converter.cpython-313.pyc
new file mode 100644
index 0000000000000000000000000000000000000000..dfc78aba09215873aa86917e4b67849ccfebfa75
GIT binary patch
literal 4546
zcmc&%UrZdw8K2odcYDVjU=A<`HeP5bJ(u{vhSag$G%+SMB#?yVTm;0|<yg*J-|f-a
zJtSL-VpXY26;(Q`LZ(WTR&5{Zr~0AlQ(u~@?;wP@PA#=k`%s=rd|0a72lxASxw9dh
z-8V+s-+nXm%{TMSH{Unkl)~X4fiku6@APkL3Hb+B%0=EKO1}hRnP^0#ZxM!n;Vn8M
zFkwVwqDopwC(*=KqDeEtfar~3lG`dnt8YfCw90O)A6k_eG9D^V^z>ih^v@_-;M^o3
zdIKTA3%I{@l7ZbOm85B!#)4Z|ABzcGeB<IEuhnO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X6YlKuTpoVt`vL$XLZv`CSyUa<Sl%O*pNo+vnhu8g!kBWU$B^xaRs++
zP=`z3T?nRpTtWf+@;k0v@SfAJF$;Jw8L>40$SEl;H4|F@H}aJoMWo?EWQV|SC)7!s
z3sXA;emf(ylU}7OEt}DkYtfU~c9m|AP$GqvZmx^bq7?ek=nqDJ_|CRSq*hm%{{e`5
Bf$jhR

literal 0
HcmV?d00001

diff --git "a/ProjektTest/other/AliciMuhamed/Test_Converter_R\303\266mische_Zahlen.py" "b/ProjektTest/other/AliciMuhamed/Test_Converter_R\303\266mische_Zahlen.py"
new file mode 100644
index 0000000..c2ca418
--- /dev/null
+++ "b/ProjektTest/other/AliciMuhamed/Test_Converter_R\303\266mische_Zahlen.py"
@@ -0,0 +1,38 @@
+#Test_Converter_Römische_Zahlen
+
+import unittest
+import sys
+sys.path.append("/Users/marvin/Documents/GitHub/romannumbers")
+from ProjektTest.test_converter import RomanConverter as MyConverter 
+def convert(n: int) -> str:
+    roman_numerals = {
+        1000: "M", 900: "CM", 500: "D", 400: "CD",
+        100: "C", 90: "XC", 50: "L", 40: "XL",
+        10: "X", 9: "IX", 5: "V", 4: "IV", 1: "I"
+    }
+    result = ""
+    for value in sorted(roman_numerals.keys(), reverse=True): #Schleife, die über die Schlüssel (die Dezimalzahlen) des roman_numerals-Dictionaries iteriert und in absteigender reienfolge zurück gibt durch value nimmt  in jeder Iteration den Wert des nächsten sortierten Schlüssels an
+        while n >= value: #Dies startet eine while-Schleife, die so lange ausgeführt wird, wie der Wert von n größer oder gleich dem aktuellen value (der Dezimalzahl) ist
+            result += roman_numerals[value] #fügt die entsprechende römische Ziffer (den Wert aus dem roman_numerals-Dictionary) zur result-Zeichenkette hinzu.
+            n -= value # aktuelle value - n
+    return result
+
+class TestRomanConverter(unittest.TestCase):
+    def test_1(self):
+        self.assertEqual(MyConverter().convert(1), "I")  # Erwartet "I" für 1
+
+    def test_10(self):
+        self.assertEqual(convert(10), "X")  # Erwartet "X" für 10
+    def test_21(self):
+        self.assertEqual(convert(21), "XXI")  # Erwartet "XXI" für 21
+    def test_50(self):
+        self.assertEqual(convert(50), "L")  # Erwartet "L" für 50
+    def test_100(self):
+        self.assertEqual(convert(100), "C")  # Erwartet "C" für 100
+    def test_1000(self):
+        self.assertEqual(convert(1000), "M")  # Erwartet "M" für 1000
+    def test_1999(self):
+        self.assertEqual(convert(1999), "MCMXCIX") #Erwartet "MCMXCIX" für 1999
+ 
+if __name__ == "__main__":
+    unittest.main()
\ No newline at end of file
diff --git a/other/BerishaAlma/__pycache__/test2converter.cpython-313.pyc b/ProjektTest/other/BerishaAlma/__pycache__/test2converter.cpython-313.pyc
similarity index 100%
rename from other/BerishaAlma/__pycache__/test2converter.cpython-313.pyc
rename to ProjektTest/other/BerishaAlma/__pycache__/test2converter.cpython-313.pyc
diff --git a/other/BerishaAlma/test2converter.py b/ProjektTest/other/BerishaAlma/test2converter.py
similarity index 100%
rename from other/BerishaAlma/test2converter.py
rename to ProjektTest/other/BerishaAlma/test2converter.py
diff --git a/other/GotsisWasilios/TDD_Converter.py b/ProjektTest/other/GotsisWasilios/TDD_Converter.py
similarity index 100%
rename from other/GotsisWasilios/TDD_Converter.py
rename to ProjektTest/other/GotsisWasilios/TDD_Converter.py
diff --git a/other/GotsisWasilios/__pycache__/TDD_Converter.cpython-313.pyc b/ProjektTest/other/GotsisWasilios/__pycache__/TDD_Converter.cpython-313.pyc
similarity index 100%
rename from other/GotsisWasilios/__pycache__/TDD_Converter.cpython-313.pyc
rename to ProjektTest/other/GotsisWasilios/__pycache__/TDD_Converter.cpython-313.pyc
diff --git a/other/RafehDaniel/__pycache__/converter.cpython-313.pyc b/ProjektTest/other/RafehDaniel/__pycache__/converter.cpython-313.pyc
similarity index 100%
rename from other/RafehDaniel/__pycache__/converter.cpython-313.pyc
rename to ProjektTest/other/RafehDaniel/__pycache__/converter.cpython-313.pyc
diff --git a/other/RafehDaniel/converter.py b/ProjektTest/other/RafehDaniel/converter.py
similarity index 100%
rename from other/RafehDaniel/converter.py
rename to ProjektTest/other/RafehDaniel/converter.py
diff --git a/ProjektTest/report.md b/ProjektTest/report.md
new file mode 100644
index 0000000..f34dc7c
--- /dev/null
+++ b/ProjektTest/report.md
@@ -0,0 +1,8 @@
+## Eigene Tests gegen andere Implementierungen
+
+| Name           | Interface break | Failed Testcases                                                                       |
+|----------------|------------------|-----------------------------------------------------------------------------------------|
+| BerishaAlma    | no               | test_1, test_4, test_21, test_1000, test_0, test_float, test_negative, test_multiple_values |
+| GotsisWasilios | yes              | all                                                                                     |
+| RafehDaniel    | no               | none                                                                                    |
+| AliciMuhamed   | no               | none                                                                                    |
diff --git a/test_converter b/ProjektTest/test_converter.py
similarity index 97%
rename from test_converter
rename to ProjektTest/test_converter.py
index 065e064..5796bf4 100644
--- a/test_converter
+++ b/ProjektTest/test_converter.py
@@ -10,7 +10,6 @@
 
 import unittest
 from abc import ABC, abstractmethod
-from other.RafehDaniel.converter import Converter as Dani
 
 
 # Interface (abstrakte Basisklasse)
@@ -59,7 +58,7 @@ class RomanConverter(IConverter):
 # Testklasse mit 8 funktionierenden Tests
 class TestRomanConverter(unittest.TestCase):
     def setUp(self):
-        self.converter = Dani()
+        self.converter = RomanConverter()
 
     # Bei Eingabe der Zahl 1 soll "I" ausgegeben werden
     def test_1(self):
diff --git a/report.md b/report.md
deleted file mode 100644
index c852b17..0000000
--- a/report.md
+++ /dev/null
@@ -1,7 +0,0 @@
-## Eigene Tests gegen andere Implementierungen
-
-| Name            | Interface break | Failed Testcases                                                                 |
-|-----------------|------------------|----------------------------------------------------------------------------------|
-| BerishaAlma     | no               | test_1, test_4, test_21, test_1000, test_0, test_float, test_negative, test_multiple_values |
-| GotsisWasilios  | yes              | all                                                                              |
-| RafehDaniel     | no               | none         
\ No newline at end of file
-- 
GitLab