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.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/c/cursor_test.go b/c/cursor_test.go
index ef0f4bc..9e7cb1b 100644
--- a/c/cursor_test.go
+++ b/c/cursor_test.go
@@ -153,22 +153,22 @@ func TestCursor_Seek_Large(t *testing.T) {
db.View(func(tx *bolt.Tx) error {
c := NewCursor(tx.Bucket([]byte("widgets")))
- fmt.Println("// Exact match should go to the key.")
+ // Exact match should go to the key.
k, v, _ := c.Seek([]byte("05000\000"))
assert.Equal(t, "05000\000", string(k))
assert.Equal(t, fmt.Sprintf("%020d", 5000), string(v))
- fmt.Println("// Inexact match should go to the next key.")
+ // Inexact match should go to the next key.
k, v, _ = c.Seek([]byte("07495\000"))
assert.Equal(t, "07500\000", string(k))
assert.Equal(t, fmt.Sprintf("%020d", 7500), string(v))
- fmt.Println("// Low key should go to the first key.")
+ // Low key should go to the first key.
k, v, _ = c.Seek([]byte("00000\000"))
assert.Equal(t, "00010\000", string(k))
assert.Equal(t, fmt.Sprintf("%020d", 10), string(v))
- fmt.Println("// High key should return no key.")
+ // High key should return no key.
k, v, _ = c.Seek([]byte("40000\000"))
assert.Equal(t, "", string(k))
assert.Equal(t, "", string(v))