Skip to content
Snippets Groups Projects
Commit ecb27735 authored by Daniel Rafeh's avatar Daniel Rafeh
Browse files

1 error, 2 fails detected - Report adjusted

parent 2736a456
Branches feature/Test_PikkemaatLasse
No related tags found
No related merge requests found
Pipeline #20147 passed
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)
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment