tests/testthat/test-cummean.R

test_that("cummean", {
  expect_equal(
    cummean(1:10),
    cumsum(1:10)/seq_along(1:10)
  )
})
hope-data-science/tidyfst documentation built on Sept. 23, 2024, 8:05 p.m.