# test_ISOGeometricObjects.R # Author: Emmanuel Blondel # # Description: Unit tests for ISOGeometricObjects.R #======================= require(geometa, quietly = TRUE) require(testthat) context("ISOGeometricObjects") test_that("encoding",{ testthat::skip_on_cran() #encoding md <- ISOGeometricObjects$new() md$setGeometricObjectType("surface") md$setGeometricObjectCount(5L) xml <- md$encode() expect_is(xml, "XMLInternalNode") #decoding md2 <- ISOGeometricObjects$new(xml = xml) xml2 <- md2$encode() expect_true(ISOAbstractObject$compare(md, md2)) })