#273: Remove nose dependency for graphs_trees/ (#277)

This commit is contained in:
Donne Martin
2020-07-10 21:02:32 -04:00
committed by GitHub
parent 139e157250
commit abf7524c26
67 changed files with 860 additions and 1027 deletions

View File

@@ -1,16 +1,16 @@
from nose.tools import assert_equal
import unittest
class TestHeight(object):
class TestHeight(unittest.TestCase):
def test_height(self):
bst = BstHeight(Node(5))
assert_equal(bst.height(bst.root), 1)
self.assertEqual(bst.height(bst.root), 1)
bst.insert(2)
bst.insert(8)
bst.insert(1)
bst.insert(3)
assert_equal(bst.height(bst.root), 3)
self.assertEqual(bst.height(bst.root), 3)
print('Success: test_height')
@@ -21,4 +21,4 @@ def main():
if __name__ == '__main__':
main()
main()