tests/testthat/test-tidy-projections.R

x <- readRDS("untidy-projections-dal.rds")

test_that("tidy projections works", {
  df <- tidy_projections(x)

  expect_identical(nrow(df), 16L)
  expect_identical(ncol(df), 146L)
  expect_identical(colnames(df)[1:3], c("id", "player", "team"))
})
dfs-with-r/ffespn documentation built on Aug. 28, 2022, 2:21 p.m.