summaryrefslogtreecommitdiff
path: root/numpy/lib/tests
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2009-08-25 14:13:14 +0000
committerTravis Oliphant <oliphant@enthought.com>2009-08-25 14:13:14 +0000
commit17828c6ede1982ffab11e7277c80c7f21a907a75 (patch)
treeaf7a0cf927fbdadb069a7effdc0ce77d272c13ee /numpy/lib/tests
parent5c5d5d235b0440e6db0c528a0c17c1737c4a1070 (diff)
downloadnumpy-17828c6ede1982ffab11e7277c80c7f21a907a75.tar.gz
Improve test and add a test to Python.
Diffstat (limited to 'numpy/lib/tests')
-rw-r--r--numpy/lib/tests/test_financial.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_financial.py b/numpy/lib/tests/test_financial.py
index 1ac14b561..0ad3766bf 100644
--- a/numpy/lib/tests/test_financial.py
+++ b/numpy/lib/tests/test_financial.py
@@ -38,11 +38,14 @@ class TestFinancial(TestCase):
def test_mirr(self):
v1 = [-4500,-800,800,800,600,600,800,800,700,3000]
assert_almost_equal(np.mirr(v1,0.08,0.055),
- 0.0665, 4)
+ 0.0666, 4)
v2 = [-120000,39000,30000,21000,37000,46000]
assert_almost_equal(np.mirr(v2,0.10,0.12),
0.1344, 4)
+
+ v3 = [100,200,-50,300,-200]
+ assert_almost_equal(np.mirr(v3,0.05,0.06), 0.3428, 4)
def test_unimplemented():