diff --git a/Project_Test/other/SerchimoMarvin/feature7.py b/Project_Test/other/SerchimoMarvin/feature7.py index 92de9259e2cee84a471e28f08d93682e34514b38..48ac68e079c3419c64d8038818343cb2c6930cd0 100644 --- a/Project_Test/other/SerchimoMarvin/feature7.py +++ b/Project_Test/other/SerchimoMarvin/feature7.py @@ -1,5 +1,8 @@ import re import unittest +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 StringCalculator: def add(self, numbers: str) -> int: @@ -53,7 +56,7 @@ class TestStringCalculator(unittest.TestCase): def setUp(self): """neue Instanz des StringCalculators vor jedem Test""" - self.calculator = StringCalculator() + self.calculator = DaniCalc() def test_empty_string_returns_zero(self): """Feature 1: Leerer String soll 0 ergeben""" diff --git a/Project_Test/report.md b/Project_Test/report.md index 993167d7149ef567578546e1192e303a72a5f11b..6a6c12d6269bdfbb13f4d7040357fedbf6f6a0bd 100644 --- a/Project_Test/report.md +++ b/Project_Test/report.md @@ -19,5 +19,5 @@ String Calculator - My Code tested with the other students testcases | 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 | yes (1) | 2 failed testcases ( again ValueError expected - test_add_single_negative_number, test_add_multiple_negative_numbers) | | YildirimHatice | no | 2 failed testcases ( again ValueError expected - test_negative_number, test_multiple_negative_numbers) | -| WeishauptOrlando | no | 2 failed testcases (ValueError expected again - test_add_raises_exception_on_negative_number, test_add_raises_exception_on_multiple_negatives) | -| SerchimoMarvin | | | \ No newline at end of file +| WeishauptOrlando | no | 2 failed testcases ( ValueError expected again - test_add_raises_exception_on_negative_number, test_add_raises_exception_on_multiple_negatives) | +| SerchimoMarvin | no | 2 failed testcases ( ValueError expected - test_add_negative_numbers, test_custom_long_delimiter_with_negative_numbers) | \ No newline at end of file