tests/testthat/test_ttable.R

# Test for ttable function Returns: An error message if any tests
# fail

context("ttable")

test_that("output", {
  expect_equal(mode(ttable()), "numeric")
  expect_equal(dim(ttable()), c(31, 8))
  expect_equal(is.matrix(ttable()), TRUE)
})
joemckean/mathstat documentation built on May 30, 2019, 2:01 p.m.