Skip to content

Commit

Permalink
added testing method for kendall and pearson for similarit
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheong0428 committed Feb 22, 2017
1 parent 0da7cb3 commit 6331d99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nltools/tests/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ def test_adjacency(tmpdir):

# Test similarity
assert len(dat_multiple.similarity(dat_single.squareform()))==len(dat_multiple)
assert len(dat_multiple.similarity(dat_single.squareform(),metric='pearson'))==len(dat_multiple)
assert len(dat_multiple.similarity(dat_single.squareform(),metric='kendall'))==len(dat_multiple)

# Test distance
assert isinstance(dat_multiple.distance(),Adjacency)
Expand Down

0 comments on commit 6331d99

Please sign in to comment.