Pārlūkot izejas kodu

Merge pull request #2597 from fabioberger/develop

core: Simplify bloom9 tests
Jeffrey Wilcke 9 gadi atpakaļ
vecāks
revīzija
b4dd3209b2
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      core/types/bloom9_test.go

+ 2 - 2
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")
 		}
 	}