tests/testthat/test-report.R

context("define report")

test_that("repor definition", {
  method <- function(a,b){}

  myreport <- report_template(method=method)

  expect_that (class(myreport), equals("report_template"))
  expect_that (myreport$properties, equals(NULL))
  expect_that (myreport$method, equals(method))
  expect_that (myreport$description, equals(NULL))

})

Try the rLDCP package in your browser

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

rLDCP documentation built on May 2, 2019, 2:30 a.m.