aboutsummaryrefslogtreecommitdiff
path: root/c/cursor_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'c/cursor_test.go')
-rw-r--r--c/cursor_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/c/cursor_test.go b/c/cursor_test.go
index 3001115..fa1e6bb 100644
--- a/c/cursor_test.go
+++ b/c/cursor_test.go
@@ -270,6 +270,12 @@ func TestCursor_Seek_Deep(t *testing.T) {
assert.Equal(t, "", string(k))
assert.Equal(t, "", string(v))
+ // Exact match in the middle of a branch page.
+ seek = fmt.Sprintf("%0*d", pgsz, 4170)
+ k, v, _ = c.Seek([]byte(seek))
+ assert.Equal(t, seek, string(k))
+ assert.Equal(t, seek, string(v))
+
return nil
})
})