aboutsummaryrefslogtreecommitdiffstats
path: root/ethdb/database_test.go
blob: 2cbaf58e0dee90834a5884d30fec74401fa3920c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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)
    }
}
*/