Skip to content

Commit

Permalink
lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Mar 20, 2024
1 parent d3cc977 commit d725b35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-check_residuals.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ test_that("check_residuals and simulate_residuals", {
)
# outlier_values works
expect_identical(sum(is.infinite(residuals(res, quantile_function = stats::qnorm))), 3L)
expect_identical(sum(is.infinite(residuals(res, quantile_function = stats::qnorm, outlier_values = c(-100, 100)))), 0L)
expect_error(residuals(res, quantile_function = stats::qnorm, outlier_values = 1:3), regex = "`outlier_values` must be")
expect_identical(sum(is.infinite(residuals(res, quantile_function = stats::qnorm, outlier_values = c(-100, 100)))), 0L) # nolint
expect_error(residuals(res, quantile_function = stats::qnorm, outlier_values = 1:3), regex = "`outlier_values` must be") # nolint

# check_residuals
out <- check_residuals(res)
Expand Down

0 comments on commit d725b35

Please sign in to comment.