From 954b813c132e85059029c8f4f77420d1fac1388c Mon Sep 17 00:00:00 2001 From: linopino <lasse.pikkemaat@web.de> Date: Wed, 2 Apr 2025 00:48:16 +0200 Subject: [PATCH] Integration von Marvins Code + Tests --- others/Marvin/reportMarvinImp.md | 4 ++++ others/Marvin/reportMarvinTests.md | 4 ++++ tests/testStringcalculator.py | 5 ++++- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 others/Marvin/reportMarvinImp.md create mode 100644 others/Marvin/reportMarvinTests.md diff --git a/others/Marvin/reportMarvinImp.md b/others/Marvin/reportMarvinImp.md new file mode 100644 index 0000000..5374294 --- /dev/null +++ b/others/Marvin/reportMarvinImp.md @@ -0,0 +1,4 @@ +| Name | Interface break | Failed Testcases | +|--------|-----------------|-----------------------------------------------------------------------------------------------------------------------------------------------| +| Marvin | no | test_add_multiple_negative_numbers (tests.testStringcalculator.TestStringCalculator) ... Negative numbers are not allowed: -10, -20, -30 FAIL | +| Marvin | no | test_add_single_negative_number (tests.testStringcalculator.TestStringCalculator) ... Negative numbers are not allowed: -2 FAIL | \ No newline at end of file diff --git a/others/Marvin/reportMarvinTests.md b/others/Marvin/reportMarvinTests.md new file mode 100644 index 0000000..68709e7 --- /dev/null +++ b/others/Marvin/reportMarvinTests.md @@ -0,0 +1,4 @@ +| Name | Interface break | Failed Testcases | +|--------|-----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Marvin | no | test_add_negative_numbers (others.Marvin.MarvinStringCalculator.TestStringCalculator) Feature 4: Negative Zahlen sollen Fehler werfen ... FAIL | +| Marvin | no | test_custom_long_delimiter_with_negative_numbers (others.Marvin.MarvinStringCalculator.TestStringCalculator) Feature 4 und 7: Benutzerdefinierter Delimiter beliebiger Länge + negative Zahlen ... FAIL | \ No newline at end of file diff --git a/tests/testStringcalculator.py b/tests/testStringcalculator.py index a21f60d..a94a7ed 100644 --- a/tests/testStringcalculator.py +++ b/tests/testStringcalculator.py @@ -42,9 +42,12 @@ from others.Wasili.WasiliStringCalculator import IStringCalculator, StringCalcul import unittest from others.Momo.MomoStringCalculator import StringCalculator -''' + import unittest from others.Alma.AlmaStringCalculator import IStringCalculator, StringCalculator +''' +import unittest +from others.Marvin.MarvinStringCalculator import StringCalculator class TestStringCalculator(unittest.TestCase): def setUp(self): -- GitLab