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)
    })
  }
)

Try the pubtatordb package in your browser

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

pubtatordb documentation built on Dec. 1, 2019, 1:17 a.m.