tests/testthat/test_nth_prime.R

context("nth prime")

test_that("The nth prime is correct", {
  expect_equal(nth_prime(5), 11L)
  expect_equal(nth_prime(0), NA_integer_)
})
Ironholds/primes documentation built on Feb. 1, 2024, 1:26 a.m.