mirror of
https://github.com/jlengrand/Coding4Interviews.git
synced 2026-03-10 08:11:24 +00:00
First test passes
This commit is contained in:
@@ -2,4 +2,20 @@
|
||||
Unit tests for the binary search tree data structure
|
||||
@jlengrand
|
||||
2013/07
|
||||
"""
|
||||
"""
|
||||
|
||||
from bst import BinarySearchTree
|
||||
|
||||
import unittest
|
||||
|
||||
|
||||
class test_binary_search_tree(unittest.TestCase):
|
||||
|
||||
def test_add(self):
|
||||
|
||||
bst = BinarySearchTree()
|
||||
self.assertEqual(bst.size, 0)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user