Skip to content

Commit

Permalink
fix MapTest
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Dec 7, 2012
1 parent bfbefce commit 6cd2d2c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/src/test/scala/scalaz/std/MapTest.scala
Expand Up @@ -12,9 +12,11 @@ class MapTest extends Spec {
val O2 = SOrdering.Iterable(implicitly[SOrdering[(String,Int)]])
(kvs: List[(String,Int)], kvs2: List[(String,Int)]) => {
val (m1, m2) = (kvs.toMap, kvs2.toMap)
val l: Boolean = O.lessThan(m1, m2)
val r: Boolean = O2.lt(kvs.sortBy(_._1), kvs2.sortBy(_._1))
l == r
if((m1.size == kvs.size) && (m2.size == kvs2.size)){
val l: Boolean = O.lessThan(m1, m2)
val r: Boolean = O2.lt(kvs.sortBy(_._1), kvs2.sortBy(_._1))
l == r
} else true
}
}
}

0 comments on commit 6cd2d2c

Please sign in to comment.