From 8d2775e3d736d90327e817655e24ed91f922b161 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Sun, 22 May 2016 16:42:46 -0700 Subject: [PATCH] [release/1.4.6] core: Simplify bloom9 tests with available convenience method `TestBytes` (cherry picked from commit faf663133b7d784406a6bfc029404b2718abc66d) --- core/types/bloom9_test.go | 4 ++-- 1 file 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") } } -- GitLab