tests/testthat/test-cfb_calendar.R

context("CFB Calendar")

x <- cfb_calendar(year = 2019)

cols <- c("season",  "week", "season_type",
          "first_game_start", "last_game_start")

test_that("CFB Calendar", {
  expect_equal(nrow(x), 16)
  expect_equal(colnames(x), cols)
  expect_s3_class(x, "data.frame")
})
saiemgilani/cfbscrapR documentation built on April 11, 2021, 4:57 p.m.