Skip to content

Commit

Permalink
Fixing #279. (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
luksow authored Sep 13, 2024
1 parent ce3132b commit a0bbc3b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package pl.iterators.kebs.scalacheck

import org.scalacheck.Arbitrary
import org.scalacheck.rng.Seed
import org.scalacheck.{Arbitrary, Gen}

trait Generator[T] extends CommonArbitrarySupport {
def ArbT: Arbitrary[T]

def generate: T = ArbT.arbitrary.sample.get
def generate: T = ArbT.arbitrary.pureApply(Gen.Parameters.default, Seed.random())
}

trait AllGenerators[T] {
Expand Down

0 comments on commit a0bbc3b

Please sign in to comment.