Official Go implementation of the Ethereum protocol
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-ethereum/ethdb/database_test.go

27 lines
358 B

11 years ago
package ethdb
/*
11 years ago
import (
"bytes"
"testing"
11 years ago
)
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)
}
}
*/