tests/testthat/test-same-results.R

context("same results")

test_that("get same results", {
  plt1 <- ggplot(mtcars) + geom_point(aes(x = mpg, y = cyl))
  plt2 <- ggplot(mtcars) %>% geom_point(aes(x = mpg, y = cyl))
  expect_equal(plt1, plt2)
})
zeehio/ggpipe documentation built on May 29, 2019, 12:19 p.m.