diff options
author | Martin Kobetic <mkobetic@gmail.com> | 2014-04-18 00:14:56 +0000 |
---|---|---|
committer | Martin Kobetic <mkobetic@gmail.com> | 2014-04-18 00:14:56 +0000 |
commit | 1bead4401cfa87409d9e6aef5d6556c0aae7e3ff (patch) | |
tree | be236b135d6e5328b334ef61bf9d44cfd53ca8ee /c/cursor_test.go | |
parent | trying to fix large seek (diff) | |
download | dedo-1bead4401cfa87409d9e6aef5d6556c0aae7e3ff.tar.gz dedo-1bead4401cfa87409d9e6aef5d6556c0aae7e3ff.tar.xz |
all tests pass
Diffstat (limited to 'c/cursor_test.go')
-rw-r--r-- | c/cursor_test.go | 8 |
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)) |