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
da118bbb
"vscode:/vscode.git/clone" did not exist on "c5fb61a95268f413a35b59848604dc663fd90fc3"
Commit
da118bbb
authored
Mar 22, 2014
by
Jesse Beder
Browse files
Add test for cloning a null node
parent
5a24459e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
test/CMakeLists.txt
test/CMakeLists.txt
+1
-1
test/node/node_test.cpp
test/node/node_test.cpp
+12
-0
No files found.
test/CMakeLists.txt
View file @
da118bbb
...
...
@@ -2,7 +2,7 @@ add_subdirectory(gtest-1.7.0)
include_directories
(
gtest-1.7.0/include
)
file
(
GLOB test_headers [a-z_]*.h
)
file
(
GLOB test_sources [a-z_]*.cpp
)
file
(
GLOB test_sources [a-z_]*.cpp
node/[a-z_]*.cpp
)
file
(
GLOB test_new_api_sources new-api/[a-z]*.cpp
)
list
(
APPEND test_sources
${
test_new_api_sources
}
)
...
...
test/node/node_test.cpp
0 → 100644
View file @
da118bbb
#include "gtest/gtest.h"
#include "yaml-cpp/node/node.h"
namespace
YAML
{
namespace
{
TEST
(
NodeTest
,
CloneNull
)
{
Node
node
;
Node
clone
=
Clone
(
node
);
EXPECT_EQ
(
NodeType
::
Null
,
clone
.
Type
());
}
}
}
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