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

2 Tests failed - Report table adjusted

parent 74d2821b
No related branches found
No related tags found
No related merge requests found
Pipeline #20142 passed
No preview for this file type
from abc import ABC, abstractmethod
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 IStringCalculator(ABC):
@abstractmethod
......@@ -39,7 +42,7 @@ class StringCalculator(IStringCalculator):
class TestStringCalculator(unittest.TestCase):
def setUp(self):
self.calculator = StringCalculator()
self.calculator = DaniCalc()
def test_empty_string(self):
self.assertEqual(self.calculator.add(""), 0)
......
......@@ -15,7 +15,7 @@ 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 | | |
| 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 | | |
| PikkemaatLasse | | |
| YildirimHatice | | |
......
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