tests/testthat/test-get_lines_index.R

test_that("get_lines_index works", {
  expect_equal(
    {
      a <- get_lines_index()
      len(a)
    },
    3
  )
})
test_that("get_lines_as_df works", {
  expect_equal(
    {
      a <- get_lines_as_df()
      is.data.frame(a) && "base" %inn% a
    },
    true
  )
})

Try the Rapi package in your browser

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

Rapi documentation built on May 29, 2024, 2:34 a.m.