From 2bec0b43f9b2f3ad7480b3a2eb61198ccf81d479 Mon Sep 17 00:00:00 2001 From: nikosbosse Date: Sat, 18 May 2024 21:20:24 +0200 Subject: [PATCH] update test --- tests/testthat/test-score.R | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/testthat/test-score.R b/tests/testthat/test-score.R index f40f35cc4..d5b81e7ba 100644 --- a/tests/testthat/test-score.R +++ b/tests/testthat/test-score.R @@ -308,11 +308,8 @@ test_that("score() works with only one sample", { onesample <- na.omit(example_sample_continuous)[sample_id == 20] %>% as_forecast() expect_warning( - expect_warning( - scoreonesample <- score(onesample), - "Function execution failed, returning NULL. Error: need at least 2 data points." #dss - ), - "Column 'log_score' does not exist to remove" #log_score + scoreonesample <- score(onesample), + "Computation for `log_score` failed. Error: need at least 2 data points." ) # verify that all goes well with two samples