fixed compiler errors

This commit is contained in:
cwaldron97 2019-06-24 15:50:51 -05:00
parent a457717eb4
commit 4345ddbb1e
2 changed files with 3 additions and 3 deletions

View File

@ -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) =>

View File

@ -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 =>