tests/testthat/test-show.R

test_that("show_shapes works", {
  # creates plot using base plotting system, so just run code --- any
  # errors / warnings will be caught.
  x <- 1:10
  expect_equal(show_shapes(x), x)
})

test_that("show_linetypes works", {
  x <- 1:5
  expect_equal(show_linetypes(x), x)
})

test_that("show_linetypes works with labels = FALSE", {
  x <- 1:5
  expect_equal(show_linetypes(x, labels = FALSE), x)
})

Try the ggthemes package in your browser

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

ggthemes documentation built on May 29, 2024, 10:37 a.m.