[Numpy-svn] r3566 - trunk/numpy/core/tests

numpy-svn@scip... numpy-svn@scip...
Wed Feb 28 15:35:17 CST 2007


Author: stefan
Date: 2007-02-28 15:35:10 -0600 (Wed, 28 Feb 2007)
New Revision: 3566

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Regression test for changeset 3557.


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2007-02-28 20:21:39 UTC (rev 3565)
+++ trunk/numpy/core/tests/test_regression.py	2007-02-28 21:35:10 UTC (rev 3566)
@@ -616,11 +616,16 @@
     def check_mem_polymul(self, level=rlevel):
         """Ticket #448"""
         N.polymul([],[1.])
-        
+
     def check_convolve_empty(self, level=rlevel):
         """Convolve should raise an error for empty input array."""
         self.failUnlessRaises(AssertionError,N.convolve,[],[1])
         self.failUnlessRaises(AssertionError,N.convolve,[1],[])
 
+    def check_string_NULL(self, level=rlevel):
+        """Changeset 3557"""
+        assert_equal(N.array("a\x00\x0b\x0c\x00").item(),
+                     'a\x00\x0b\x0c')
+
 if __name__ == "__main__":
     NumpyTest().run()



More information about the Numpy-svn mailing list