18 lines
353 B
Python
18 lines
353 B
Python
|
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
|
||
|
self.assertEqual(bool(self.set), False)
|
||
|
self.assertEqual(len(self.set), 0)
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
unittest.main()
|
||
|
|