tests/testthat/test-input_checkers_arma_spec.R

test_that("ARMA / FARIMA orders are correctly specified", {
  expect_false(order_checker_arma(c(1, 1)))
  expect_false(order_checker_arma(c(2, 1)))
  expect_false(order_checker_arma(c(1, 2)))
  expect_false(order_checker_arma(c(0, 0)))
  expect_false(order_checker_arma(c(0, 1)))
  expect_false(order_checker_arma(c(1, 0)))
  expect_false(!order_checker_arma(c(1)))
  expect_false(!order_checker_arma(c(1, 0, 1)))
  expect_false(!order_checker_arma(numeric(0)))
})

Try the fEGarch package in your browser

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

fEGarch documentation built on Sept. 11, 2025, 5:11 p.m.