diff --git a/Project_tests/other/WeishauptOrlando/RomanConverter.py b/Project_tests/other/WeishauptOrlando/RomanConverter.py index 4bb414abcc747293194a6a97373b2d77d9f743b3..23b1f8c15cbc96fb0daff1184f6994124e447bb3 100644 --- a/Project_tests/other/WeishauptOrlando/RomanConverter.py +++ b/Project_tests/other/WeishauptOrlando/RomanConverter.py @@ -2,6 +2,9 @@ import sys import os import unittest from abc import ABC, abstractmethod +import sys +sys.path.append('C:/Users/HP/OneDrive/Praxisprojekt Semester 6/praxisprojekt-technologiebasierte-innovationen') +from Project_tests.converter import DanisConverter as DaniConv class IRomanConverter(ABC): @abstractmethod @@ -94,7 +97,8 @@ import unittest class TestRomanConverter(unittest.TestCase): def setUp(self): - self.converter = RomanConverter() + self.converter = DaniConv() + self.converter.roman_to_int = self.converter.convert def test_single_digits(self): self.assertEqual(self.converter.roman_to_int("I"), 1) diff --git a/Project_tests/report.md b/Project_tests/report.md index ae40bca7ee93be06e4047d53ccd8d095a2c7f409..57b537f520e88f0c4adeb4197760437af6f3d8b6 100644 --- a/Project_tests/report.md +++ b/Project_tests/report.md @@ -19,5 +19,5 @@ Roman Numbers - My Codes tested with other students testcases: | GotsisWasilios | no | 3/7 Tests failed (test_convert_string because the message is not equal, test_convert_empty also the return message is not equal, test_convert_downzero also because of the unequal return message) | | PikkemaatLasse | no | 4/6 Tests failed (test_to_roman_subtraction the code does not subtract properly, test_to_roman_mixed the code doesn´t convert 400 properly (CCCC != CD), test_to_roman_large_numbers same problem with CCCC again, test_to_roman_invalid the test raises value errors in my code there´s a return message to handle "errors") | | YildirimHatice | no | 1/2 Tests failed (test_inivalid_numbers because the output of the testcase gives back an empty string instead of numbers or return messages (e.g. VI =! "")) | -| WeishauptOrlando | | | +| WeishauptOrlando | no | all (due to the problem that the testcases are for converting strings to integers instead integers to strings) | | SerchimoMarvin | - | - | \ No newline at end of file