tests/testthat/test-s3-simpleUnit.R

test_that("simpleUnit", {
  expect_snapshot({
    construct(grid::unit(c(1L,1L, 1L), "cm"))
    construct_base(grid::unit(c(1L,1L, 1L), "cm"))
    construct_dput(grid::unit(c(1L,1L, 1L), "cm"))
  })
})

Try the constructive package in your browser

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

constructive documentation built on April 3, 2025, 9:39 p.m.