tests/testthat/test-add.R

test_that("mapping class is preserved when adding uneval objects", {
  p <- ggplot(mtcars) + aes(wt, mpg)
  expect_identical(class(p$mapping), "uneval")
})
tidyverse/ggplot2 documentation built on May 1, 2024, 1:12 p.m.