Skip to content

Commit

Permalink
fix test, remove whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Feb 7, 2024
1 parent a5e6f03 commit b0fbf91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/data_modify.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
#' .at = c("Species", "new_length"),
#' .modify = as.numeric
#' )}
#'
#'
#' # combine "data_find()" and ".at" argument
#' out <- data_modify(
#' d,
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-data_tabulate.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ test_that("data_tabulate, weights", {
expect_equal(out[[1]]$N, out1$N, ignore_attr = TRUE)
# mismatch of lengths
w <- c(efc$weights, 1)
expect_error(data_tabulate(efc$e42dep, weights = w), regex = "Length of weights")
expect_error(data_tabulate(efc$e42dep, weights = w), regex = "Length of `weights`")
# correct table footer
expect_snapshot(print(data_tabulate(efc$e42dep, weights = efc$weights)))
expect_snapshot(print_md(data_tabulate(efc$e42dep, weights = efc$weights)))
Expand Down

0 comments on commit b0fbf91

Please sign in to comment.