diff options
author | obscuren <geffobscura@gmail.com> | 2014-10-31 17:59:17 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-10-31 17:59:17 +0800 |
commit | 3ee0461cb5b6e4a5e2d287180afbdb681805a662 (patch) | |
tree | f245667a9e3f5f0ff23bb1c89f4f7cc783f4949c /ethchain/bloom_test.go | |
parent | 8e0a39f33f9d24ebeca9cc88edf24cc6294552d7 (diff) | |
download | go-tangerine-3ee0461cb5b6e4a5e2d287180afbdb681805a662.tar go-tangerine-3ee0461cb5b6e4a5e2d287180afbdb681805a662.tar.gz go-tangerine-3ee0461cb5b6e4a5e2d287180afbdb681805a662.tar.bz2 go-tangerine-3ee0461cb5b6e4a5e2d287180afbdb681805a662.tar.lz go-tangerine-3ee0461cb5b6e4a5e2d287180afbdb681805a662.tar.xz go-tangerine-3ee0461cb5b6e4a5e2d287180afbdb681805a662.tar.zst go-tangerine-3ee0461cb5b6e4a5e2d287180afbdb681805a662.zip |
Moved ethchain to chain
Diffstat (limited to 'ethchain/bloom_test.go')
-rw-r--r-- | ethchain/bloom_test.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/ethchain/bloom_test.go b/ethchain/bloom_test.go deleted file mode 100644 index ea53d539c..000000000 --- a/ethchain/bloom_test.go +++ /dev/null @@ -1,20 +0,0 @@ -package ethchain - -import "testing" - -func TestBloomFilter(t *testing.T) { - bf := NewBloomFilter(nil) - - a := []byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 0} - bf.Set(a) - - b := []byte{10, 11, 12, 13, 14, 15, 16, 17, 18, 19} - - if bf.Search(a) == false { - t.Error("Expected 'a' to yield true using a bloom filter") - } - - if bf.Search(b) { - t.Error("Expected 'b' not to field trie using a bloom filter") - } -} |