Skip to content
Snippets Groups Projects
Commit 9e44d2d0 authored by Daniel Rafeh's avatar Daniel Rafeh
Browse files

23/26 Testcases failed

parent ae224154
No related branches found
No related tags found
No related merge requests found
File added
...@@ -28,7 +28,8 @@ ...@@ -28,7 +28,8 @@
import unittest import unittest
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
#from other.AliciMuhamed.Test_Converter_Römische_Zahlen import ConverterMomo as MomoCalc #from other.AliciMuhamed.Test_Converter_Römische_Zahlen import ConverterMomo as MomoCalc
from other.BerishaAlma.test2converter import RomanNumber as AlmaCalc #from other.BerishaAlma.test2converter import RomanNumber as AlmaCalc
from other.GotsisWasilios.TDD_Converter import WasiliRomanNumber as WasiliCalc
class IConverter(ABC): class IConverter(ABC):
@abstractmethod @abstractmethod
...@@ -71,7 +72,9 @@ class DanisConverter(IConverter): ...@@ -71,7 +72,9 @@ class DanisConverter(IConverter):
class TestConverter(unittest.TestCase): class TestConverter(unittest.TestCase):
def setUp(self): def setUp(self):
self.c = AlmaCalc() self.c = WasiliCalc()
self.c.convert = self.c.convert_int_to_str
def test_convertOne(self): def test_convertOne(self):
res = self.c.convert(1) res = self.c.convert(1)
......
No preview for this file type
...@@ -8,7 +8,7 @@ class IRomanNumber(ABC): ...@@ -8,7 +8,7 @@ class IRomanNumber(ABC):
pass pass
# Implementierung Converter Klasse # Implementierung Converter Klasse
class RomanNumber(IRomanNumber): class WasiliRomanNumber(IRomanNumber):
def convert_int_to_str(self, n: int) -> str: def convert_int_to_str(self, n: int) -> str:
#Eingabe anders als int #Eingabe anders als int
...@@ -26,7 +26,7 @@ class RomanNumber(IRomanNumber): ...@@ -26,7 +26,7 @@ class RomanNumber(IRomanNumber):
# Testklasse (TestConverter) # Testklasse (TestConverter)
class TestRomanNumber (unittest.TestCase): class TestRomanNumber (unittest.TestCase):
def setUp(self): def setUp(self):
self.r = RomanNumber() self.r = WasiliRomanNumber()
def test_convert_1(self): def test_convert_1(self):
self.assertEqual(self.r.convert_int_to_str(1), "I") self.assertEqual(self.r.convert_int_to_str(1), "I")
......
File added
| Name | Interface break | Failed Testcases | | Name | Interface break | Failed Testcases |
|--------------|-----------------|---------------------------------------------------------| |----------------|-----------------|--------------------------------------------------------------------------------------|
| AliciMuhamed | yes (4) | test_convertFloat test_convertNegative test_convertZero | | AliciMuhamed | yes (4) | test_convertFloat test_convertNegative test_convertZero |
| BerishaAlma | no | all except one (test_convertThree) | | BerishaAlma | no | all except one (test_convertThree) |
| | | | | GotsisWasilios | no | 23/26 failed (test_convertTwenty, test_convertSixty, test_convertSeventy successful) |
| | | | | | | |
| | | | | | | |
| | | | | | | |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment