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 @@
import unittest
from abc import ABC, abstractmethod
#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):
@abstractmethod
......@@ -71,7 +72,9 @@ class DanisConverter(IConverter):
class TestConverter(unittest.TestCase):
def setUp(self):
self.c = AlmaCalc()
self.c = WasiliCalc()
self.c.convert = self.c.convert_int_to_str
def test_convertOne(self):
res = self.c.convert(1)
......
No preview for this file type
......@@ -8,7 +8,7 @@ class IRomanNumber(ABC):
pass
# Implementierung Converter Klasse
class RomanNumber(IRomanNumber):
class WasiliRomanNumber(IRomanNumber):
def convert_int_to_str(self, n: int) -> str:
#Eingabe anders als int
......@@ -26,7 +26,7 @@ class RomanNumber(IRomanNumber):
# Testklasse (TestConverter)
class TestRomanNumber (unittest.TestCase):
def setUp(self):
self.r = RomanNumber()
self.r = WasiliRomanNumber()
def test_convert_1(self):
self.assertEqual(self.r.convert_int_to_str(1), "I")
......
File added
| Name | Interface break | Failed Testcases |
|--------------|-----------------|---------------------------------------------------------|
| AliciMuhamed | yes (4) | test_convertFloat test_convertNegative test_convertZero |
| BerishaAlma | no | all except one (test_convertThree) |
| | | |
| | | |
| | | |
| | | |
| | | |
\ No newline at end of file
| Name | Interface break | Failed Testcases |
|----------------|-----------------|--------------------------------------------------------------------------------------|
| AliciMuhamed | yes (4) | test_convertFloat test_convertNegative test_convertZero |
| BerishaAlma | no | all except one (test_convertThree) |
| GotsisWasilios | no | 23/26 failed (test_convertTwenty, test_convertSixty, test_convertSeventy successful) |
| | | |
| | | |
| | | |
| | | |
\ No newline at end of file
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