tests/testthat/test_selected_columns.r

context('selected_columns')

test_that('selected_columns returns the correct result', {
  expect_equal(autovarCore:::selected_columns(7), c(1, 2, 3))
  expect_equal(autovarCore:::selected_columns(15), c(1, 2, 3, 4))
  expect_equal(autovarCore:::selected_columns(13), c(1, 3, 4))
  expect_equal(autovarCore:::selected_columns(511), 1:9)
})

Try the autovarCore package in your browser

Any scripts or data that you put into this service are public.

autovarCore documentation built on May 2, 2019, 4:01 a.m.