Skip to content

Commit

Permalink
update existing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Feb 14, 2024
1 parent 20c2115 commit 5638025
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/testthat/test-create_obs_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@ test_that("create_obs_model works with default settings", {
expect_equal(length(obs), 11)
expect_equal(names(obs), c(
"model_type", "phi_mean", "phi_sd", "week_effect", "obs_weight",
"obs_scale", "likelihood", "return_likelihood",
"day_of_week", "obs_scale_mean",
"obs_scale_sd"
"obs_scale", "obs_scale_mean",
"obs_scale_sd", "likelihood", "return_likelihood", "day_of_week"
))
expect_equal(obs$model_type, 1)
expect_equal(obs$week_effect, 7)
expect_equal(obs$obs_scale, 0)
expect_equal(obs$likelihood, 1)
expect_equal(obs$return_likelihood, 0)
expect_equal(obs$day_of_week, c(7, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7))
expect_equal(obs$obs_scale_mean, 0)
expect_equal(obs$obs_scale_mean, 1)
expect_equal(obs$obs_scale_sd, 0)
})

Expand Down

0 comments on commit 5638025

Please sign in to comment.