Skip to content

Commit 1ca973a

Browse files
committed
one more bucketizer test
1 parent 34f124a commit 1ca973a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mllib/src/test/scala/org/apache/spark/ml/feature/BucketizerSuite.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ class BucketizerSuite extends FunSuite with MLlibTestSparkContext {
101101
checkBinarySearch(Array(0.0, 1.0, Double.PositiveInfinity))
102102
// length 3, with -inf and inf
103103
checkBinarySearch(Array(Double.NegativeInfinity, 1.0, Double.PositiveInfinity))
104+
// length 4, with -inf and inf
105+
checkBinarySearch(Array(Double.NegativeInfinity, 0.0, 1.0, Double.PositiveInfinity))
104106
}
105107

106108
test("Binary search correctness in contrast with linear search, on random data") {

0 commit comments

Comments
 (0)