Skip to content

Commit

Permalink
metrics: fixing pairwise CloneFrom
Browse files Browse the repository at this point in the history
  • Loading branch information
Sentimentron committed Jun 18, 2019
1 parent 495bb91 commit 850c914
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion metrics/pairwise/chebyshev_test.go
Expand Up @@ -34,7 +34,7 @@ func TestChebyshev(t *testing.T) {
})

Convey("When calculating distance with different dimension matrices", func() {
vectorX.Clone(vectorX.T())
vectorX.CloneFrom(vectorX.T())
So(func() { chebyshev.Distance(vectorX, vectorY) }, ShouldPanic)
})

Expand Down
2 changes: 1 addition & 1 deletion metrics/pairwise/cranberra_test.go
Expand Up @@ -43,7 +43,7 @@ func TestCranberrra(t *testing.T) {
})

Convey("When calculating distance with different dimension matrices", func() {
vectorX.Clone(vectorX.T())
vectorX.CloneFrom(vectorX.T())
So(func() { cranberra.Distance(vectorX, vectorY) }, ShouldPanic)
})

Expand Down
2 changes: 1 addition & 1 deletion metrics/pairwise/manhattan_test.go
Expand Up @@ -43,7 +43,7 @@ func TestManhattan(t *testing.T) {
})

Convey("When calculating distance with different dimension matrices", func() {
vectorX.Clone(vectorX.T())
vectorX.CloneFrom(vectorX.T())
So(func() { manhattan.Distance(vectorX, vectorY) }, ShouldPanic)
})

Expand Down

0 comments on commit 850c914

Please sign in to comment.