From 954208b56df9bbf8cefb02e16bbc372221f92bb1 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Mon, 9 Apr 2012 11:26:35 +0000 Subject: [PATCH] Unit test data git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@89019 2327b42d-5241-43d6-9e2a-de5ac946f064 --- unitTests/rawTestData/Calculation/Financial/EFFECT.data | 6 ++++++ unitTests/rawTestData/Calculation/Financial/FV.data | 9 +++++++++ .../rawTestData/Calculation/Financial/FVSCHEDULE.data | 4 ++++ unitTests/rawTestData/Calculation/Financial/INTRATE.data | 6 ++++++ unitTests/rawTestData/Calculation/Financial/IPMT.data | 9 +++++++++ unitTests/rawTestData/Calculation/Financial/IRR.data | 6 ++++++ unitTests/rawTestData/Calculation/Financial/ISPMT.data | 5 +++++ 7 files changed, 45 insertions(+) create mode 100644 unitTests/rawTestData/Calculation/Financial/EFFECT.data create mode 100644 unitTests/rawTestData/Calculation/Financial/FV.data create mode 100644 unitTests/rawTestData/Calculation/Financial/FVSCHEDULE.data create mode 100644 unitTests/rawTestData/Calculation/Financial/INTRATE.data create mode 100644 unitTests/rawTestData/Calculation/Financial/IPMT.data create mode 100644 unitTests/rawTestData/Calculation/Financial/IRR.data create mode 100644 unitTests/rawTestData/Calculation/Financial/ISPMT.data diff --git a/unitTests/rawTestData/Calculation/Financial/EFFECT.data b/unitTests/rawTestData/Calculation/Financial/EFFECT.data new file mode 100644 index 0000000..1969a9d --- /dev/null +++ b/unitTests/rawTestData/Calculation/Financial/EFFECT.data @@ -0,0 +1,6 @@ +#nominal_rate npery Result +0.0525, 4, 0.053542667370758 +0.10, 4, 0.103812890625 +0.10, 2, 0.1025 +0.025, 2, 0.02515625 +1, 0, "#NUM!" diff --git a/unitTests/rawTestData/Calculation/Financial/FV.data b/unitTests/rawTestData/Calculation/Financial/FV.data new file mode 100644 index 0000000..3687cf8 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Financial/FV.data @@ -0,0 +1,9 @@ +#rate nper pmt pv type Result +0.005, 10, -200, -500, 1, 2581.4033740601 +0.01, 12, -1000, 12682.503013197 +0.009166666667, 35, -2000, , 1, 82846.246372418 +0.005, 12, -100, -1000, 1, 2301.4018303409 +0.004166666667, 60, -1000, 68006.082841536 +0.025, 16, -2000, 0, 1, 39729.460894166 +0.1, 12, -100, 0, 2, "#NUM!" +0.0, 12, -100, -100, 1300 diff --git a/unitTests/rawTestData/Calculation/Financial/FVSCHEDULE.data b/unitTests/rawTestData/Calculation/Financial/FVSCHEDULE.data new file mode 100644 index 0000000..98a7bc1 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Financial/FVSCHEDULE.data @@ -0,0 +1,4 @@ +#principal schedule Result +1, {0.09|0.11|0.1}, 1.33089 +10, {0.09;0.11;0.1}, 13.3089 +10000, {0.05|0.05|0.035|0.035|0.035}, 12223.614571875 diff --git a/unitTests/rawTestData/Calculation/Financial/INTRATE.data b/unitTests/rawTestData/Calculation/Financial/INTRATE.data new file mode 100644 index 0000000..dad8035 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Financial/INTRATE.data @@ -0,0 +1,6 @@ +#Settlement Maturity Investment Redemption Basis Result +"2008-02-15", "2008-05-15", 1000000, 1014420, 2, 0.05768 +"2005-04-01", "2010-03-31", 1000, 2125, 0.225 +"2008-02-15", "2008-05-15", 1000000, 1014420, "ABC", "#VALUE!" +"2008-02-15", "2008-05-15", 1000000, -1014420, 2, "#NUM!" +"Invalid Date", "2008-05-15", 1000000, 1014420, 2, "#VALUE!" diff --git a/unitTests/rawTestData/Calculation/Financial/IPMT.data b/unitTests/rawTestData/Calculation/Financial/IPMT.data new file mode 100644 index 0000000..777108d --- /dev/null +++ b/unitTests/rawTestData/Calculation/Financial/IPMT.data @@ -0,0 +1,9 @@ +#rate per nper pv fv type Result +0.008333333333, 3, 3, 8000, -22.406893015021 +0.10, 3, 3, 8000, -292.44712990937 +0.004166666667, 1, 60, 50000, -208.33333335 +0.004166666667, 2, 60, 50000, -205.26988189617 +0.00875, 1, 8, 10000, 5000, 1, 0.00 +0.00875, 2, 8, 10000, 5000, 1, -70.968650395559 +0.005, 2, 8, 2500, 200, 6, "#NUM!" +0.005, 8, 2, 2500, 200, 1, "#VALUE!" diff --git a/unitTests/rawTestData/Calculation/Financial/IRR.data b/unitTests/rawTestData/Calculation/Financial/IRR.data new file mode 100644 index 0000000..f032f78 --- /dev/null +++ b/unitTests/rawTestData/Calculation/Financial/IRR.data @@ -0,0 +1,6 @@ +#values guess Result +{-70000;12000;15000;18000;21000}, -0.021244848273410 +{-70000;12000;15000;18000;21000;26000}, 0.08663094803652 +{-70000;12000;15000;18000}, 0.10, -0.18213746414550 +{-100;20|24|28.80}, -0.13618951095869 +{-100;20|24|28.80|34.56|41.47}, 0.130575756371527 diff --git a/unitTests/rawTestData/Calculation/Financial/ISPMT.data b/unitTests/rawTestData/Calculation/Financial/ISPMT.data new file mode 100644 index 0000000..60cf73f --- /dev/null +++ b/unitTests/rawTestData/Calculation/Financial/ISPMT.data @@ -0,0 +1,5 @@ +#rate per nper pv result +0.008333333333, 1, 36, 8000000, -64814.814812222 +0.10, 1, 3, 8000000, -533333.33333333 +0.004166666667, 1, 60, 50000, -204.8611111275 +0.004166666667, 2, 60, 50000, -201.388888905