tests/testthat/test-1-duration-types.R

test_that("values of duration types are powers of 2", {
  out <- duration_types$value
  expected <- 2^(6 - 1:14)
  expect_equal(out, expected)
})

Try the gm package in your browser

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

gm documentation built on Sept. 11, 2024, 6:11 p.m.