tests/testthat/test-para_index.R

context("test-para_index.R")

test_that("break_help returns a integer vector.", {
  n <- 100
  expect_equal(is.numeric(para_index(n, FUN = rpois, lambda = 10)), TRUE)
  expect_equal(is.list(para_index(n, FUN = rpois, lambda = 10)), FALSE)
})

test_that("Returns output of correct length.", {
  n <- 100
  expect_equal(sum(para_index(n, FUN = rpois, lambda = 10)), n)
})

Try the ggpage package in your browser

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

ggpage documentation built on June 14, 2019, 1:02 a.m.