tests/testthat/test-column_map.R

context("Column mapping for one survey")

test_that("column_map() retrieves survey column mapping", {

  vcr::use_cassette("column_map", {
    x <- column_map("SV_5BJRo2RGHajIlOB")
  })

  expect_s3_class(x, c("tbl_df","tbl","data.frame"))
  expect_named(x, c("qname", "qid", "choice", "textEntry"))
  expect_type(x$qname, "character")
  expect_type(x$qid, "character")
  expect_type(x$choice, "character")
  expect_type(x$textEntry, "character")

})

Try the qualtRics package in your browser

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

qualtRics documentation built on Nov. 18, 2022, 5:08 p.m.