diff --git a/stringCalculator.py b/stringCalculator.py index 417673fe09651b7415d33fe498c72fed5ebb1a86..66c445eab0b34851a92a4a9c5eec67d43b0f3b98 100644 --- a/stringCalculator.py +++ b/stringCalculator.py @@ -148,5 +148,9 @@ class TestStringCalculator(unittest.TestCase): res = self.c.add(" 2, 1001, 5") self.assertEqual(res, 7) + def test_empty_text(self): + res = self.c.add("//;\n") + self.assertEqual(res, 0) + if __name__ == "__main__": unittest.main() \ No newline at end of file