Skip to content

Commit

Permalink
Wrote tests for scipy.hierarchy.leaves_list.
Browse files Browse the repository at this point in the history
  • Loading branch information
damian.eads committed Nov 25, 2008
1 parent 84f8551 commit 7efa96a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scipy/cluster/tests/test_hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,8 +734,8 @@ def test_leaves_list_1x4(self):
node = to_tree(Z)
self.failUnless((leaves_list(Z) == [0, 1]).all())

def test_leaves_list_1x4(self):
"Tests leaves_list(Z) on a 1x4 linkage."
def test_leaves_list_2x4(self):
"Tests leaves_list(Z) on a 2x4 linkage."
Z = np.asarray([[0, 1, 3.0, 2],
[3, 2, 4.0, 3]], dtype=np.double)
node = to_tree(Z)
Expand Down

0 comments on commit 7efa96a

Please sign in to comment.