From ded351df9218d1c43d86928206eed633efddc065 Mon Sep 17 00:00:00 2001 From: Martin Kobetic Date: Wed, 23 Apr 2014 14:25:25 +0000 Subject: another test case and minor cleanup --- c/cursor_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'c/cursor_test.go') 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 }) }) -- cgit v1.2.3