Skip to content
Snippets Groups Projects
Commit 45cd50d5 authored by Reynold Xin's avatar Reynold Xin
Browse files

Updated assert == to ===.

parent c24b3819
No related branches found
No related tags found
No related merge requests found
......@@ -174,9 +174,9 @@ class RDDSuite extends FunSuite with BeforeAndAfter {
val data = sc.parallelize(1 to 10, 10)
// Note that split number starts from 0, so > 8 means only 10th partition left.
val prunedRdd = data.pruneSplits(splitNum => splitNum > 8)
assert(prunedRdd.splits.size == 1)
assert(prunedRdd.splits.size === 1)
val prunedData = prunedRdd.collect
assert(prunedData.size == 1)
assert(prunedData(0) == 10)
assert(prunedData.size === 1)
assert(prunedData(0) === 10)
}
}
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