tests/testthat/test-football_offence.R

test_that("testing football_offence()", {
  offence_2016 <- football_offence(2016)
  expect_type (offence_2016, "list")
  expect_true(nrow(offence_2016) != 0)
})

Try the usportsR package in your browser

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

usportsR documentation built on March 16, 2026, 5:08 p.m.