Skip to content

Commit

Permalink
update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
MeWu-IDM committed May 14, 2024
1 parent a8ae3e2 commit e6273d3
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion pacehrh/tests/testthat/_snaps/pace_cadre_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Code
results <- pacehrh::RunExperiments(scenarioName = scenario, trials = nTrials)
Message <simpleMessage>
Message
Loading population change rates sheet PopValues
Loading seasonality curves sheet SeasonalityCurves
Loading task values sheet TV_Merged
Expand Down
4 changes: 3 additions & 1 deletion pacehrh/tests/testthat/_snaps/pace_exp_control.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

Code
results <- pacehrh::RunExperiments(scenarioName = scenario, trials = 5)
Warning <simpleWarning>
Condition
Warning:
Uninitialized variables: GPE$scenarios, BVE$seasonalityOffsets, BVE$stochasticParams, BVE$initialPopulation, BVE$populationLabels, BVE$populationRangesTable, BVE$cadreRoles
Warning in `pacehrh::RunExperiments()`:
Critical failure. RunExperiments() ended.

13 changes: 7 additions & 6 deletions pacehrh/tests/testthat/_snaps/pace_pop_rates_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

Code
popRates <- pacehrh:::loadPopulationChangeRates(sheetName = "newPopValues")
Message <simpleMessage>
Message
Loading population change rates sheet newPopValues

---

Code
popRates <- pacehrh:::loadPopulationChangeRates(sheetName = "badPopValues")
Message <simpleMessage>
Message
Loading population change rates sheet badPopValues
Out of order BandEnd values for (Fertility, F)
Incomplete BandStart/BandEnd range (0, 98) for (Mortality, F)
Expand All @@ -19,23 +19,24 @@

Code
popRates <- pacehrh:::loadPopulationChangeRates(sheetName = "badPopValues_2")
Message <simpleMessage>
Message
Loading population change rates sheet badPopValues_2
Warning <simpleWarning>
Condition
Warning:
Missing required columns in table: Type

---

Code
popRates <- pacehrh:::loadPopulationChangeRates(sheetName = "badPopValues_4")
Message <simpleMessage>
Message
Loading population change rates sheet badPopValues_4
Incomplete BandStart/BandEnd range (2, 98)

---

Code
popRates <- pacehrh:::loadPopulationChangeRates(sheetName = "badPopValues_3")
Message <simpleMessage>
Message
Loading population change rates sheet badPopValues_3

9 changes: 5 additions & 4 deletions pacehrh/tests/testthat/_snaps/pace_sanity_checks.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@

Code
pacehrh:::.checkScenarios(autoCorrect = TRUE)
Message <simpleMessage>
Message
Loading scenarios sheet Scenarios
Warning <simpleWarning>
Condition
Warning:
Columns with incorrect types in table: WeeksPerYr, HrsPerWeek
Message <simpleMessage>
Message
Failed to load scenarios info from ./bad_config/model_inputs-bad_scenarios_sheet.xlsx
Output
[1] FALSE
Expand All @@ -22,7 +23,7 @@

Code
pacehrh:::.checkScenarios(autoCorrect = TRUE)
Message <simpleMessage>
Message
Loading scenarios sheet Scenarios
Output
[1] TRUE
Expand Down
3 changes: 2 additions & 1 deletion pacehrh/tests/testthat/_snaps/pace_stochasticity_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

Code
limits <- pacehrh:::loadChangeRateLimits(changeRateLimitsSheetName = "TEST_RateLimits_2")
Warning <simpleWarning>
Condition
Warning:
Missing required columns in table: Min

0 comments on commit e6273d3

Please sign in to comment.