Merge remote-tracking branch 'benjy/analysis_test' into 0.13

This commit is contained in:
Mark Harrah 2013-10-17 15:17:57 -04:00
commit 4f422ccac7
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ object RelationTest extends Properties("Relation")
}
property("Groups correctly") = forAll { (entries: List[(Int, Double)], randomInt: Int) =>
val splitInto = randomInt % 10 + 1 // Split into 1-10 groups.
val splitInto = math.abs(randomInt) % 10 + 1 // Split into 1-10 groups.
val rel = Relation.empty[Int, Double] ++ entries
val grouped = rel groupBy (_._1 % splitInto)
all(grouped.toSeq) {