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

4 fails - Report table adjusted

parent fa071c8a
No related branches found
No related tags found
No related merge requests found
Pipeline #20134 passed
File added
......@@ -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):
......
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
......@@ -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
......
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