inst/extdata/example_task1.R

### Assignment : task1 ###

context("task1")

test_that("Marking of task 1", {
  expect_true(exists("task1"), info = "task1() does not exist.")
  expect_is(task1, "numeric", info = "task1 is not return a numeric value")
  expect_equal(task1, c(pi, exp(1)), info = "task1 contains erroneous values")
})

Try the markmyassignment package in your browser

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

markmyassignment documentation built on Sept. 5, 2021, 5:42 p.m.