tests/testthat/test_prior_clusters.R

context("Prior Clusters")

test_that("Prior Clusters", {

  dp <- DirichletProcessGaussian(rnorm(100))
  priorclusters <- PriorClusters(dp)

  expect_length(priorclusters, 2)
  expect_is(priorclusters, "list")

})
dm13450/dirichletprocess documentation built on Sept. 1, 2023, 3:47 a.m.