tests/testthat/example3/grade_hw3.R

context("All tests for HW3")


test_that("test multiple assertions within one test", {
  # make sure calcGrades iterates over all assertions/checks              
  expect_equal(1, 1)
  expect_equal(1,2)
})

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.