Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix incorrect test

  • Loading branch information...
commit 9b3dce49a3791463c13ad62e41d37ccf851a81c3 1 parent 4ef25b6
@wch wch authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 inst/tests/test-rename.r
View
5 inst/tests/test-rename.r
@@ -28,9 +28,8 @@ test_that("Multiple names correctly changed", {
})
test_that("Empty vectors and lists", {
- rename(character(), c("c" = "f", "b" = "e", "a" = "d"))
-
- expect_equal(names(y), c("d", "e", "f"))
+ expect_identical(rename(character(), c("c" = "f"), warn_missing = FALSE), character())
+ expect_identical(rename(list(), c("c" = "f"), warn_missing = FALSE), list())
})
test_that("Renaming lists", {
Please sign in to comment.
Something went wrong with that request. Please try again.