dwww Home | Show directory contents | Find package

test_that("width_cm and height_cm work with unit arithmetic", {
  x <- 2 * unit(1, "cm")

  expect_equal(width_cm(x), 2)
  expect_equal(height_cm(x), 2)
})

Generated by dwww version 1.15 on Sat Jun 15 21:32:20 CEST 2024.