tests/testthat/test-math-functions.R

test_that(
  "quadratic_formula() errors out when not given a squared term", {
    # This should error because of zero-division
    expect_error(quadratic_formula(0, 1, 2))
  }
)
sportsdataverse/sportyR documentation built on Feb. 17, 2024, 9:44 p.m.