File: test-position-collide.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 (6 lines) | stat: -rw-r--r-- 246 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
test_that("collide() checks the input data", {
  data <- data.frame(x = 1:4, group = 1L)
  expect_snapshot_error(collide(data, width = 1, 'test', pos_stack))
  data$y <- 1
  expect_snapshot_warning(collide(data, width = 2, 'test', pos_stack))
})