Skip to content

Commit 100817c

Browse files
authored
Merge pull request #45 from Kai-Striega/gh_44
TEST: Add regression test for gh-44
2 parents dffb38c + 3fb001a commit 100817c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

numpy_financial/tests/test_financial.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,3 +637,8 @@ def test_gh_39(self):
637637
-38270.0, -45606.8402312253, -52943.680462450604,
638638
-60280.520693675906, -67617.36092490121])
639639
assert_almost_equal(npf.irr(cashflows), 0.12)
640+
641+
def test_gh_44(self):
642+
# "true" value as calculated by Google sheets
643+
cf = [-1678.87, 771.96, 1814.05, 3520.30, 3552.95, 3584.99, 4789.91, -1]
644+
assert_almost_equal(npf.irr(cf), 1.00426, 4)

0 commit comments

Comments
 (0)