Permalink
Browse files

Merge pull request #98 from wch/fix-test

Fix incorrect test
  • Loading branch information...
2 parents 4ef25b6 + 9b3dce4 commit cc34a2e9bcfa3cb56cf65815dfd106b9184799d2 @hadley committed Oct 9, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 inst/tests/test-rename.r
View
@@ -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", {

0 comments on commit cc34a2e

Please sign in to comment.