diff --git a/muhamed_directory/String calculator b/muhamed_directory/String calculator index 212921e7d343e686aff9ee2372e834231e851697..9960350e37599d72f8775c7314711b8ed0524035 100644 --- a/muhamed_directory/String calculator +++ b/muhamed_directory/String calculator @@ -9,7 +9,8 @@ import unittest import re from abc import ABC, abstractmethod -from other.Alma.Feature6 import StringCalculator as Alma + +from other.Alma.Feature6 import TestStringCalculator as almatests class CalculatorInterface(ABC): @abstractmethod @@ -60,9 +61,8 @@ class StringCalculator(CalculatorInterface): return sum(numbers_to_add) def get_called_count(self): return self.called_count - - -class TestStingCalculator(unittest.TestCase): + +'''class TestStingCalculator(unittest.TestCase): def setUp(self): self.calculator = Alma() def test_empty_string(self): @@ -116,7 +116,7 @@ class TestStingCalculator(unittest.TestCase): def test_custom_del(self): self.assertEqual(self.calculator.add("//[+++]\n1+++2+++3"),6) def test_custom_del2(self): - self.assertEqual(self.calculator.add("//[aa]\n1aa2aa3"),6) + self.assertEqual(self.calculator.add("//[aa]\n1aa2aa3"),6)''' diff --git a/muhamed_directory/other/Alma/__pycache__/Feature6.cpython-311.pyc b/muhamed_directory/other/Alma/__pycache__/Feature6.cpython-311.pyc index 7226d04836270c33324500c51b213642808f180f..b719ddc15d76b2cf4f19f4064da7c0422ada3f8a 100644 Binary files a/muhamed_directory/other/Alma/__pycache__/Feature6.cpython-311.pyc and b/muhamed_directory/other/Alma/__pycache__/Feature6.cpython-311.pyc differ diff --git a/muhamed_directory/other/report.md b/muhamed_directory/other/report.md index 4b601756eb91c3b46e5d8c8d532d30253b51f786..49a6e9041385d3c4f52040f49bbf273ab9f58d09 100644 --- a/muhamed_directory/other/report.md +++ b/muhamed_directory/other/report.md @@ -1,3 +1,15 @@ -| 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 | \ No newline at end of file +| Name | Interface break | Failed Testcases | +|---------|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| 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') | +| 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 +| 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') | + +### alma tests muhamed calculator + +* **Anzahl der ausgeführten Tests:** 15 +* **Fehler (Errors):** 2 + * **test_long_delimiter:** Dieser Test schlägt fehl, weil deine Implementierung Schwierigkeiten hat, Zahlen zu addieren, die durch ein benutzerdefiniertes Trennzeichen getrennt sind, das länger als ein einzelnes Zeichen ist (z.B. "***"). Es kommt zu einem `ValueError`, da der Teil des Strings, der das Trennzeichen enthält, nicht korrekt in eine Zahl umgewandelt werden kann. + * **test_long_delimiter_with_multiple_numbers:** Dieser Test schlägt ebenfalls fehl aus dem gleichen Grund wie oben, nur dass hier mehrere Zahlen durch ein längeres benutzerdefiniertes Trennzeichen (z.B. "---") getrennt sind. \ No newline at end of file