tests/testthat/test.pt_tables.R

context("pt_tables")

test_that(
  "invalid inputs produce an error",
  {
    # When there is no argument.
    expect_error({
      pt_tables()
    })

    # When db_con is a data.frame.
    expect_error({
      pt_tables(iris)
    })
  }
)
MAMC-DCI/pubtatordb documentation built on Nov. 25, 2019, 12:43 a.m.