Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```scala
- /**
- * {{{
- * prop> import org.scalacheck.{Gen, Arbitrary}
- * prop> import org.scalacheck.Arbitrary._
- * prop> import foo.BarType
- * prop> val itemTypeGen = Gen.oneOf(BarType.values)
- * prop> implicit val barTypeArbitrary = Arbitrary(barTypeGen)
- * prop> (i: Int, t: BarType) => i > 10
- * }}}
- */
- ```
- ```scala
- [error] foo.scala:30: could not find implicit value for parameter
- a2: org.scalacheck.Arbitrary[foo.BarType]
- [error] check {
- [error] ^
- ```
- ----
- ```scala
- /**
- * {{{
- * prop> import org.scalacheck.{Gen, Arbitrary}
- * | import org.scalacheck.Arbitrary._
- * | import foo.BarType
- * | val itemTypeGen = Gen.oneOf(BarType.values)
- * | implicit val barTypeArbitrary = Arbitrary(barTypeGen)
- * | (i: Int, t: BarType) => i > 10
- * }}}
- */
- ```
- ```scala
- [info] Run completed in 3 seconds, 561 milliseconds.
- [info] Total number of tests run: 0
- [info] Suites: completed 1, aborted 0
- [info] Tests: succeeded 0, failed 0, canceled 0, ignored 0, pending 0
- [info] No tests were executed.
- [info] Passed: Total 0, Failed 0, Errors 0, Passed 0
- [success] Total time: 12 s, completed 2014/12/20 0:10:36
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement