Skip to content

Commit

Permalink
fix snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Apr 19, 2023
1 parent 59b7586 commit fd64f46
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions tests/testthat/_snaps/score.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# score() can support a sample column when a quantile forecast is
used
# score() can support a sample column when a quantile forecast is used

Code
summarise_scores(summarise_scores(scores, by = "model"), by = "model", fun = signif,
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/summarise_scores.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# summarise_scores(): metric is deprecated
# summarise_scores() metric is deprecated

Code
x <- summarise_scores(scores, by = "model", metric = "auto", relative_skill = TRUE)
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-score.R
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ test_that("function produces output for a continuous format case", {
)
})

test_that("score() can support a sample column when a quantile forecast is
used", {
test_that(
"score() can support a sample column when a quantile forecast is used", {
ex <- example_quantile[!is.na(quantile)][1:200, ]
ex <- rbind(
data.table::copy(ex)[, sample := 1],
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-summarise_scores.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ test_that("summarise_scores() can compute relative measures", {
)
})

test_that("summarise_scores(): metric is deprecated", {
test_that("summarise_scores() metric is deprecated", {
ex <- data.table::copy(example_quantile)
scores <- suppressMessages(score(ex))

Expand Down

0 comments on commit fd64f46

Please sign in to comment.