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 May 4, 2024, 2:17 a.m.