diff options
author | Alan McIntyre <alan.mcintyre@local> | 2008-07-22 18:18:42 +0000 |
---|---|---|
committer | Alan McIntyre <alan.mcintyre@local> | 2008-07-22 18:18:42 +0000 |
commit | 856861c4e59c945aac844dd172fa9612623e858b (patch) | |
tree | 6a9b45a449e0a5f7e1681e3bffd19bd701910b93 /numpy/lib/tests/test_arraysetops.py | |
parent | b5e26c40f2766890b600bd8b68eb01b4ec9f902b (diff) | |
download | numpy-856861c4e59c945aac844dd172fa9612623e858b.tar.gz |
Added tests to improve coverage of numpy.lib.
Diffstat (limited to 'numpy/lib/tests/test_arraysetops.py')
-rw-r--r-- | numpy/lib/tests/test_arraysetops.py | 6 |
1 files changed, 6 insertions, 0 deletions
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 ): |