diff options
author | pierregm <pierregm@localhost> | 2010-01-06 08:38:14 +0000 |
---|---|---|
committer | pierregm <pierregm@localhost> | 2010-01-06 08:38:14 +0000 |
commit | d24bb94187bcba39911a93aa76582e02cfef5e20 (patch) | |
tree | 9021003bbb0dd60a73a2327ff965a0931075c8e5 /numpy/ma/tests | |
parent | 4717bd039c85c36ac173dec6e772d2c5531735c7 (diff) | |
download | numpy-d24bb94187bcba39911a93aa76582e02cfef5e20.tar.gz |
* Switch the order of optional parameters in ma.argsort for compatibiity w/ np.argsort (bug #1349)
Diffstat (limited to 'numpy/ma/tests')
-rw-r--r-- | numpy/ma/tests/test_core.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/ma/tests/test_core.py b/numpy/ma/tests/test_core.py index 700f99ba2..eb01e23cc 100644 --- a/numpy/ma/tests/test_core.py +++ b/numpy/ma/tests/test_core.py @@ -2270,7 +2270,11 @@ class TestMaskedArrayMethods(TestCase): dtype=[('A', int), ('B', int)]) assert_equal(test, b) assert_equal(test.mask, b.mask) - # + + def test_argsort(self): + "Test argsort" + a = array([1, 5, 2, 4, 3], mask=[1, 0, 0, 1, 0]) + assert_equal(np.argsort(a), argsort(a)) def test_squeeze(self): |