Skip to content

Commit

Permalink
Create test-get_xml_doc_example.R
Browse files Browse the repository at this point in the history
  • Loading branch information
GinerM committed Jun 20, 2023
1 parent 979ec61 commit ae961ec
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/testthat/test-get_xml_doc_example.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
library(SticsRFiles)

stics_version <- get_stics_versions_compat()$latest_version
version_num <- SticsRFiles:::get_version_num()

context("get example doc")
usm_doc <- SticsRFiles:::get_xml_doc_example("usms.xml")

test_that("get example doc", {
expect_equal(usm_doc@name,"usms.xml")
})

#usm_doc <- SticsRFiles:::get_xml_doc_example("usm.xml")

test_that("get example doc", {
expect_error(SticsRFiles:::get_xml_doc_example("usm.xml"))
})

0 comments on commit ae961ec

Please sign in to comment.