Skip to content

Commit 20ff52e

Browse files
committed
Add tests for recent changes to Fv & Pmt
For #67
1 parent 74675ed commit 20ff52e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/ExcelFinancialFunctions.Tests/spottests.fs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ module SpotTests =
1818
let Readme2() =
1919
Financial.Pmt (0.005, 180., 200000., 0., PaymentDue.EndOfPeriod)
2020

21+
[<Test(ExpectedResult = 0.)>]
22+
let FvPull67() =
23+
Financial.Fv (0.005, 180., 0., 0., PaymentDue.EndOfPeriod)
24+
25+
[<Test(ExpectedResult = 0.)>]
26+
let PmtPull67() =
27+
Financial.Pmt (0.005, 180., 0., 0., PaymentDue.EndOfPeriod)
28+
2129
[<Test>]
2230
let YieldIssue8() =
2331
let param = DateTime(2015,9,21), DateTime(2015,10,15), 0.04625, 105.124, 100. , Frequency.SemiAnnual, DayCountBasis.UsPsa30_360

0 commit comments

Comments
 (0)