Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
r2ogs6
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ogs
OpenGeoSys Tools
r2ogs6
Merge requests
!43
Resolve "Throw Warning when finding an empty XML tag"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Throw Warning when finding an empty XML tag"
55-bugfix-warning_empty_xml_tag
into
master
Overview
0
Commits
3
Pipelines
0
Changes
1
Merged
Johannes Boog
requested to merge
55-bugfix-warning_empty_xml_tag
into
master
2 years ago
Overview
0
Commits
3
Pipelines
0
Changes
1
Expand
Closes
#55 (closed)
0
0
Merge request reports
Viewing commit
86f44907
Prev
Next
Show latest version
1 file
+
21
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
86f44907
[bugfix] throw warning for empty tag.
· 86f44907
Johannes Boog
authored
2 years ago
tests/testthat/test-read_in_utils.R
+
6
−
0
Options
@@ -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"
,
{
Loading