Skip to content

Commit

Permalink
Spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdesmet committed Sep 19, 2024
1 parent f058991 commit cc27ed2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ test_that("is_url() tests whether path is URL", {
})

test_that("get_dot_names() returns the names passed via ...", {
test_fn <- function(...){
test_fn <- function(...) {
get_dot_names(...)
}
expect_identical(test_fn(a = "1", b = "2"), c("a", "b"))
})

test_that("get_dot_names() does not return empty strings for unnamed args passed
to ellipsis", {
test_fn <- function(...){
test_fn <- function(...) {
get_dot_names(...)
}
expect_identical(test_fn(a = "1", "2", b = "3", c = "4"), c("a", "b", "c"))
Expand Down

0 comments on commit cc27ed2

Please sign in to comment.