2016-04-17 13:53:57 +00:00
|
|
|
import random
|
|
|
|
import unittest
|
|
|
|
import btree
|
|
|
|
|
|
|
|
class TestBTreeSet(unittest.TestCase):
|
|
|
|
|
|
|
|
def setUp(self):
|
|
|
|
self.set = btree.BTreeSet()
|
|
|
|
|
|
|
|
def test_empty(self):
|
|
|
|
# make sure the initial set is empty
|
2016-04-17 21:26:33 +00:00
|
|
|
# TODO self.assertEqual(bool(self.set), False)
|
2016-04-17 13:53:57 +00:00
|
|
|
self.assertEqual(len(self.set), 0)
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main()
|
|
|
|
|