tests/testthat/test-goalie_edge_five_versus_five.R

# Tests ---------------------------------------------------------

testthat::test_that('goalie_edge_five_versus_five() returns non-empty list', {
  testthat::skip_if_offline()
  test <- goalie_edge_five_versus_five()
  testthat::expect_true(is.list(test) && length(test) > 0)
})

# Run goalie edge five versus five tests.
testthat::test_that('goalie_edge_five_versus_five(0) returns message and empty list', {
  testthat::skip_if_offline()
  testthat::expect_message(
    test <- goalie_edge_five_versus_five(0),
    'Invalid argument\\(s\\); refer to help file\\.'
  )
  testthat::expect_true(is.list(test) && length(test) == 0)
})

Try the nhlscraper package in your browser

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

nhlscraper documentation built on June 29, 2026, 1:06 a.m.