From ccc859a6a568e14965c3ba0ec267b770c153b39d Mon Sep 17 00:00:00 2001 From: DaniRafeh28 <daniel.rafeh@student.reutlingen-university.de> Date: Sat, 5 Apr 2025 13:43:04 +0200 Subject: [PATCH] 2 fails - Report table adjusted --- Project_Test/other/SerchimoMarvin/feature7.py | 5 ++++- Project_Test/report.md | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Project_Test/other/SerchimoMarvin/feature7.py b/Project_Test/other/SerchimoMarvin/feature7.py index 92de925..48ac68e 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 993167d..6a6c12d 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 -- GitLab