diff options
author | Fabio Berger <fabioberger1991@gmail.com> | 2016-05-23 07:42:46 +0800 |
---|---|---|
committer | Fabio Berger <fabioberger1991@gmail.com> | 2016-05-23 07:42:46 +0800 |
commit | faf663133b7d784406a6bfc029404b2718abc66d (patch) | |
tree | e1523516f640cf02996a884a9fc116e5decb1210 /core | |
parent | 847aaffbb8748e6b4d5cff106c809ace35bbc815 (diff) | |
download | go-tangerine-faf663133b7d784406a6bfc029404b2718abc66d.tar go-tangerine-faf663133b7d784406a6bfc029404b2718abc66d.tar.gz go-tangerine-faf663133b7d784406a6bfc029404b2718abc66d.tar.bz2 go-tangerine-faf663133b7d784406a6bfc029404b2718abc66d.tar.lz go-tangerine-faf663133b7d784406a6bfc029404b2718abc66d.tar.xz go-tangerine-faf663133b7d784406a6bfc029404b2718abc66d.tar.zst go-tangerine-faf663133b7d784406a6bfc029404b2718abc66d.zip |
core: Simplify bloom9 tests with available convenience method `TestBytes`
Diffstat (limited to 'core')
-rw-r--r-- | core/types/bloom9_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/types/bloom9_test.go b/core/types/bloom9_test.go index 58e8f7073..a28ac0e7a 100644 --- a/core/types/bloom9_test.go +++ b/core/types/bloom9_test.go @@ -39,12 +39,12 @@ func TestBloom(t *testing.T) { } for _, data := range positive { - if !bloom.Test(new(big.Int).SetBytes([]byte(data))) { + if !bloom.TestBytes([]byte(data)) { t.Error("expected", data, "to test true") } } for _, data := range negative { - if bloom.Test(new(big.Int).SetBytes([]byte(data))) { + if bloom.TestBytes([]byte(data)) { t.Error("did not expect", data, "to test true") } } |