2014-11-05 21:21:28 +00:00
|
|
|
package ethutil
|
|
|
|
|
|
|
|
import (
|
2014-11-11 18:18:52 +00:00
|
|
|
checker "gopkg.in/check.v1"
|
2014-11-05 21:21:28 +00:00
|
|
|
)
|
|
|
|
|
2014-11-11 18:18:52 +00:00
|
|
|
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)
|
2014-11-05 21:21:28 +00:00
|
|
|
}
|