Skip to content

Commit

Permalink
fix: Lints
Browse files Browse the repository at this point in the history
  • Loading branch information
MEO265 authored Jun 6, 2024
1 parent 7f745a5 commit b12ea23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ test_that("get_lvl_name", {
expect_identical(get_lvl_name(3L), "INFO")
expect_identical(get_lvl_name(4L), "DEBUG")

expect_error(get_lvl_name(1), "is.integer(level) is not TRUE", fixed = TRUE)
expect_error(get_lvl_name(1.0), "is.integer(level) is not TRUE", fixed = TRUE)
expect_error(get_lvl_name(TRUE), "is.integer(level) is not TRUE", fixed = TRUE)

expect_error(get_lvl_name(-1L), "level >= 0L is not TRUE")
Expand All @@ -119,7 +119,7 @@ test_that("get_lvl_int", {
expect_identical(get_lvl_int("DEBUG"), 4L)

expect_error(get_lvl_int(TRUE), "is.character(level) is not TRUE", fixed = TRUE)
expect_error(get_lvl_int(1), "is.character(level) is not TRUE", fixed = TRUE)
expect_error(get_lvl_int(1.0), "is.character(level) is not TRUE", fixed = TRUE)

expect_error(get_lvl_int("INVALID"), "level %in% .* is not TRUE")
})
})

0 comments on commit b12ea23

Please sign in to comment.