tests/testthat/test-random_N.R

library(metagear)
context("Is the random_N function ok?")


test_that("returns specified number of randoms", {

  aDataTable <- random_N(30)
  expect_equal(length(aDataTable), 30)
})

Try the metagear package in your browser

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

metagear documentation built on Feb. 15, 2021, 5:09 p.m.