tests/testthat/test-plot.R

test_that("accurate plot works", {
  expect_silent(plot(FFbenvo))
  expect_silent(plot(longitudinal_HFS))
  expect_silent(plot(longitudinal_HFS,term="HFS",component="Time"))
})

test_that("inaccurate plot errors correctly",{
  expect_error(plot(FFbenvo,term = "HFS"),regexp = "Term")
  expect_error(plot(FFbenvo,component = "Time"))
})
apeterson91/rbenvo documentation built on Dec. 2, 2020, 6:17 p.m.