tests/testthat/test_asktell.R

library(quizme)
library(testthat)

context("output of ask, tell gives error with numeric argument")
quizme()
test_that("ask and tell functions return error with argument",{
              expect_error(ask(5))
              expect_error(tell(5))
})
pchhina/quizme documentation built on May 30, 2019, 11:46 p.m.