tests/testthat/test-cfbd_team_talent.R

cols <- c("year", "school", "talent")

test_that("CFB Team Talent", {
  skip_on_cran()
  x <- cfbd_team_talent(year = 2019)

  expect_equal(nrow(x), 231)
  expect_equal(ncol(x), 3)
  expect_equal(colnames(x), cols)
  expect_s3_class(x, "data.frame")
})
saiemgilani/cfbfastR documentation built on Sept. 14, 2024, 2:39 p.m.