tests/testthat/test-nlist.R

context("nlist")

test_that("'nlist' is a named list", {
  expect_true(is.nlist(nlist()) && 
                is.nlist(nlist(x = 1, y = c(2,3))) && 
                is.nlist(as.nlist(list(x = 1, y = c(2,3)))))
})

Try the bazar package in your browser

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

bazar documentation built on May 2, 2019, 7:02 a.m.