aboutsummaryrefslogtreecommitdiff
path: root/mllib/src/test/scala
diff options
context:
space:
mode:
authorXiangrui Meng <meng@databricks.com>2015-10-20 18:37:29 -0700
committerXiangrui Meng <meng@databricks.com>2015-10-20 18:37:29 -0700
commit45861693bef2619196f0fbdf5c166ad3f9b1e8d1 (patch)
tree3442d88c993526b709e30151da59a59b1beba3b7 /mllib/src/test/scala
parent89e6db6150704deab46232352d1986bc1449883b (diff)
downloadspark-45861693bef2619196f0fbdf5c166ad3f9b1e8d1.tar.gz
spark-45861693bef2619196f0fbdf5c166ad3f9b1e8d1.tar.bz2
spark-45861693bef2619196f0fbdf5c166ad3f9b1e8d1.zip
[SPARK-10082][MLLIB] minor style updates for matrix indexing after #8271
* `>=0` => `>= 0` * print `i`, `j` in the log message MechCoder Author: Xiangrui Meng <meng@databricks.com> Closes #9189 from mengxr/SPARK-10082.
Diffstat (limited to 'mllib/src/test/scala')
-rw-r--r--mllib/src/test/scala/org/apache/spark/mllib/linalg/MatricesSuite.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/mllib/src/test/scala/org/apache/spark/mllib/linalg/MatricesSuite.scala b/mllib/src/test/scala/org/apache/spark/mllib/linalg/MatricesSuite.scala
index b0071c9a02..1833cf3833 100644
--- a/mllib/src/test/scala/org/apache/spark/mllib/linalg/MatricesSuite.scala
+++ b/mllib/src/test/scala/org/apache/spark/mllib/linalg/MatricesSuite.scala
@@ -78,10 +78,10 @@ class MatricesSuite extends SparkFunSuite {
val sm = Matrices.sparse(3, 2, Array(0, 2, 3), Array(1, 2, 1), Array(0.0, 1.0, 2.0))
val dm = Matrices.dense(3, 2, Array(0.0, 2.3, 1.4, 3.2, 1.0, 9.1))
Array(sm, dm).foreach { mat =>
- intercept[IllegalArgumentException] { mat.index(4, 1) }
- intercept[IllegalArgumentException] { mat.index(1, 4) }
- intercept[IllegalArgumentException] { mat.index(-1, 2) }
- intercept[IllegalArgumentException] { mat.index(1, -2) }
+ intercept[IllegalArgumentException] { mat.index(4, 1) }
+ intercept[IllegalArgumentException] { mat.index(1, 4) }
+ intercept[IllegalArgumentException] { mat.index(-1, 2) }
+ intercept[IllegalArgumentException] { mat.index(1, -2) }
}
}