tests/testthat/test-helpers.R

context("simple helpers")

test_that("utilities for checking lists",{
  l = list(a = 5, b = 1:2)
  expect_false(is_length_all_one(l))
  l = list(a = 5, b = 1)
  expect_true(is_length_all_one(l))
})

Try the baker package in your browser

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

baker documentation built on Feb. 2, 2022, 9:06 a.m.