Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
ce056aca
Unverified
Commit
ce056aca
authored
Feb 07, 2020
by
Ted Lyngmo
Committed by
GitHub
Feb 07, 2020
Browse files
Add IsNull() check in test after reassignment (#814)
parent
9ab22ef4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
test/integration/load_node_test.cpp
test/integration/load_node_test.cpp
+1
-0
No files found.
test/integration/load_node_test.cpp
View file @
ce056aca
...
@@ -7,6 +7,7 @@ namespace {
...
@@ -7,6 +7,7 @@ namespace {
TEST
(
LoadNodeTest
,
Reassign
)
{
TEST
(
LoadNodeTest
,
Reassign
)
{
Node
node
=
Load
(
"foo"
);
Node
node
=
Load
(
"foo"
);
node
=
Node
();
node
=
Node
();
EXPECT_TRUE
(
node
.
IsNull
());
}
}
TEST
(
LoadNodeTest
,
FallbackValues
)
{
TEST
(
LoadNodeTest
,
FallbackValues
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment