tests/testthat/test-SimplicialComplex.R

library(testthat)
library(SimplicialComplex)

test_that("faces works correctly", {
  simplices <- list(c(2, 1, 3), c(4, 2), c(5), c(2, 3, 5, 4))
  expect_length(faces(simplices, target_dim=0), 5)
})

Try the SimplicialComplex package in your browser

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

SimplicialComplex documentation built on Nov. 5, 2025, 7:40 p.m.