tests/testthat/test-pow.R

test_that("pow gives expected values", {
  expect_identical(pow(5, 2), 25)
  x <- seq(0, 1, by = 0.25)
  expect_identical(pow(3, 4), 3^4)
})

Try the extras package in your browser

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

extras documentation built on April 4, 2025, 2:40 a.m.