Skip to content
Snippets Groups Projects
Commit 49bf47e1 authored by Hossein Falaki's avatar Hossein Falaki
Browse files

Removed superfluous abs call from test cases.

parent 2d511ab3
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,7 @@ class PairRDDFunctionsSuite extends FunSuite with SharedSparkContext {
val rdd1 = sc.parallelize(stacked)
val counted1 = rdd1.countDistinctByKey(relativeSD).collect()
counted1.foreach{
case(k, count) => assert(math.abs(error(count, k)) < relativeSD)
case(k, count) => assert(error(count, k) < relativeSD)
}
val rnd = new Random()
......@@ -139,7 +139,7 @@ class PairRDDFunctionsSuite extends FunSuite with SharedSparkContext {
val rdd2 = sc.parallelize(randStacked)
val counted2 = rdd2.countDistinctByKey(relativeSD, 4).collect()
counted2.foreach{
case(k, count) => assert(math.abs(error(count, k)) < relativeSD)
case(k, count) => assert(error(count, k) < relativeSD)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment