dwww Home | Show directory contents | Find package

test_that("error is thrown with wrong quantile input", {
  # Stat errors are converted to warnings
  p <- ggplot(mtcars, aes(sample = mpg)) + stat_qq(quantiles = 1:5)
  expect_snapshot_warning(ggplot_build(p))

  p <- ggplot(mtcars, aes(sample = mpg)) + geom_qq_line(quantiles = 1:5)
  expect_snapshot_warning(ggplot_build(p))

  p <- ggplot(mtcars, aes(sample = mpg)) + geom_qq_line(line.p = 0.15)
  expect_snapshot_warning(ggplot_build(p))
})

Generated by dwww version 1.15 on Sat May 18 09:48:31 CEST 2024.