From 563802545119e5fc29c2f3a8d9cab7089bbff213 Mon Sep 17 00:00:00 2001 From: Sebastian Funk Date: Wed, 14 Feb 2024 15:59:18 +0000 Subject: [PATCH] update existing tests --- tests/testthat/test-create_obs_model.R | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/testthat/test-create_obs_model.R b/tests/testthat/test-create_obs_model.R index 659ecda6c..dc052a088 100644 --- a/tests/testthat/test-create_obs_model.R +++ b/tests/testthat/test-create_obs_model.R @@ -6,9 +6,8 @@ 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) @@ -16,7 +15,7 @@ test_that("create_obs_model works with default settings", { 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) })