From ac53c553ec19449f909d33427f685303f1a720bc Mon Sep 17 00:00:00 2001 From: George Dittmar Date: Mon, 8 Jun 2015 21:36:16 -0700 Subject: [PATCH] changing dense vector argmax unit test to be one line call vs 2 --- .../scala/org/apache/spark/mllib/linalg/VectorsSuite.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mllib/src/test/scala/org/apache/spark/mllib/linalg/VectorsSuite.scala b/mllib/src/test/scala/org/apache/spark/mllib/linalg/VectorsSuite.scala index eee4f69ca8ba9..0eb20d8f3f269 100644 --- a/mllib/src/test/scala/org/apache/spark/mllib/linalg/VectorsSuite.scala +++ b/mllib/src/test/scala/org/apache/spark/mllib/linalg/VectorsSuite.scala @@ -65,8 +65,7 @@ class VectorsSuite extends FunSuite { test("dense argmax"){ val vec = Vectors.dense(Array.empty[Double]).asInstanceOf[DenseVector] - val noMax = vec.argmax - assert(noMax === -1) + assert(vec.argmax === -1) val vec2 = Vectors.dense(arr).asInstanceOf[DenseVector] val max = vec2.argmax