mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-25 21:07:17 +00:00
29 lines
395 B
Go
29 lines
395 B
Go
package ethdb
|
|
|
|
/*
|
|
import (
|
|
"bytes"
|
|
"testing"
|
|
)
|
|
|
|
func TestCompression(t *testing.T) {
|
|
ethutil.ReadConfig("", "/tmp", "")
|
|
|
|
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)
|
|
}
|
|
}
|
|
*/
|