Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 8e29150

Browse files
committed
Add coverage of Has in test.
1 parent 3f48535 commit 8e29150

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

btree_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ func TestBTree(t *testing.T) {
9090
t.Fatal("insert found item", item)
9191
}
9292
}
93+
for _, item := range perm(treeSize) {
94+
if !tr.Has(item) {
95+
t.Fatal("has did not find item", item)
96+
}
97+
}
9398
for _, item := range perm(treeSize) {
9499
if x := tr.ReplaceOrInsert(item); x == nil {
95100
t.Fatal("insert didn't find item", item)

0 commit comments

Comments
 (0)