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
36c63980
Commit
36c63980
authored
Sep 10, 2011
by
Jesse Beder
Browse files
Moved old api tests to subfolder
parent
0d1b5224
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
0 deletions
+10
-0
test/CMakeLists.txt
test/CMakeLists.txt
+5
-0
test/emittertests.cpp
test/emittertests.cpp
+5
-0
test/old-api/parsertests.cpp
test/old-api/parsertests.cpp
+0
-0
test/old-api/spectests.cpp
test/old-api/spectests.cpp
+0
-0
No files found.
test/CMakeLists.txt
View file @
36c63980
file
(
GLOB test_headers [a-z]*.h
)
file
(
GLOB test_sources [a-z]*.cpp
)
file
(
GLOB test_old_api_sources old-api/[a-z]*.cpp
)
if
(
YAML_CPP_BUILD_OLD_API
)
list
(
APPEND test_sources
${
test_old_api_sources
}
)
endif
()
add_executable
(
run-tests
${
test_sources
}
...
...
test/emittertests.cpp
View file @
36c63980
...
...
@@ -952,10 +952,15 @@ namespace Test
if
(
output
==
desiredOutput
)
{
try
{
#ifdef YAML_CPP_OLD_API
std
::
stringstream
stream
(
output
);
YAML
::
Parser
parser
;
YAML
::
Node
node
;
parser
.
GetNextDocument
(
node
);
#else
// Parse with the new API
#endif
passed
++
;
}
catch
(
const
YAML
::
Exception
&
e
)
{
std
::
cout
<<
"Emitter test failed: "
<<
name
<<
"
\n
"
;
...
...
test/parsertests.cpp
→
test/
old-api/
parsertests.cpp
View file @
36c63980
File moved
test/spectests.cpp
→
test/
old-api/
spectests.cpp
View file @
36c63980
File moved
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