Skip to content

Commit

Permalink
changing dense vector argmax unit test to be one line call vs 2
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeDittmar committed Jun 9, 2015
1 parent d5b5423 commit ac53c55
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac53c55

Please sign in to comment.