tests/testthat/test-limits.R

test_that("limits() throw meaningful errors", {
  expect_snapshot_error(lims(1:2))
  expect_snapshot_error(lims(linewidth = 1))
})
tidyverse/ggplot2 documentation built on May 1, 2024, 1:12 p.m.