tests/testthat/test-mcq.R

test_that("apostrophe works", {
  expect_equal(mcq(c("will", answer="won't", "might")),
               "<select class='webex-solveme' data-answer='[\"won&apos;t\"]'> <option></option> <option>will</option> <option>won&apos;t</option> <option>might</option></select>")
})

Try the webex package in your browser

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

webex documentation built on June 10, 2021, 9:09 a.m.