Skip to content
Snippets Groups Projects
Commit c635a16f authored by lewuathe's avatar lewuathe Committed by Joseph K. Bradley
Browse files

[SPARK-10012] [ML] Missing test case for Params#arrayLengthGt

Currently there is no test case for `Params#arrayLengthGt`.

Author: lewuathe <lewuathe@me.com>

Closes #8223 from Lewuathe/SPARK-10012.
parent 1dbffba3
No related branches found
No related tags found
No related merge requests found
...@@ -199,6 +199,9 @@ class ParamsSuite extends SparkFunSuite { ...@@ -199,6 +199,9 @@ class ParamsSuite extends SparkFunSuite {
val inArray = ParamValidators.inArray[Int](Array(1, 2)) val inArray = ParamValidators.inArray[Int](Array(1, 2))
assert(inArray(1) && inArray(2) && !inArray(0)) assert(inArray(1) && inArray(2) && !inArray(0))
val arrayLengthGt = ParamValidators.arrayLengthGt[Int](2.0)
assert(arrayLengthGt(Array(0, 1, 2)) && !arrayLengthGt(Array(0, 1)))
} }
test("Params.copyValues") { test("Params.copyValues") {
......
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