From 953bf8c7cc0c82b79a178319fc52ad1c9e178753 Mon Sep 17 00:00:00 2001
From: DaniRafeh28 <daniel.rafeh@student.reutlingen-university.de>
Date: Wed, 26 Mar 2025 16:42:35 +0100
Subject: [PATCH] Test successful

---
 stringCalculator.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/stringCalculator.py b/stringCalculator.py
index d764af2..232cb01 100644
--- a/stringCalculator.py
+++ b/stringCalculator.py
@@ -15,6 +15,7 @@
 # Bei der Eingabe von Texten mit leeren Trennzeichen (z.B. "//;\n") soll die Zahl 0 ausgegeben werden
 # Bei der Eingabe von "1, " soll die Zahl 1 ausgegeben werden
 # Bei der Eingabe von "-2, 5" soll "negatives not allowed" ausgegeben werden
+# Bei der Eingabe von "//;\n-1;2;1001;-3" soll "negatives not allowed [-1, -3]" ausgegeben werden
 
 import unittest
 from abc import ABC, abstractmethod
@@ -162,5 +163,9 @@ class TestStringCalculator(unittest.TestCase):
         res = self.c.add("-2, 5")
         self.assertEqual(res, "negatives not allowed")
 
+    def test_mixture(self):
+        res = self.c.add("//;\n-1;2;1001;-3")
+        self.assertEqual(res, "negatives not allowed " + str([-1, -3]))
+
 if __name__ == "__main__":
     unittest.main()
\ No newline at end of file
-- 
GitLab