Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade scalacheck and scalatest #480

Merged
merged 1 commit into from Aug 10, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -16,6 +16,8 @@ limitations under the License.

package com.twitter.algebird

import org.scalacheck.{ Gen, Arbitrary }

class VectorSpaceProperties extends CheckProperties {
import com.twitter.algebird.BaseVectorSpaceProperties._

Expand All @@ -31,6 +33,8 @@ class VectorSpaceProperties extends CheckProperties {
}
}

implicit val genDouble = Arbitrary{ Gen.choose(-1.0E50, 1.0E50) }

property("map int double scaling") {
vectorSpaceLaws[Double, ({ type x[a] = Map[Int, a] })#x](mapEqFn(_, _))
}
Expand Down
4 changes: 2 additions & 2 deletions project/Build.scala
Expand Up @@ -157,8 +157,8 @@ object AlgebirdBuild extends Build {

lazy val algebirdTest = module("test").settings(
libraryDependencies <++= (scalaVersion) { scalaVersion =>
Seq("org.scalacheck" %% "scalacheck" % "1.11.5",
"org.scalatest" %% "scalatest" % "2.2.2") ++ {
Seq("org.scalacheck" %% "scalacheck" % "1.12.4",
"org.scalatest" %% "scalatest" % "2.2.4") ++ {
if (isScala210x(scalaVersion))
Seq("org.scalamacros" %% "quasiquotes" % quasiquotesVersion)
else
Expand Down