Skip to content

Commit

Permalink
tests: adjust test for key input in bb_data
Browse files Browse the repository at this point in the history
  • Loading branch information
m-muecke committed May 25, 2024
1 parent af9a2bc commit ecef355
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/testthat/test-api.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ test_that("bbk_data input validation works", {
expect_error(bbk_data(c("a", "b"), "abc"))
expect_error(bbk_data("a", "abc"))
expect_error(bbk_data("abcd", "abc"))
# key should be a character(1)
# key should be a character()
expect_error(bbk_data("abcde", 1L))
expect_error(bbk_data("abcde", TRUE))
expect_error(bbk_data("abcde", NULL))
expect_error(bbk_data("abcde", c("a", "b")))
# start_period should be a character(1) or NULL
expect_error(bbk_data("abcde", "abc", start_period = 1L))
expect_error(bbk_data("abcde", "abc", start_period = TRUE))
Expand Down

0 comments on commit ecef355

Please sign in to comment.