tests/testthat/test-utils.R

test_that("util functions", {
  x <- list(x = 1, y = 2)
  y <- list(x = 2)
  checkmate::expect_list(
    combine_named_lists(x, y, FALSE),
    len = length(x) + length(y)
  )
  checkmate::expect_list(
    combine_named_lists(x, y, TRUE),
    len = length(x)
  )
})
asiripanich/emdash documentation built on Sept. 23, 2021, 7:20 p.m.