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))
  }
)

Try the sportyR package in your browser

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

sportyR documentation built on July 9, 2023, 5:49 p.m.