From b22af46c026f2b984118df9e8a8c757afe1c62fb Mon Sep 17 00:00:00 2001 From: George Dittmar Date: Tue, 9 Jun 2015 20:23:37 -0700 Subject: [PATCH] Fixing spaces between commas in unit test --- .../apache/spark/mllib/linalg/VectorsSuite.scala | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 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 be7059ceac870..837e5bcd278f3 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 @@ -80,29 +80,29 @@ class VectorsSuite extends FunSuite { } test("sparse argmax") { - val vec = Vectors.sparse(0,Array.empty[Int],Array.empty[Double]).asInstanceOf[SparseVector] + val vec = Vectors.sparse(0, Array.empty[Int], Array.empty[Double]).asInstanceOf[SparseVector] assert(vec.argmax === -1) - val vec2 = Vectors.sparse(n,indices,values).asInstanceOf[SparseVector] + val vec2 = Vectors.sparse(n, indices, values).asInstanceOf[SparseVector] assert(vec2.argmax === 3) - val vec3 = Vectors.sparse(5,Array(2, 3, 4),Array(1.0, 0.0, -.7)) + val vec3 = Vectors.sparse(5, Array(2, 3, 4), Array(1.0, 0.0, -.7)) assert(vec3.argmax === 2) // check for case that sparse vector is created with only negative values {0.0, 0.0,-1.0, -0.7, 0.0} - val vec4 = Vectors.sparse(5,Array(2, 3),Array(-1.0, -.7)) + val vec4 = Vectors.sparse(5, Array(2, 3), Array(-1.0, -.7)) assert(vec4.argmax === 0) - val vec5 = Vectors.sparse(11,Array(0, 3, 10),Array(-1.0, -.7, 0.0)) + val vec5 = Vectors.sparse(11, Array(0, 3, 10), Array(-1.0, -.7, 0.0)) assert(vec5.argmax === 1) - val vec6 = Vectors.sparse(11,Array(0, 1, 2),Array(-1.0, -.7, 0.0)) + val vec6 = Vectors.sparse(11, Array(0, 1, 2), Array(-1.0, -.7, 0.0)) assert(vec6.argmax === 2) - val vec7 = Vectors.sparse(5,Array(0, 1, 3),Array(-1.0, 0.0, -.7)) + val vec7 = Vectors.sparse(5, Array(0, 1, 3), Array(-1.0, 0.0, -.7)) assert(vec7.argmax === 1) - var vec8 = Vectors.sparse(5,Array(1, 2),Array(0.0, -1.0)) + val vec8 = Vectors.sparse(5, Array(1, 2), Array(0.0, -1.0)) assert(vec8.argmax === 0) }