tests/testthat/test-catch22_all.R

context("test-catch22_all")

data <- stats::rnorm(100)

test_that("catch22 works", {

  outs22 <- catch22_all(data, catch24 = FALSE)

  expect_equal(22,
               nrow(outs22))
})

test_that("catch24 works", {

  outs24 <- catch22_all(data, catch24 = TRUE)

  expect_equal(24,
               nrow(outs24))
})

Try the Rcatch22 package in your browser

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

Rcatch22 documentation built on June 3, 2022, 9:08 a.m.