Skip to content

Commit a46bb3a

Browse files
committed
tree: add extra check in subtree order merge test
We add an extra check to the subtree order merge test, just to bring the two merge tests into alignment.
1 parent 28cccf3 commit a46bb3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tree_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ func TestMergeInsertElementsInSubtreeOrder(t *testing.T) {
157157
assert.True(t, bytes.Equal(t1.Entries[1].Oid, []byte{0x2}))
158158
assert.True(t, bytes.Equal(t1.Entries[2].Oid, []byte{0x3}))
159159

160+
require.Len(t, t2.Entries, 4)
160161
assert.True(t, bytes.Equal(t2.Entries[0].Oid, []byte{0x4}))
161162
assert.True(t, bytes.Equal(t2.Entries[1].Oid, []byte{0x1}))
162163
assert.True(t, bytes.Equal(t2.Entries[2].Oid, []byte{0x2}))

0 commit comments

Comments
 (0)