@@ -4047,17 +4047,22 @@ TEST_CASE("DB", "[finance]")
40474047 CHECK_THAT (120410.64 , Catch::Matchers::WithinRel (WITHIN_TYPE_CAST (tep.evaluate (" DB(1000000,100000,6,4,7)" )), WITHIN_TYPE_CAST (0.00001 )));
40484048 CHECK_THAT (81999.64 , Catch::Matchers::WithinRel (WITHIN_TYPE_CAST (tep.evaluate (" DB(1000000,100000,6,5,7)" )), WITHIN_TYPE_CAST (0.00001 )));
40494049 CHECK_THAT (55841.76 , Catch::Matchers::WithinRel (WITHIN_TYPE_CAST (tep.evaluate (" DB(1000000,100000,6,6,7)" )), WITHIN_TYPE_CAST (0.00001 )));
4050- CHECK_THAT (15845.10 , Catch::Matchers::WithinRel (WITHIN_TYPE_CAST (tep.evaluate (" DB(1000000,100000,6,7,7)" )), WITHIN_TYPE_CAST (0.00001 )));
4050+ CHECK_THAT (15845.10 , Catch::Matchers::WithinRel (WITHIN_TYPE_CAST (tep.evaluate (" DB(1000000,100000,6,7,7)" )), WITHIN_TYPE_CAST (0.00001 )));
40514051 CHECK_THAT (23632.18 , Catch::Matchers::WithinRel (WITHIN_TYPE_CAST (tep.evaluate (" DB(1000000,100000,6,7,5)" )), WITHIN_TYPE_CAST (0.00001 )));
40524052 CHECK_THAT (23632.18 , Catch::Matchers::WithinRel (WITHIN_TYPE_CAST (tep.evaluate (" DB(1000000,100000,6,7,5.9)" )), WITHIN_TYPE_CAST (0.00001 )));
40534053
4054+ CHECK_THAT (319000.00 , Catch::Matchers::WithinRel (WITHIN_TYPE_CAST (tep.evaluate (" DB(1000000,100000,6,1)" )), WITHIN_TYPE_CAST (0.00001 )));
4055+ CHECK_THAT (217239.00 , Catch::Matchers::WithinRel (WITHIN_TYPE_CAST (tep.evaluate (" DB(1000000,100000,6,2)" )), WITHIN_TYPE_CAST (0.00001 )));
4056+ CHECK_THAT (100746.98 , Catch::Matchers::WithinRel (WITHIN_TYPE_CAST (tep.evaluate (" DB(1000000,100000,6,4)" )), WITHIN_TYPE_CAST (0.00001 )));
4057+
40544058 CHECK (std::isnan (tep.evaluate (" DB(1000000,100000,6,1,0)" )));
40554059 CHECK (std::isnan (tep.evaluate (" DB(1000000,100000,6,1,13)" )));
40564060 CHECK (std::isnan (tep.evaluate (" DB(0,100000,6,1,7)" )));
40574061 CHECK (std::isnan (tep.evaluate (" DB(1000000,0,6,1,13)" )));
40584062 CHECK (std::isnan (tep.evaluate (" DB(1000000,100000,0,1,13)" )));
40594063 CHECK (std::isnan (tep.evaluate (" DB(1000000,100000,6,7.5,5)" )));
40604064 CHECK (std::isnan (tep.evaluate (" DB(1000000,100000,6.5,7,5)" )));
4065+ CHECK (std::isnan (tep.evaluate (" DB(1000000,100000,6,8)" )));
40614066 }
40624067
40634068TEST_CASE (" Benchmarks" , " [!benchmark]" )
0 commit comments