2014-02-14 22:56:09 +00:00
|
|
|
package ethdb
|
|
|
|
|
2014-11-02 23:31:15 +00:00
|
|
|
/*
|
2014-02-14 22:56:09 +00:00
|
|
|
import (
|
2014-11-02 23:31:15 +00:00
|
|
|
"bytes"
|
|
|
|
"testing"
|
2014-02-14 22:56:09 +00:00
|
|
|
)
|
2014-11-02 23:31:15 +00:00
|
|
|
|
|
|
|
func TestCompression(t *testing.T) {
|
|
|
|
db, err := NewLDBDatabase("testdb")
|
|
|
|
if err != nil {
|
|
|
|
t.Fatal(err)
|
|
|
|
}
|
|
|
|
|
|
|
|
in := make([]byte, 10)
|
|
|
|
db.Put([]byte("test1"), in)
|
|
|
|
out, err := db.Get([]byte("test1"))
|
|
|
|
if err != nil {
|
|
|
|
t.Fatal(err)
|
|
|
|
}
|
|
|
|
|
|
|
|
if bytes.Compare(out, in) != 0 {
|
|
|
|
t.Error("put get", in, out)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*/
|