tests/testthat/test-initialization.R

context("test-initialization")

test_that("initialization works", {
  init <- initialization(10, 100)
  expect_length(init, 100)
  expect_vector(init)
  expect_true(is.factor(init))
  expect_equal(levels(init), levels(factor(1:10)))
})

Try the glmtree package in your browser

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

glmtree documentation built on May 29, 2024, 9:37 a.m.