Skip to content
Snippets Groups Projects
Commit 16d5a475 authored by Muhamed's avatar Muhamed
Browse files

Daniel

parent 42b2db8b
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
import unittest import unittest
import re import re
from abc import ABC, abstractmethod from abc import ABC, abstractmethod
from other.Alma.Feature6 import StringCalculator as Alma from other.Daniel.stringCalculator import StringCalculator as Dani
class CalculatorInterface(ABC): class CalculatorInterface(ABC):
@abstractmethod @abstractmethod
...@@ -64,7 +64,7 @@ class StringCalculator(CalculatorInterface): ...@@ -64,7 +64,7 @@ class StringCalculator(CalculatorInterface):
class TestStingCalculator(unittest.TestCase): class TestStingCalculator(unittest.TestCase):
def setUp(self): def setUp(self):
self.calculator = Alma() self.calculator = Dani()
def test_empty_string(self): def test_empty_string(self):
self.assertEqual(self.calculator.add(""), 0) #leerer string + 0 self.assertEqual(self.calculator.add(""), 0) #leerer string + 0
def test_single_number(self): def test_single_number(self):
......
File added
| Name | Interface break | Failed Testcases | | Name | Interface break | Failed Testcases |
|--------|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |--------|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Alma | yes (2) | test_add_numbers_greater_1000_and_minus, test_multiple_negative_numbers_exception, test_negative_number_exception, test_add_numbers_with_custom_delimiter, test_custom_del, test_custom_del2, test_custom_delimiter | | Alma | 2 | test_add_numbers_greater_than_1000_and_minus (Interface Break: Erwartete Fehlermeldung für negative Zahl in Kombination mit Zahl > 1000 war anders: "invalid literal for int() with base 10: '-3,4'" vs. erwartet 'negatives not allowed: -3'), test_multiple_negative_numbers_exception (Geringfügige Abweichung in der Fehlermeldung: 'Negatives not allowed: -1, -2' vs. erwartet 'negatives not allowed: -1,-2'), test_negative_number_exception (Geringfügige Abweichung in der Fehlermeldung: 'Negatives not allowed: -1' vs. erwartet 'negatives not allowed: -1'), test_add_numbers_with_custom_delimiter (Interface Break: ValueError: invalid literal for int() mit Eingabe '//;\n1,2,3'), test_custom_del (Interface Break: ValueError: invalid literal for int() mit Eingabe '//[+++]\n1+++2+++3'), test_custom_del2 (Interface Break: ValueError: invalid literal for int() mit Eingabe '//[aa]\n1aa2aa3'), test_custom_delimiter (Interface Break: ValueError: invalid literal for int() mit Eingabe '//[***]\n1***2***3') |
\ No newline at end of file | Daniel | yes | test_add_numbers_greater_1000_and_minus (Interface Break: ValueError wurde nicht ausgelöst, obwohl eine negative Zahl vorhanden war), test_add_numbers_with_custom_delimiter (Interface Break: ValueError wurde nicht ausgelöst, obwohl eine negative Zahl im benutzerdefinierten Trennzeichen-Szenario vorhanden war), test_multiple_negative_numbers_exception (Interface Break: ValueError wurde nicht ausgelöst, obwohl mehrere negative Zahlen vorhanden waren), test_negative_number_exception (Interface Break: ValueError wurde nicht ausgelöst, obwohl eine negative Zahl vorhanden war) |
\ 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