test get root w deleted

This commit is contained in:
Bel LaPointe
2022-02-09 11:43:42 -07:00
parent 2a278a33e0
commit c4b63825aa
2 changed files with 14 additions and 7 deletions

View File

@@ -26,7 +26,13 @@ func TestTreeDel(t *testing.T) {
if root, err := tree.GetRoot(); err != nil {
t.Fatal(err)
} else if len(root.Branches) > 0 {
} else if len(root.Branches) != 0 {
t.Fatal(root.Branches)
}
if root, err := tree.getRoot(false, true); err != nil {
t.Fatal(err)
} else if len(root.Branches) != 1 {
t.Fatal(root.Branches)
}
}