mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 05:43:51 +01:00
fixed compiler errors
This commit is contained in:
parent
a457717eb4
commit
4345ddbb1e
@ -240,7 +240,7 @@ class GCSTest extends BitcoinSUnitTest {
|
||||
}
|
||||
|
||||
def genKey: Gen[SipHashKey] =
|
||||
Gen.listOfN(16, NumberGenerator.byte).map(ByteVector(_).map(SipHashKey(_)))
|
||||
Gen.listOfN(16, NumberGenerator.byte).map(ByteVector(_)).map(SipHashKey(_))
|
||||
|
||||
forAll(genPM, genItems, genKey) {
|
||||
case ((p, m), items, k) =>
|
||||
|
@ -12,7 +12,7 @@ class GolombFilterTest extends BitcoinSUnitTest {
|
||||
|
||||
it must "match encoded data for arbitrary GCS parameters" in {
|
||||
def genKey: Gen[SipHashKey] =
|
||||
Gen.listOfN(16, NumberGenerator.byte).map(ByteVector(_))
|
||||
Gen.listOfN(16, NumberGenerator.byte).map(ByteVector(_)).map(SipHashKey(_))
|
||||
|
||||
def genPMRand: Gen[(UInt8, UInt64, UInt64)] = NumberGenerator.genP.flatMap {
|
||||
p =>
|
||||
@ -49,7 +49,7 @@ class GolombFilterTest extends BitcoinSUnitTest {
|
||||
|
||||
it must "match arbitrary encoded data for bip 158 GCS parameters" in {
|
||||
val genKey: Gen[SipHashKey] =
|
||||
Gen.listOfN(16, NumberGenerator.byte).map(ByteVector(_))
|
||||
Gen.listOfN(16, NumberGenerator.byte).map(ByteVector(_)).map(SipHashKey(_))
|
||||
|
||||
val genData: Gen[Vector[ByteVector]] = Gen.chooseNum(1, 10000).flatMap {
|
||||
size =>
|
||||
|
Loading…
Reference in New Issue
Block a user