tests/testthat/test-n_pages.R

test_that("normal usage", {
  expect_equal(n_pages(count = 5, limit = 1), 5L)
  expect_equal(n_pages(count = 5, limit = 2), 3L)
  expect_equal(n_pages(count = 5, limit = 5), 1L)
  expect_equal(n_pages(count = 5, limit = 6), 1L)
})

Try the quincunx package in your browser

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

quincunx documentation built on July 9, 2023, 7:32 p.m.