tests/testthat/test-cummean.R

test_that("cummean", {
  expect_equal(
    cummean(1:10),
    cumsum(1:10)/seq_along(1:10)
  )
})

Try the tidyfst package in your browser

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

tidyfst documentation built on Sept. 16, 2024, 9:06 a.m.