Skip to content
Snippets Groups Projects
Commit 869fadcf authored by Hatice Yildirim's avatar Hatice Yildirim
Browse files

Feature implementiert: feature2.py

parent 49040a73
No related branches found
No related tags found
No related merge requests found
......@@ -52,10 +52,6 @@ class TestStringCalculator(unittest.TestCase):
self.calculator.add("1,-2,3")
self.assertEqual(str(context.exception), "Negatives not allowed: -2")
def test_multiple_negative_numbers(self):
with self.assertRaises(ValueError) as context:
self.calculator.add("1,-2,-3,4")
self.assertEqual(str(context.exception), "Negatives not allowed: -2, -3")
if __name__ == "__main__":
unittest.main()
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