Convert rand_test to checker
This commit is contained in:
parent
bfd1fe977e
commit
c24d143c9e
@ -1,9 +1,17 @@
|
||||
package ethutil
|
||||
|
||||
import (
|
||||
"testing"
|
||||
checker "gopkg.in/check.v1"
|
||||
)
|
||||
|
||||
func TestRandomUint64(t *testing.T) {
|
||||
RandomUint64()
|
||||
type RandomSuite struct{}
|
||||
|
||||
var _ = checker.Suite(&RandomSuite{})
|
||||
|
||||
func (s *RandomSuite) TestRandomUint64(c *checker.C) {
|
||||
res1, _ := RandomUint64()
|
||||
res2, _ := RandomUint64()
|
||||
c.Assert(res1, checker.NotNil)
|
||||
c.Assert(res2, checker.NotNil)
|
||||
c.Assert(res1, checker.Not(checker.Equals), res2)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user