arbitrary[java.net.URL]?

64 views
Skip to first unread message

Kevin Meredith

unread,
Jan 6, 2016, 12:32:52 PM1/6/16
to scalacheck
I'd like to add property-based tests (using Scalacheck) with java.net.URL instances.

However, I did not find any such already existing instance:

$cat build.sbt 

libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.12.4" 

$sbt console


scala> import org.scalacheck.Arbitrary._

import org.scalacheck.Arbitrary._


scala> arbitrary[java.net.URL]

<console>:18: error: could not find implicit value for parameter a: org.scalacheck.Arbitrary[java.net.URL]

              arbitrary[java.net.URL]

                       ^


Does such an `arbtirary[java.net.URL]` instance exist? If so, please tell me how to get it.


Thanks,

Kevin

Reply all
Reply to author
Forward
0 new messages