tests/testthat/test-utils.R

test_that("sample_vec takes a single sample by default", {
  expect_equal(sample_vec(1L), 1L)
  expect_equal(sample_vec(c(5L, 5L)), 5L)
})

Try the quickcheck package in your browser

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

quickcheck documentation built on Oct. 12, 2023, 1:08 a.m.