Skip to content

Commit

Permalink
Add coverage of Has in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
gconnell committed Jun 15, 2022
1 parent 3f48535 commit 8e29150
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions btree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ func TestBTree(t *testing.T) {
t.Fatal("insert found item", item)
}
}
for _, item := range perm(treeSize) {
if !tr.Has(item) {
t.Fatal("has did not find item", item)
}
}
for _, item := range perm(treeSize) {
if x := tr.ReplaceOrInsert(item); x == nil {
t.Fatal("insert didn't find item", item)
Expand Down

0 comments on commit 8e29150

Please sign in to comment.