From 17828c6ede1982ffab11e7277c80c7f21a907a75 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Tue, 25 Aug 2009 14:13:14 +0000 Subject: Improve test and add a test to Python. --- numpy/lib/tests/test_financial.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'numpy/lib') 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(): -- cgit v1.2.1