Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosbosse committed Oct 30, 2024
1 parent 36a0040 commit cf10925
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/test-get-forecast-type.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ test_that("get_forecast_type() works as expected", {
get_forecast_type(test),
"Input is not a valid forecast object",
)

# get_forecast_type() should still work even if a new class is added
testclassobject <- data.table::copy(example_quantile)
class(testclassobject) <- c("something", class(testclassobject))
expect_equal(get_forecast_type(testclassobject), "quantile")
})


Expand Down

0 comments on commit cf10925

Please sign in to comment.