#include "../Test.h"
class InsuranceTestCase : public Test
{
bool TestCompoundingFactor() {
return true;
}
bool TestDiscountFactor() {
return true;
}
bool TestFundamentalValue() {
return true;
}
bool TestEndValue() {
AssertEqual(
endValue(I), 339.3020835144872);
return true;
}
bool TestTermInPeriods() {
AssertEqual(
termInPeriods(I), 39.516530635771536208682805631274488204856495225826522986578631731);
return true;
}
bool TestFundamentalValueOfAnnuityInAdvance() {
AssertEqual(
return true;
}
bool TestEndValueOfAnnuityInAdvance() {
return true;
}
bool TestFundamentalValueOfAnnuityToArrear() {
AssertEqual(
16.617546229521001060987090374449369646209729037604785415373184899351288068383264304267210888801306835712115089689784848248668120);
return true;
}
bool TestEndValueOfAnnuityInArrear() {
return true;
}
public:
virtual void run() {
TestCompoundingFactor();
TestDiscountFactor();
TestFundamentalValue();
TestEndValue();
TestTermInPeriods();
TestFundamentalValueOfAnnuityInAdvance();
TestEndValueOfAnnuityInAdvance();
TestFundamentalValueOfAnnuityToArrear();
TestEndValueOfAnnuityInArrear();
}
};
int main() {
InsuranceTestCase().run();
return 0;
}
double compoundingFactor(double i)
double endValueOfAnnuityInArrear(Interest I)
double fundamentalValueOfAnnuityInAdvance(Interest I)
double fundamentalValue(Interest I)
double discountFactor(double i)
double fundamentalValueOfAnnuityInArrear(Interest I)
double termInPeriods(Interest I)
double endValueOfAnnuityInAdvance(Interest I)
double endValue(Interest I)
Definition: Insurance.h:13