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

Test successful

parent 7c313f6e
No related branches found
No related tags found
No related merge requests found
Pipeline #20050 passed
...@@ -148,5 +148,9 @@ class TestStringCalculator(unittest.TestCase): ...@@ -148,5 +148,9 @@ class TestStringCalculator(unittest.TestCase):
res = self.c.add(" 2, 1001, 5") res = self.c.add(" 2, 1001, 5")
self.assertEqual(res, 7) self.assertEqual(res, 7)
def test_empty_text(self):
res = self.c.add("//;\n")
self.assertEqual(res, 0)
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