mirror of https://github.com/sbt/sbt.git
Merge remote-tracking branch 'benjy/analysis_test' into 0.13
This commit is contained in:
commit
4f422ccac7
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue