tests/testthat/test-paper_shape.R

context("test-paper_shape.R")

test_that("The number of rows and cols are correct", {
  expect_equal(NROW(paper_shape(ggpage_build(tinderbox))), 9)
  expect_equal(names(paper_shape(ggpage_build(tinderbox))),
               c("page", "xmin", "xmax", "ymin", "ymax"))
})

Try the ggpage package in your browser

Any scripts or data that you put into this service are public.

ggpage documentation built on June 14, 2019, 1:02 a.m.