tests/testthat/test.R

context("Testing test function")
library(mypkg1)

test_that("this is stupid", {
  expect_equal(add(1, 2), 3)
  expect_equal(add(2, 3), 5)
  expect_equal(add(3, 1), 4)
})
liuyishen418/mypkg documentation built on Nov. 4, 2019, 4:35 p.m.