tests/testthat/example2/grade_hw2.R

context("All tests for HW2")


test_that("testing c", {
  expect_equal(c, "correct_answer!" )
})

test_that("testing d", {
  expect_equal(d, 2)
})

test_that("testing e", {
  expect_equal(e,100)
})

Try the gradeR package in your browser

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

gradeR documentation built on Sept. 5, 2021, 5:26 p.m.