summaryrefslogtreecommitdiff
path: root/AlgoDesignAndTechniqueEdxPython/tests/primitive_calculatorTest.py
blob: 00788d42b59759ca9dcc667abb34489a2c2f8b38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
'''
Created on Dec 19, 2018

@author: haidong
'''
import unittest

from sources.primitive_calculator import optimal_sequence


class Test(unittest.TestCase):

    def testName(self):
        self.assertEqual(3, len(list(optimal_sequence(5))) - 1)
        self.assertEqual(14, len(list(optimal_sequence(96234))) - 1)


if __name__ == "__main__":
    # import sys;sys.argv = ['', 'Test.testName']
    unittest.main()