tests/testthat/TestCompiledSubdir/tests/testthat/test-TestCompiledSubdir.R

test_that("compiled function simple works", {
  expect_equal(simple(1), 1)
  expect_equal(simple(2), 1)
  expect_equal(simple(3), 1)
  expect_equal(simple(-1), -1)
})
r-lib/covr documentation built on April 9, 2024, 2:14 p.m.