[Numpy-svn] r4626 - trunk/numpy/lib/tests

numpy-svn at scipy.org numpy-svn at scipy.org
Fri Dec 21 04:00:43 EST 2007


Author: stefan
Date: 2007-12-21 03:00:24 -0600 (Fri, 21 Dec 2007)
New Revision: 4626

Modified:
   trunk/numpy/lib/tests/test_arraysetops.py
Log:
Add test for setdiff1d on character arrays.


Modified: trunk/numpy/lib/tests/test_arraysetops.py
===================================================================
--- trunk/numpy/lib/tests/test_arraysetops.py	2007-12-21 08:33:02 UTC (rev 4625)
+++ trunk/numpy/lib/tests/test_arraysetops.py	2007-12-21 09:00:24 UTC (rev 4626)
@@ -145,6 +145,10 @@
 
         assert_array_equal([], setdiff1d([],[]))
 
+    def check_setdiff1d_char_array(self):
+        a = numpy.array(['a','b','c'])
+        b = numpy.array(['a','b','s'])
+        assert_array_equal(setdiff1d(a,b),numpy.array(['c']))
 
     ##
     # 03.11.2005, c




More information about the Numpy-svn mailing list