Skip to content

Commit

Permalink
🚀cran submission 0.3.3, fix gho test problem
Browse files Browse the repository at this point in the history
  • Loading branch information
pierucci committed Jul 1, 2016
1 parent a48bdfa commit a07c767
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
## Bug fixes

* fixed problem when argument to `discount()` was not defined as a parameter.
* corrected several errors in the vignettes.
* corrected several errors in the vignettes (thanks to Michael Schenkenberg from SBU, Stockholm, Sweden).
* updated mortality rate tests to reflect GHO database update.

# heemod 0.3.2

Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test_gho.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ test_that(
age = 0:99,
sex = rep(c("MLE", "FMLE"), 50),
country = "FRA",
year = 2013
year = 2015
)

expect_output(
print(head(res_latest)),
"0.00361 0.00015 0.00020 0.00015 0.00020 0.00007"
"0.00391 0.00018 0.00023 0.00018 0.00023 0.00007"
)
expect_identical(
res_latest,
Expand All @@ -28,4 +28,4 @@ test_that(
expect_error(get_who_mr(age = c(1, NA), sex = rep(c("MLE", "FMLE"), 50), country = "FRA"))
expect_error(get_who_mr(age = 0:99, sex = rep(c("MLE", "FMLE"), 50), country = "XXXX"))
expect_error(get_who_mr(age = 0:99, sex = rep(c("MLE", "FMLE"), 50), country = "FRA", year = 2050))
})
})

0 comments on commit a07c767

Please sign in to comment.