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
f9ff72de
Commit
f9ff72de
authored
Jan 24, 2015
by
Jesse Beder
Browse files
Add test for an empty string not being null
parent
1025f76d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
test/integration/load_node_test.cpp
test/integration/load_node_test.cpp
+5
-0
No files found.
test/integration/load_node_test.cpp
View file @
f9ff72de
...
@@ -171,6 +171,11 @@ TEST(LoadNodeTest, ResetNode) {
...
@@ -171,6 +171,11 @@ TEST(LoadNodeTest, ResetNode) {
EXPECT_EQ
(
node
,
other
);
EXPECT_EQ
(
node
,
other
);
}
}
TEST
(
LoadNodeTest
,
EmptyString
)
{
Node
node
=
Load
(
"
\"\"
"
);
EXPECT_TRUE
(
!
node
.
IsNull
());
}
TEST
(
LoadNodeTest
,
DereferenceIteratorError
)
{
TEST
(
LoadNodeTest
,
DereferenceIteratorError
)
{
Node
node
=
Load
(
"[{a: b}, 1, 2]"
);
Node
node
=
Load
(
"[{a: b}, 1, 2]"
);
EXPECT_THROW
(
node
.
begin
()
->
first
.
as
<
int
>
(),
InvalidNode
);
EXPECT_THROW
(
node
.
begin
()
->
first
.
as
<
int
>
(),
InvalidNode
);
...
...
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