Move test bootstrap to main_test.go

This commit is contained in:
Taylor Gerring 2014-11-11 19:05:23 +01:00
parent cd94b5ffb3
commit d9ccbf04db
3 changed files with 14 additions and 5 deletions

8
ethutil/main_test.go Normal file
View File

@ -0,0 +1,8 @@
package ethutil
import (
checker "gopkg.in/check.v1"
"testing"
)
func Test(t *testing.T) { checker.TestingT(t) }

View File

@ -1,10 +1,14 @@
package ethutil package ethutil
import ( import (
"testing" checker "gopkg.in/check.v1"
) )
func TestStorageSizeString(t *testing.T) { type SizeSuite struct{}
var _ = checker.Suite(&SizeSuite{})
func (s *SizeSuite) TestStorageSizeString(c *checker.C) {
data1 := 2381273 data1 := 2381273
data2 := 2192 data2 := 2192
data3 := 12 data3 := 12

View File

@ -3,11 +3,8 @@ package ethutil
import ( import (
checker "gopkg.in/check.v1" checker "gopkg.in/check.v1"
"math/big" "math/big"
"testing"
) )
func Test(t *testing.T) { checker.TestingT(t) }
type ValueSuite struct{} type ValueSuite struct{}
var _ = checker.Suite(&ValueSuite{}) var _ = checker.Suite(&ValueSuite{})