tests/testthat/test-plot_blended.R

test_that("plot_blended works", {
  expect_type(plot_blended(c(1,2), c(1,2)), 'list')
  expect_s3_class(plot_blended(c(1,2), c(1,2)), 'gg')
  expect_s3_class(plot_blended(c(1,2), c(1,2)), 'ggplot')

  expect_error(plot_blended(c(1,2), c(1)))

})
jkennel/sokol documentation built on Dec. 21, 2021, 12:11 a.m.