Skip to content
Snippets Groups Projects
Commit 79a9b86d authored by Johannes Boog's avatar Johannes Boog
Browse files

[tests] warning for empty tag.

parent 86f44907
No related branches found
No related tags found
1 merge request!43Resolve "Throw Warning when finding an empty XML tag"
......@@ -45,6 +45,12 @@ test_that("node_to_object works for simple lists", {
expect_equal(my_list, list(b = "1", b = "2"))
})
test_that("node_to_object prints warning for empty tags", {
test_node <- xml2::read_xml("<test> </test>")
expect_warning(node_to_object(test_node, xpath = "/test"))
})
test_that("order_parameters works for classes with Ellipsis argument", {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment