tests/testthat/test-lags.R

context("test-lags.R")

test_that("lags produce correct number of vbls", {
  expect_equal(
    mutate(mtcars, !!!rutils::lags("gear", 5)) %>%
      ncol(),
    16
  )
})
rosseji/rutils documentation built on May 17, 2019, 11:16 p.m.