test_that("full_m works", { x <- c(10, 13, 8, 12, 6, 15, 9, 11, 10) date <- c("2023-08-01", "2023-08-02", "2023-08-03", "2023-08-04", "2023-08-05", "2023-08-06", "2023-08-07", "2023-08-08", "2023-08-09") df <- data.frame(date, x) expect_identical(full_m(df, "2023-08-03", x = "x"), 94) expect_identical(full_m(df, "2023-08-05", x = "x"), 94) expect_identical(full_m(df, "2023-08-01", x = "x"), 94) })