Skip to content

Commit

Permalink
Use === and the variable
Browse files Browse the repository at this point in the history
  • Loading branch information
yu-iskw committed Jul 1, 2015
1 parent 220a176 commit 11ffdf1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class KMeansSuite extends SparkFunSuite with MLlibTestSparkContext {
assert(transformed.columns === Array("features", predictionColName))
val clusters = transformed.select(predictionColName)
.map(row => row.apply(0)).distinct().collect().toSet
assert(clusters.size == 5)
assert(clusters.size === k)
assert(clusters === Set(0, 1, 2, 3, 4))
}
}

0 comments on commit 11ffdf1

Please sign in to comment.