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")
})
hadley/ggplot2 documentation built on Sept. 8, 2024, 1:48 p.m.