diff --git a/muhamed_directory/String calculator b/muhamed_directory/String calculator index 358785bb6f0d45b9a9411238fff7337553434c71..0a39f9259a6441335b9ca0764267f4aa5782c9a8 100644 --- a/muhamed_directory/String calculator +++ b/muhamed_directory/String calculator @@ -9,7 +9,7 @@ import unittest import re from abc import ABC, abstractmethod -from other.Wasili.TDD_StringCalculator import StringCalculator as Wasili +from other.Lasse.stringcalculator import StringCalculator as Lasse class CalculatorInterface(ABC): @abstractmethod @@ -64,7 +64,7 @@ class StringCalculator(CalculatorInterface): class TestStingCalculator(unittest.TestCase): def setUp(self): - self.calculator = Wasili() + self.calculator = Lasse() def test_empty_string(self): self.assertEqual(self.calculator.add(""), 0) #leerer string + 0 def test_single_number(self): diff --git a/muhamed_directory/other/Lasse/__pycache__/interfaces.cpython-311.pyc b/muhamed_directory/other/Lasse/__pycache__/interfaces.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2babbc9b47bd1667d8db71dc3d9ae88457eb7d8d Binary files /dev/null and b/muhamed_directory/other/Lasse/__pycache__/interfaces.cpython-311.pyc differ diff --git a/muhamed_directory/other/Lasse/__pycache__/stringcalculator.cpython-311.pyc b/muhamed_directory/other/Lasse/__pycache__/stringcalculator.cpython-311.pyc new file mode 100644 index 0000000000000000000000000000000000000000..87fcc033a3be65d67f8fc3ae843b638e5309b836 Binary files /dev/null and b/muhamed_directory/other/Lasse/__pycache__/stringcalculator.cpython-311.pyc differ diff --git a/muhamed_directory/other/Lasse/stringcalculator.py b/muhamed_directory/other/Lasse/stringcalculator.py index fc7e89a3c15a18957c55241afea7767fcad48f34..c3ee46b43dfa5345b5eb283a83566b4b92443b27 100644 --- a/muhamed_directory/other/Lasse/stringcalculator.py +++ b/muhamed_directory/other/Lasse/stringcalculator.py @@ -1,4 +1,4 @@ -from src.interfaces import IStringCalculator +from other.Lasse.interfaces import IStringCalculator import re diff --git a/muhamed_directory/other/report.md b/muhamed_directory/other/report.md index a3eec80bcb72a8cca2e9019c062535fcd795b6a6..1c96c1d673d126f95cdf89c8ae52b87e9900cbb9 100644 --- a/muhamed_directory/other/report.md +++ b/muhamed_directory/other/report.md @@ -4,4 +4,5 @@ | 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) | | Hatice | 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') | | Marvin | yes | test_add_numbers_greater_1000_and_minus (Interface Break: Fehlermeldung für negative Zahl war anders: 'Negative numbers are not allowed: -3' vs. erwartet 'negatives not allowed: -3'), test_add_numbers_with_custom_delimiter (Interface Break: Fehlermeldung für negative Zahl war anders: 'Negative numbers are not allowed: -3' vs. erwartet 'negatives not allowed: -3'), test_multiple_negative_numbers_exception (Interface Break: Fehlermeldung für negative Zahl war anders: 'Negative numbers are not allowed: -1, -2' vs. erwartet 'negatives not allowed: -1,-2'), test_negative_number_exception (Interface Break: Fehlermeldung für negative Zahl war anders: 'Negative numbers are not allowed: -1' vs. erwartet 'negatives not allowed: -1') | -| Wasili | no | none \ No newline at end of file +| Wasili | no | none +| Lasse | yes | test_add_numbers_greater_1000_and_minus (Interface Break: Fehlermeldung für negative Zahl war anders: 'Negative nicht erlaubt: [-3]' vs. erwartet 'negatives not allowed: -3'), test_add_numbers_with_custom_delimiter (Interface Break: Fehlermeldung für negative Zahl war anders: 'Negative nicht erlaubt: [-3]' vs. erwartet 'negatives not allowed: -3'), test_multiple_negative_numbers_exception (Interface Break: Fehlermeldung für negative Zahl war anders: 'Negative nicht erlaubt: [-1, -2]' vs. erwartet 'negatives not allowed: -1,-2'), test_negative_number_exception (Interface Break: Fehlermeldung für negative Zahl war anders: 'Negative nicht erlaubt: [-1]' vs. erwartet 'negatives not allowed: -1') | \ No newline at end of file