[Scipy-svn] r4628 - branches/stats_models/tests

scipy-svn@scip... scipy-svn@scip...
Fri Aug 8 16:10:05 CDT 2008


Author: chris.burns
Date: 2008-08-08 16:10:03 -0500 (Fri, 08 Aug 2008)
New Revision: 4628

Modified:
   branches/stats_models/tests/test_bspline.py
Log:
Add a test for gram function.

Modified: branches/stats_models/tests/test_bspline.py
===================================================================
--- branches/stats_models/tests/test_bspline.py	2008-08-08 20:06:36 UTC (rev 4627)
+++ branches/stats_models/tests/test_bspline.py	2008-08-08 21:10:03 UTC (rev 4628)
@@ -15,7 +15,9 @@
         new = b._basisx.shape
         self.assertEqual((old[0], 51), new)
 
-    def test2(self):
+    # FIXME: Have no idea what this test does.  It's here to simply verify the
+    # C extension is working (in a technical sense, not functional).
+    def test_basis(self):
         b = bsp.BSpline(np.linspace(0,1,11))
 	x = np.array([0.4, 0.5])
 	v = b.basis(x, lower=0, upper=13)
@@ -34,6 +36,12 @@
                       [ 0.        ,  0.        ]])
 	assert_array_almost_equal(v, t, decimal=6)
 
+    # FIXME: Have no idea what this test does.  It's here to simply verify the
+    # C extension is working (in a technical sense, not functional).
+    def test_gram(self):
+        b = bsp.BSpline(np.linspace(0,1,11))
+        grm = b.gram()
+        assert grm.shape == (4, 13)
 
 
 if __name__ == "__main__":



More information about the Scipy-svn mailing list