tests/testthat/test-hello.R

context("Related functions")
test_that("absolute_value1() works", {
  expect_equal(absolute_value1(-1), 2)
})

context("Related functions")
test_that("plus_one() works", {
  expect_equal(plus_one(-1), 0)
})
hariniramp/DATA-598-WI20-week7 documentation built on March 7, 2020, 11:22 p.m.