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
  )
})
ropensci/Rpolyhedra documentation built on Oct. 7, 2022, 6:56 p.m.