Skip to content

Commit

Permalink
#20 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jun 5, 2022
1 parent 47389f6 commit 021dd44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/readDCEntry.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#'
#' @examples
#' \donttest{
#' dcfile <- system.file("extdata/examples", "zenodo_dc_export.xml", package = "atom4R")
#' dcfile <- base::system.file("extdata/examples", "zenodo_dc_export.xml", package = "atom4R")
#' dc <- readDCEntry(dcfile)
#' }
#'
Expand Down
6 changes: 6 additions & 0 deletions tests/testthat/test_DCEntry.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,9 @@ test_that("decoding Zenodo Dublin core",{
length(dcentry_xml_children)
)
})

test_that("reading DC XML",{
dcfile <- base::system.file("extdata/examples", "zenodo_dc_export.xml", package = "atom4R")
dc <- readDCEntry(dcfile)
expect_is(dc, "DCEntry")
})

0 comments on commit 021dd44

Please sign in to comment.