Skip to content

Commit

Permalink
Add test for cfr_rolling vs cfr_time_varying returns
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikunterwegs committed Nov 1, 2023
1 parent af1ed4f commit 01f33e0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/testthat/test-estimate_time_varying.R
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,11 @@ test_that("Time-varying CFR with smoothing and burn in", {
burn_in
)
})

# Expect that return type is the same as cfr_rolling
test_that("cfr_rolling and cfr_time_varying have similar returns", {
expect_identical(
colnames(cfr_time_varying(covid_uk)),
colnames(cfr_rolling(covid_uk))
)
})

0 comments on commit 01f33e0

Please sign in to comment.