tests/testthat/test-02-single-function-encapsulation.R

context('exports')

tst.sum <- lrequire('single-function-encapsulation')

test_that('exposed function is callable and functions correctly', {
  expect_equal(tst.sum(1, 2), 3)
})
rickwargo/lrequire documentation built on May 27, 2019, 8:48 a.m.