Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosbosse committed May 18, 2024
1 parent 12cd1aa commit 2bec0b4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/testthat/test-score.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2bec0b4

Please sign in to comment.