|
1 | 1 | test_that(
|
2 | 2 | desc = "results are consistent with simulated data",
|
3 | 3 | code = {
|
| 4 | + testthat::announce_snapshot_file("sim-strat-curve-params.csv") |
| 5 | + testthat::announce_snapshot_file("sim-strat-fitted_residuals.csv") |
4 | 6 | skip_on_os(c("windows", "linux"))
|
5 | 7 | withr::local_seed(1)
|
6 | 8 | strat1 <- serocalculator::typhoid_curves_nostrat_100 |>
|
@@ -48,6 +50,8 @@ test_that(
|
48 | 50 | test_that(
|
49 | 51 | desc = "results are consistent with SEES data",
|
50 | 52 | code = {
|
| 53 | + testthat::announce_snapshot_file("strat-curve-params.csv") |
| 54 | + testthat::announce_snapshot_file("strat-fitted_residuals.csv") |
51 | 55 | skip_on_os(c("windows", "linux"))
|
52 | 56 | withr::local_seed(1)
|
53 | 57 | dataset <- serodynamics::nepal_sees
|
@@ -80,6 +84,8 @@ test_that(
|
80 | 84 | test_that(
|
81 | 85 | desc = "results are consistent with unstratified SEES data",
|
82 | 86 | code = {
|
| 87 | + announce_snapshot_file("nostrat-curve-params.csv") |
| 88 | + announce_snapshot_file("nostrat-fitted_residuals.csv") |
83 | 89 | skip_on_os(c("windows", "linux"))
|
84 | 90 | withr::local_seed(1)
|
85 | 91 | dataset <- serodynamics::nepal_sees
|
@@ -113,6 +119,7 @@ test_that(
|
113 | 119 | desc = "results are consistent with unstratified SEES data with jags.post
|
114 | 120 | included",
|
115 | 121 | code = {
|
| 122 | + announce_snapshot_file("nostrat-curve-params-withpost.csv") |
116 | 123 | skip_on_os(c("windows", "linux"))
|
117 | 124 | withr::local_seed(1)
|
118 | 125 | dataset <- serodynamics::nepal_sees
|
@@ -144,6 +151,7 @@ test_that(
|
144 | 151 | desc = "results are consistent with unstratified SEES data with modified
|
145 | 152 | priors",
|
146 | 153 | code = {
|
| 154 | + announce_snapshot_file("nostrat-curve-params-specpriors.csv") |
147 | 155 | skip_on_os(c("windows", "linux"))
|
148 | 156 | withr::local_seed(1)
|
149 | 157 | dataset <- serodynamics::nepal_sees
|
|
0 commit comments