tests/testthat/test-expect_that.R

test_that("expect_that returns the input value", {
  res <- expect_true(TRUE)
  expect_equal(res, TRUE)
})
r-lib/testthat documentation built on April 19, 2019, 7:05 p.m.