File: test-error.R

package info (click to toggle)
r-cran-ggplot2 3.5.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 9,944 kB
  • sloc: sh: 15; makefile: 5
file content (12 lines) | stat: -rw-r--r-- 212 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
test_that("various misuses of +.gg (#2638)", {
  expect_snapshot_error(
    {
      ggplot(mtcars, aes(hwy, displ))
      + geom_point()
    }
  )

  expect_snapshot_error(
    geom_point() + geom_point()
  )
})