From 856861c4e59c945aac844dd172fa9612623e858b Mon Sep 17 00:00:00 2001 From: Alan McIntyre Date: Tue, 22 Jul 2008 18:18:42 +0000 Subject: Added tests to improve coverage of numpy.lib. --- numpy/lib/tests/test_arraysetops.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'numpy/lib/tests/test_arraysetops.py') diff --git a/numpy/lib/tests/test_arraysetops.py b/numpy/lib/tests/test_arraysetops.py index bbfaeb1fa..37a052861 100644 --- a/numpy/lib/tests/test_arraysetops.py +++ b/numpy/lib/tests/test_arraysetops.py @@ -14,6 +14,12 @@ class TestAso(TestCase): c = unique1d( a ) assert_array_equal( c, ec ) + d, c = unique1d( a, True ) + ed = np.array( [2, 3, 0, 1] ) + + assert_array_equal( d,ed ) + assert_array_equal( c, ec ) + assert_array_equal([], unique1d([])) def test_intersect1d( self ): -- cgit v1.2.1