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))
})
zhenkewu/baker documentation built on March 17, 2022, 9:54 p.m.