tests/testthat/test-cfb_conferences.R

context("CFB Conferences")

x <- cfb_conferences()

cols <- c("conference_id","name","long_name","abbreviation")

test_that("CFB Conferences", {
  expect_equal(nrow(x), 34)
  expect_equal(ncol(x), 4)
  expect_equal(colnames(x), cols)
  expect_error(cfb_conferences('SEC'))
  expect_s3_class(x, "data.frame")
})
meysubb/cfbscrapR documentation built on Dec. 15, 2020, 11:26 p.m.