diff --git a/inst/tests/test_parsing.R b/inst/tests/test_parsing.R index b26ffb8..092be22 100644 --- a/inst/tests/test_parsing.R +++ b/inst/tests/test_parsing.R @@ -9,4 +9,5 @@ test_that("We can parse a NeXML file to an S4 RNeXML::tree object", { doc <- xmlParse(f) root <- xmlRoot(doc) nexml <- as(root, "nexml") ## parse the XML into S4 + expect_is(nexml,"nexml") }) diff --git a/inst/tests/test_serializing.R b/inst/tests/test_serializing.R index 720dd23..ea6a9e2 100644 --- a/inst/tests/test_serializing.R +++ b/inst/tests/test_serializing.R @@ -32,6 +32,8 @@ test_that("We can serialize parsed NeXML to S4 RNeXML into valid NeXML",{ tree <- as(root, "nexml") nexml_write(tree, "test.xml") +#! change directory to something that will work across machines if possible + # results <- xmlSchemaValidate("http://www.nexml.org/2009/nexml.xsd", "test.xml") results <- xmlSchemaValidate("~/Documents/code/thirdparty/nexml/xsd/nexml.xsd", "test.xml") expect_equal(results$status, 0) diff --git a/inst/tests/test_toplevel_api.R b/inst/tests/test_toplevel_api.R index 62dbf71..81e7911 100644 --- a/inst/tests/test_toplevel_api.R +++ b/inst/tests/test_toplevel_api.R @@ -9,7 +9,9 @@ test_that("read.nexml works (to ape::phylo)", { f <- system.file("examples", "trees.xml", package="RNeXML") phy <- nexml_read(f, type="phylo") # phy <- read.nexml(f, type="phylo") - plot(phy) + layout(matrix(1:2, 1, 2), c(5, 4)) + plot(phy[[1]]) + plot(phy[[2]]) }) test_that("write.nexml works (from ape::phylo)", {