Skip to content

Commit

Permalink
Use vapply instead of sapply
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnvanhoey committed Nov 28, 2018
1 parent 26d48c6 commit 6184839
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-variable_listing.R
Expand Up @@ -19,8 +19,8 @@ test_that("works as expected", {
expect_true("ts_id" %in% colnames(ostend))

# all character data types
expect_equal(prod(sapply(overpelt, is.character)), 1)
expect_equal(prod(sapply(ostend, is.character)), 1)
expect_equal(prod(vapply(overpelt, is.character, TRUE)), 1)
expect_equal(prod(vapply(overpelt, is.character, TRUE)), 1)

expect_equal(
colnames(overpelt),
Expand Down

0 comments on commit 6184839

Please sign in to comment.