test get root w deleted
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user