Skip to content
Snippets Groups Projects
Commit a05d799f authored by Daniel Rafeh's avatar Daniel Rafeh
Browse files

test_addingTwoNumbersWithZero successful

parent de09056d
No related branches found
No related tags found
No related merge requests found
Pipeline #20017 passed
...@@ -52,5 +52,9 @@ class TestStringCalculator(unittest.TestCase): ...@@ -52,5 +52,9 @@ class TestStringCalculator(unittest.TestCase):
res = self.c.add("1,2") res = self.c.add("1,2")
self.assertEqual(res, 3) self.assertEqual(res, 3)
def test_addingTwoNumbersWithZero(self):
res = self.c.add("0,5")
self.assertEqual(res, 5)
if __name__ == "__main__": if __name__ == "__main__":
unittest.main() unittest.main()
\ No newline at end of file
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