tests/testthat/test-random_pairedN.R

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


test_that("returns specified number of randoms", {

  aDataTable <- random_pairedN(30)
  expect_equal(dim(aDataTable), c(30,2))
})

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.