tests/testthat/test-utils.R

test_that("Test for bspline function", {
  x <- c(1, 2, 3, 4)
  xl <- 1
  xr <- 4
  nseg <- 3
  bdeg <- 2

  result <- bspline(x, xl, xr, nseg, bdeg)

  expect_type(result, "list")
  expect_length(result, 2)
  expect_true(is.matrix(result[[1]]))
})

Try the VDPO package in your browser

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

VDPO documentation built on Oct. 21, 2024, 5:07 p.m.