diff options
author | obscuren <geffobscura@gmail.com> | 2014-11-19 02:48:35 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-11-19 02:48:35 +0800 |
commit | 675ba4d7eb7ab96fa74b803085f042a25f8d8d42 (patch) | |
tree | cc8ee5c2cd3f80e943a336d9820539ea2ebce4d2 /ethutil/rand_test.go | |
parent | f8d0cd9906a1ec4a4a1e95868a279312363f8b49 (diff) | |
parent | 5c958ec5f658709b648647449ce5349aa98b3d5d (diff) | |
download | dexon-675ba4d7eb7ab96fa74b803085f042a25f8d8d42.tar dexon-675ba4d7eb7ab96fa74b803085f042a25f8d8d42.tar.gz dexon-675ba4d7eb7ab96fa74b803085f042a25f8d8d42.tar.bz2 dexon-675ba4d7eb7ab96fa74b803085f042a25f8d8d42.tar.lz dexon-675ba4d7eb7ab96fa74b803085f042a25f8d8d42.tar.xz dexon-675ba4d7eb7ab96fa74b803085f042a25f8d8d42.tar.zst dexon-675ba4d7eb7ab96fa74b803085f042a25f8d8d42.zip |
Merge branch 'tests' into poc8
Diffstat (limited to 'ethutil/rand_test.go')
-rw-r--r-- | ethutil/rand_test.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ethutil/rand_test.go b/ethutil/rand_test.go new file mode 100644 index 000000000..c12698538 --- /dev/null +++ b/ethutil/rand_test.go @@ -0,0 +1,17 @@ +package ethutil + +import ( + checker "gopkg.in/check.v1" +) + +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) +} |