summaryrefslogtreecommitdiff
path: root/numpy/ma/tests
diff options
context:
space:
mode:
authorEric Firing <efiring@hawaii.edu>2012-02-18 22:06:44 -1000
committerTravis E. Oliphant <teoliphant@gmail.com>2012-02-22 19:37:46 -0600
commit4c356098a81c019eb141e444a09f6ea2a14166a2 (patch)
tree937f8f4f476e6587d46f9d733a98ab18fc91839a /numpy/ma/tests
parent0c1c499561066f0053b065830f5b4e900de590bc (diff)
downloadnumpy-4c356098a81c019eb141e444a09f6ea2a14166a2.tar.gz
ENH: add angle() function to ma
Diffstat (limited to 'numpy/ma/tests')
-rw-r--r--numpy/ma/tests/test_core.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/ma/tests/test_core.py b/numpy/ma/tests/test_core.py
index f4ec54dc4..0175c1213 100644
--- a/numpy/ma/tests/test_core.py
+++ b/numpy/ma/tests/test_core.py
@@ -811,6 +811,8 @@ class TestMaskedArrayArithmetic(TestCase):
assert_equal(np.arctan(z), arctan(zm))
assert_equal(np.arctan2(x, y), arctan2(xm, ym))
assert_equal(np.absolute(x), absolute(xm))
+ assert_equal(np.angle(x + 1j*y), angle(xm + 1j*ym))
+ assert_equal(np.angle(x + 1j*y, deg=True), angle(xm + 1j*ym, deg=True))
assert_equal(np.equal(x, y), equal(xm, ym))
assert_equal(np.not_equal(x, y), not_equal(xm, ym))
assert_equal(np.less(x, y), less(xm, ym))