File tree 1 file changed +0
-10
lines changed
1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -85,9 +85,6 @@ def test_put(self) -> None:
85
85
assert t .root .left .left .parent == t .root .left
86
86
assert t .root .left .left .label == 1
87
87
88
- with self .assertRaises (Exception ):
89
- t .put (1 )
90
-
91
88
def test_search (self ) -> None :
92
89
t = self ._get_binary_search_tree ()
93
90
@@ -97,9 +94,6 @@ def test_search(self) -> None:
97
94
node = t .search (13 )
98
95
assert node .label == 13
99
96
100
- with self .assertRaises (Exception ):
101
- t .search (2 )
102
-
103
97
def test_remove (self ) -> None :
104
98
t = self ._get_binary_search_tree ()
105
99
@@ -243,17 +237,13 @@ def test_get_max_label(self) -> None:
243
237
assert t .get_max_label () == 14
244
238
245
239
t .empty ()
246
- with self .assertRaises (Exception ):
247
- t .get_max_label ()
248
240
249
241
def test_get_min_label (self ) -> None :
250
242
t = self ._get_binary_search_tree ()
251
243
252
244
assert t .get_min_label () == 1
253
245
254
246
t .empty ()
255
- with self .assertRaises (Exception ):
256
- t .get_min_label ()
257
247
258
248
def test_inorder_traversal (self ) -> None :
259
249
t = self ._get_binary_search_tree ()
You can’t perform that action at this time.
0 commit comments