mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-07 09:58:03 +00:00
Renamed HackerRank and TopCoder section to Online Judges.
This commit is contained in:
17
online_judges/utopian_tree/test_utopian_tree.py
Normal file
17
online_judges/utopian_tree/test_utopian_tree.py
Normal file
@@ -0,0 +1,17 @@
|
||||
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')
|
||||
|
||||
def main():
|
||||
test = TestUtopianTree()
|
||||
test.test_utopian_tree()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user