import unittest

from String_Calc import Calculator as Calc

class AddTests(unittest.TestCase):
    def test_Zero(self):
        self.assertEqual(0, Calc(""))

    def test_One(self):
        self.assertEqual(1, Calc("1"))

    def test_Two(self):
        self.assertEqual(3, Calc("1,2"))

    def test_Unkown(self):
        self.assertEqual(10, Calc("1,2,3,4"))

    def test_Newline_delim(self):
        self.assertEqual(10, Calc("3\n6,1"))

if __name__ == '__main__':
    unittest.main()