tests/testthat/test_helpers.R

test_that("keep_units restores units", {
  x <- set_units(1:5, m)

  expect_identical(x, keep_units(drop_units, x))
})

Try the units package in your browser

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

units documentation built on May 29, 2024, 10:24 a.m.