aboutsummaryrefslogtreecommitdiff
path: root/c/cursor_test.go
diff options
context:
space:
mode:
authorMartin Kobetic <mkobetic@gmail.com>2014-04-23 14:25:25 +0000
committerMartin Kobetic <mkobetic@gmail.com>2014-04-23 14:25:25 +0000
commitded351df9218d1c43d86928206eed633efddc065 (patch)
tree9182194c2ee810219be064b108a842eaa5a29f2f /c/cursor_test.go
parentfix deep search (diff)
downloaddedo-ded351df9218d1c43d86928206eed633efddc065.tar.gz
dedo-ded351df9218d1c43d86928206eed633efddc065.tar.xz
another test case and minor cleanup
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
})
})