Skip to content

Commit

Permalink
Add test case for tidyverse#2203
Browse files Browse the repository at this point in the history
Combine should work with NA and characters
  • Loading branch information
zeehio authored Oct 27, 2016
1 parent b205d1f commit 196deff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/test-combine.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ test_that("combine works with input that used to fail (#1780)", {
no <- list(alpha = letters[1:3], omega = letters[24:26])
expect_equal(combine(no), unlist(no, use.names = FALSE))
})

test_that("combine works with NA and characters (#2203)", {
works <- combine(list("a", "b", "c", NA, "e"))
expect_equal(works, c("a", "b", "c", NA, "e"))
})

0 comments on commit 196deff

Please sign in to comment.