test_that("multipla: html", {
opts <- c(
'A primeira',
'A segunda',
resposta = 'A terceira',
'A quarta',
resposta = 'A quinta'
)
# Random id is generated by longmcq, which is called by multipla
set.seed(123)
expect_snapshot(cat(multipla(opts, output = 'html')))
})
test_that("lacuna: latex", {
opts <- c(
'A primeira',
'A segunda',
resposta = 'A terceira',
'A quarta',
resposta = 'A quinta'
)
expect_snapshot(cat(multipla(opts, output = 'latex')))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.