We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d33211 commit 0c91603Copy full SHA for 0c91603
augmentedtree/atree_test.go
@@ -625,6 +625,11 @@ func TestInsertDuplicateIntervalChildren(t *testing.T) {
625
626
func TestTraverse(t *testing.T) {
627
tree := newTree(1)
628
+
629
+ tree.Traverse(func(i Interval) {
630
+ assert.Fail(t, `traverse should not be called for empty tree`)
631
+ })
632
633
top := 30
634
for i := 0; i <= top; i++ {
635
tree.Add(constructSingleDimensionInterval(int64(i*10), int64((i+1)*10), uint64(i)))
0 commit comments