Commit c24d143c authored by Taylor Gerring's avatar Taylor Gerring

Convert rand_test to checker

parent bfd1fe97
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)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment