tests/testthat/testAgePortfolio.R

context("aging of one portfolio of guaratee contracts")
library(vamc)

histFundScen <- genFundScen(fundMap, histIdxScen)

test_that("test for correctness of aging a portfolio of guarantee contracts", {
  skip_on_cran()
  tmp <- tempfile()
  expect_equal_to_reference(agePortfolio(VAPort, mortTable, histFundScen,
                                         histDates, dT = 1 / 12, "2014-01-01",
                                         cForwardCurve), tmp)
})

Try the vamc package in your browser

Any scripts or data that you put into this service are public.

vamc documentation built on Feb. 28, 2020, 5:08 p.m.