moved err check

This commit is contained in:
obscuren
2014-12-17 12:57:35 +01:00
parent ef4135eabe
commit b1c58b76a9
6 changed files with 102 additions and 17 deletions

View File

@ -1 +1,19 @@
package core
import (
"fmt"
"path"
"testing"
"github.com/ethereum/go-ethereum/ethutil"
)
func TestChainInsertions(t *testing.T) {
c1, err := ethutil.ReadAllFile(path.Join("..", "_data", "chain1"))
if err != nil {
fmt.Println(err)
t.FailNow()
}
data1, _ := ethutil.Decode([]byte(c1), 0)
fmt.Println(data1)
}