Esempio n. 1
0
def test__BST_remove_list2(xs, ys):
    xs = list(set(xs))
    bst = BST(xs)
    bst.remove_list(ys)
    for y in ys:
        if y in xs:
            xs.remove(y)
    assert bst.to_list('inorder') == sorted(xs)
Esempio n. 2
0
def test__BST_remove_list1(xs, ys):
    xs = list(set(xs))
    bst = BST(xs)
    bst.remove_list(ys)
    for y in ys:
        assert y not in bst