tests/testthat/test-mlb_high_low_types.R

cols <- c(
  "stat_name", "stat_lookup_param", "is_counting",
  "stat_label", "stat_groups", "org_types", "high_low_types"
)

test_that("MLB Stat High/Low Types", {
  skip_on_cran()
  
  x <- mlb_high_low_types()
  
  expect_equal(colnames(x), cols)
  expect_s3_class(x, "data.frame")
})

Try the baseballr package in your browser

Any scripts or data that you put into this service are public.

baseballr documentation built on April 1, 2023, 12:12 a.m.