[Scipy-svn] r2138 - trunk/Lib/sandbox/svm/tests
scipy-svn at scipy.org
scipy-svn at scipy.org
Wed Jul 26 19:21:41 EDT 2006
Author: fullung
Date: 2006-07-26 18:21:34 -0500 (Wed, 26 Jul 2006)
New Revision: 2138
Modified:
trunk/Lib/sandbox/svm/tests/test_dataset.py
Log:
Enable tests that exposed NumPy defect.
Modified: trunk/Lib/sandbox/svm/tests/test_dataset.py
===================================================================
--- trunk/Lib/sandbox/svm/tests/test_dataset.py 2006-07-26 21:45:21 UTC (rev 2137)
+++ trunk/Lib/sandbox/svm/tests/test_dataset.py 2006-07-26 23:21:34 UTC (rev 2138)
@@ -10,8 +10,8 @@
class test_dataset(NumpyTestCase):
def check_convert_dict(self):
- #x = N.array([(-1,0.)], dtype=svm_node_dtype)
- #assert_array_equal(convert_to_svm_node({}), x)
+ x = N.array([(-1,0.)], dtype=svm_node_dtype)
+ assert_array_equal(convert_to_svm_node({}), x)
x = N.array([(1,2.),(-1,0.)], dtype=svm_node_dtype)
assert_array_equal(convert_to_svm_node({1:2.}), x)
@@ -23,8 +23,8 @@
self.assertRaises(AssertionError, convert_to_svm_node, {0:0.})
def check_convert_list(self):
- #x = N.array([(-1,0.)], dtype=svm_node_dtype)
- #assert_array_equal(convert_to_svm_node([]), x)
+ x = N.array([(-1,0.)], dtype=svm_node_dtype)
+ assert_array_equal(convert_to_svm_node([]), x)
x = N.array([(1,2.),(3,4.),(-1,0.)], dtype=svm_node_dtype)
# check that indexes are sorted
@@ -35,8 +35,8 @@
convert_to_svm_node, [(1,0.),(1,0.)])
def check_convert_array(self):
- #x = N.array([(-1,0.)], dtype=svm_node_dtype)
- #assert_array_equal(convert_to_svm_node(N.empty(0)), x)
+ x = N.array([(-1,0.)], dtype=svm_node_dtype)
+ assert_array_equal(convert_to_svm_node(N.empty(0)), x)
x = N.array([(1,1.),(2,2.),(-1,0.)], dtype=svm_node_dtype)
assert_array_equal(convert_to_svm_node(N.arange(1,3)), x)
More information about the Scipy-svn
mailing list