Script execution

This commit is contained in:
2019-12-10 18:12:33 +01:00
parent dd4e30f92b
commit a240defaac

14
script/UnitTest.py Normal file
View File

@@ -0,0 +1,14 @@
import unittest
class IntegerArithmenticTestCase(unittest.TestCase):
def testAdd(self): ## test method names begin 'test*'
self.assertEquals((1 + 2), 3)
self.assertEquals(0 + 1, 1)
def testMultiply(self):
self.assertEquals((0 * 10), 0)
self.assertEquals((5 * 8), 40)
if __name__ == '__main__':
unittest.main()