tests/testthat/test_serialization_lib.R

context("serialization-lib XML export")
testthat::test_that("test xml can be exported", {
  xml.polyhedron <- polyhedronToXML(
    getPolyhedron("netlib", "tetrahedron")$getState()
  )
  testthat::expect_equal(
    as.numeric(nchar(XML::getChildrenStrings(xml.polyhedron))), 408
  )
})

Try the Rpolyhedra package in your browser

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

Rpolyhedra documentation built on Oct. 1, 2022, 5:06 p.m.