tests/testthat/test-corn.R

testthat::test_that(
  desc = "corn",
  code = {
    testthat::expect_equal(
      object = corn(matrix(1:100, 10), 1),
      expected = matrix(c(1, 10, 91, 100), 2)
    )
  }
)

Try the toscutil package in your browser

Any scripts or data that you put into this service are public.

toscutil documentation built on June 28, 2024, 5:06 p.m.