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)
})
flujoo/gm documentation built on July 12, 2024, 4:56 p.m.