This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.scalacheck.Gen._ | |
def latitudeGen[T](implicit num: Numeric[T], c: Choose[T]): Gen[T] = { | |
import num._ | |
val min = fromInt(-90) | |
val max = fromInt(90) | |
Gen.sized(n => c.choose(min, max)) | |
} | |
def longitudeGen[T](implicit num: Numeric[T], c: Choose[T]): Gen[T] = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scalaz.{ @@, Tag } | |
import org.apache.commons.lang.StringEscapeUtils | |
import org.joda.time.DateTime | |
import play.api.libs.json._ | |
trait DomRenderable | |
def RenderableString(s: String): String @@ DomRenderable = Tag[String, DomRenderable](s) |
NewerOlder