tests/testthat/test-asToplineCategoricalArray.R

context("as.ToplineCategoricalArray")
test_that("Stop condition", {
  expect_error(
    as.ToplineCategoricalArray(
      questions = list("a", "b", "c"),
      labels = c(letters[1:4])
    ),
    "Number of labels provided does not"
  )
})
Crunch-io/crunchtabs documentation built on Aug. 19, 2024, 9:23 p.m.