[Scipy-svn] r5190 - trunk/scipy/cluster/tests

scipy-svn at scipy.org scipy-svn at scipy.org
Mon Nov 24 23:51:41 EST 2008


Author: damian.eads
Date: 2008-11-24 22:51:40 -0600 (Mon, 24 Nov 2008)
New Revision: 5190

Modified:
   trunk/scipy/cluster/tests/test_hierarchy.py
Log:
Wrote tests for scipy.hierarchy.leaves_list.

Modified: trunk/scipy/cluster/tests/test_hierarchy.py
===================================================================
--- trunk/scipy/cluster/tests/test_hierarchy.py	2008-11-25 04:49:16 UTC (rev 5189)
+++ trunk/scipy/cluster/tests/test_hierarchy.py	2008-11-25 04:51:40 UTC (rev 5190)
@@ -734,8 +734,8 @@
         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)




More information about the Scipy-svn mailing list