tests/testthat/test-clean_answers.R

context("Clean answers")

test_that("clean_answers works", {
  data("mc_capability_answers")
  data("mc_scenario_answers")
  cleaned <- clean_answers(capability_answers = mc_capability_answers,
                           scenario_answers = mc_scenario_answers)
  expect_is(cleaned, "list")
  expect_length(cleaned, 2)
  expect_equivalent(names(cleaned), c("capabilities", "scenarios"))
})

Try the collector package in your browser

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

collector documentation built on Feb. 22, 2020, 1:11 a.m.