interactive-coding-challenges/online_judges/utopian_tree/test_utopian_tree.py

19 lines
417 B
Python
Raw Normal View History

2015-07-02 17:57:29 +08:00
from nose.tools import assert_equal
class TestUtopianTree(object):
def test_utopian_tree(self):
assert_equal(calc_utopian_tree_height(0), 1)
assert_equal(calc_utopian_tree_height(1), 2)
assert_equal(calc_utopian_tree_height(4), 7)
print('Success: test_utopian_tree')
2015-07-12 03:35:22 +08:00
2015-07-02 17:57:29 +08:00
def main():
test = TestUtopianTree()
test.test_utopian_tree()
2015-07-12 03:35:22 +08:00
2015-07-02 17:57:29 +08:00
if __name__ == '__main__':
main()