Skip to content

Commit

Permalink
expect_named
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Dec 1, 2023
1 parent d14cc0a commit 83c25cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-xml_attr.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ test_that("qualified names returned when ns given", {
bars <- xml_children(xml_children(x))
attr <- xml_attrs(bars, ns)

expect_equal(names(attr[[1]]), "f:id")
expect_equal(names(attr[[2]]), "g:id")
expect_named(attr[[1]], "f:id")
expect_named(attr[[2]], "g:id")
})


Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-xml_serialize.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ x <- read_xml("<a>
<b><c>123</c></b>
<b><c>456</c></b>
</a>")

test_that("xml_serialize and xml_unserialize work with xml_document input", {
out <- xml_unserialize(xml_serialize(x, NULL))
expect_identical(as.character(x), as.character(out))
Expand Down

0 comments on commit 83c25cb

Please sign in to comment.