aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-05-23 19:15:32 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2016-05-23 19:15:32 +0800
commitb4dd3209b29870d58f5ba60831005ccdd9ea0f79 (patch)
treeb76e87e6b94a73e445b81f7295b4a2a7be71517c
parent262d92834a4df128034c992dbe7c43b09d7f203c (diff)
parentfaf663133b7d784406a6bfc029404b2718abc66d (diff)
downloadgo-tangerine-b4dd3209b29870d58f5ba60831005ccdd9ea0f79.tar
go-tangerine-b4dd3209b29870d58f5ba60831005ccdd9ea0f79.tar.gz
go-tangerine-b4dd3209b29870d58f5ba60831005ccdd9ea0f79.tar.bz2
go-tangerine-b4dd3209b29870d58f5ba60831005ccdd9ea0f79.tar.lz
go-tangerine-b4dd3209b29870d58f5ba60831005ccdd9ea0f79.tar.xz
go-tangerine-b4dd3209b29870d58f5ba60831005ccdd9ea0f79.tar.zst
go-tangerine-b4dd3209b29870d58f5ba60831005ccdd9ea0f79.zip
Merge pull request #2597 from fabioberger/develop
core: Simplify bloom9 tests
-rw-r--r--core/types/bloom9_test.go4
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")
}
}