aboutsummaryrefslogtreecommitdiffstats
path: root/chain/bloom9_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-31 17:59:17 +0800
committerobscuren <geffobscura@gmail.com>2014-10-31 17:59:17 +0800
commit3ee0461cb5b6e4a5e2d287180afbdb681805a662 (patch)
treef245667a9e3f5f0ff23bb1c89f4f7cc783f4949c /chain/bloom9_test.go
parent8e0a39f33f9d24ebeca9cc88edf24cc6294552d7 (diff)
downloaddexon-3ee0461cb5b6e4a5e2d287180afbdb681805a662.tar
dexon-3ee0461cb5b6e4a5e2d287180afbdb681805a662.tar.gz
dexon-3ee0461cb5b6e4a5e2d287180afbdb681805a662.tar.bz2
dexon-3ee0461cb5b6e4a5e2d287180afbdb681805a662.tar.lz
dexon-3ee0461cb5b6e4a5e2d287180afbdb681805a662.tar.xz
dexon-3ee0461cb5b6e4a5e2d287180afbdb681805a662.tar.zst
dexon-3ee0461cb5b6e4a5e2d287180afbdb681805a662.zip
Moved ethchain to chain
Diffstat (limited to 'chain/bloom9_test.go')
-rw-r--r--chain/bloom9_test.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/chain/bloom9_test.go b/chain/bloom9_test.go
new file mode 100644
index 000000000..b5a269504
--- /dev/null
+++ b/chain/bloom9_test.go
@@ -0,0 +1,17 @@
+package chain
+
+import (
+ "testing"
+
+ "github.com/ethereum/go-ethereum/vm"
+)
+
+func TestBloom9(t *testing.T) {
+ testCase := []byte("testtest")
+ bin := LogsBloom([]vm.Log{vm.Log{testCase, [][]byte{[]byte("hellohello")}, nil}}).Bytes()
+ res := BloomLookup(bin, testCase)
+
+ if !res {
+ t.Errorf("Bloom lookup failed")
+ }
+}