diff --git a/Project_Test/__pycache__/stringCalculator.cpython-312.pyc b/Project_Test/__pycache__/stringCalculator.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3991daacbeef5440d4e799667d0c59a0c3e2214e Binary files /dev/null and b/Project_Test/__pycache__/stringCalculator.cpython-312.pyc differ diff --git a/Project_Test/other/AliciMuhamed/StringCalculator.py b/Project_Test/other/AliciMuhamed/StringCalculator.py index fc44a5aa2e889ec677e3551e4659dcd805a9cb33..6a9290bfe8125148e91aa3747ce0e9a794349603 100644 --- a/Project_Test/other/AliciMuhamed/StringCalculator.py +++ b/Project_Test/other/AliciMuhamed/StringCalculator.py @@ -27,6 +27,10 @@ import unittest import re +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 __init__(self): @@ -76,7 +80,7 @@ class StringCalculator: class TestStingCalculator(unittest.TestCase): def setUp(self): - self.calculator = StringCalculator() + self.calculator = DaniCalc() def test_empty_string(self): self.assertEqual(self.calculator.add(""), 0) #leerer string + 0 def test_single_number(self): diff --git a/Project_Test/report.md b/Project_Test/report.md index 3d8b313e2af836e8ea2427143247e2f2ab21e915..c6478413a02ef8b76534997d9d74c0deee5dabc4 100644 --- a/Project_Test/report.md +++ b/Project_Test/report.md @@ -1,3 +1,5 @@ +String Calculator - Other Students Codes tested with my testcases + | Name | Interface break | Failed Testcases | |------------------|-----------------|------------------| | AliciMuhamed | yes (8) | none | @@ -6,4 +8,16 @@ | PikkemaatLasse | yes (8) | none | | YildirimHatice | | | | WeishauptOrlando | yes (6) | none | -| SerchimoMarvin | yes (6) | none | \ No newline at end of file +| SerchimoMarvin | yes (6) | none | + +String Calculator - My Code tested with the other students testcases + +| Name | Interface break | Failed 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 | | | +| GotsisWasilios | | | +| PikkemaatLasse | | | +| YildirimHatice | | | +| WeishauptOrlando | | | +| SerchimoMarvin | | | \ No newline at end of file diff --git a/Project_Test/stringCalculator.py b/Project_Test/stringCalculator.py index 9a7eb12c2b865ea6a8f81b31d0139e3fb0c33746..9370e0d94e73f2ed61cceeaecf39c5b6e87d0466 100644 --- a/Project_Test/stringCalculator.py +++ b/Project_Test/stringCalculator.py @@ -25,7 +25,7 @@ from abc import ABC, abstractmethod #from other.PikkemaatLasse.stringcalculator import StringCalculator as LasseCalc #from other.SerchimoMarvin.feature7 import StringCalculator as MarvCalc #from other.WeishauptOrlando.string_calculator import StringCalculator as OrlCalc -from other.YildirimHatice.feature6 import StringCalculator as HatCalc +#from other.YildirimHatice.feature6 import StringCalculator as HatCalc class IStringCalculator(ABC): @abstractmethod