tests/testthat/test-print.R

context("test-print.R")

test_that("print works", {
  lapply(
    1:100, function(x){
      expect_is(random_print(), "character")
      expect_is(random_print("numeric"), "numeric")
      expect_is(random_print("integer"), "integer")
      expect_is(random_print("table"), "data.frame")
    }
  )
})

Try the shinipsum package in your browser

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

shinipsum documentation built on May 29, 2024, 2:30 a.m.