tests/testthat/test-list.R

context("list")

test_that("list", {
  x <- list(x = 1, 2)
  expect_identical(check_list(x), x)
  expect_identical(check_list(x, values = "x"), x)
  expect_identical(check_list(x, values = list(x = 1)), x)
  
})

Try the checkr package in your browser

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

checkr documentation built on May 1, 2019, 6:59 p.m.