diff --git a/Project_Test/other/PikkemaatLasse/stringcalculator.py b/Project_Test/other/PikkemaatLasse/stringcalculator.py index d4f0263f680e206aa5f4b668a704b385f58881cc..364c1150beff8461e9e3368549763e6d41845764 100644 --- a/Project_Test/other/PikkemaatLasse/stringcalculator.py +++ b/Project_Test/other/PikkemaatLasse/stringcalculator.py @@ -1,6 +1,9 @@ import re from abc import ABC, abstractmethod +import sys +sys.path.append(r'C:\Users\HP\Downloads\ReportingService\ReportingService\Frontend\Neuer Ordner\Neuer Ordner\modern-dev-tdd-assignments') +from Project_Test.stringCalculator import StringCalculator as DaniCalc class IStringCalculator(ABC): @abstractmethod @@ -45,7 +48,7 @@ import unittest class TestStringCalculator(unittest.TestCase): def setUp(self): - self.calculator: IStringCalculator = StringCalculator() # Zugriff über das Interface + self.calculator = DaniCalc() def test_add_empty_string(self): self.assertEqual(self.calculator.add(""), 0) diff --git a/Project_Test/report.md b/Project_Test/report.md index 9b4ca975bd076cfcef910a1aa647a3c73f237ea0..5bbad9252e3896d09c1f227775b69fe1fb261107 100644 --- a/Project_Test/report.md +++ b/Project_Test/report.md @@ -17,7 +17,7 @@ String Calculator - My Code tested with the other students testcases | AliciMuhamed | no | 4 failed testcases (the tests expected a ValueError to be raised but it wasn´t - test_add_numbers_greater_1000_and_minus, test_add_numbers_with_custom_delimiter, test_multiple_negative_numbers_exception, test_negative_number_exception) | | BerishaAlma | no | 2 failed testcases (the tests expected a ValueError to be raised but it wasn't - test_negative_number, test_multiple_negative_numbers) | | GotsisWasilios | no | 2 failed testcases ( the test expected a ValueError to be raised but it wasn't - test_add_exception, test_add_negative_numbers) | -| PikkemaatLasse | | | +| PikkemaatLasse | yes (1) | 2 failed testcases ( again ValueError expected - test_add_single_negative_number, test_add_multiple_negative_numbers) | | YildirimHatice | | | | WeishauptOrlando | | | | SerchimoMarvin | | | \ No newline at end of file