tests/testthat/test-random_r.R

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


test_that("returns specified number of randoms", {

  aDataTable <- random_r(30)
  expect_equal(dim(aDataTable), c(30, 3))
})

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.