Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaml-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yaml-cpp
Commits
36c63980
Commit
36c63980
authored
Sep 10, 2011
by
Jesse Beder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved old api tests to subfolder
parent
0d1b5224
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
0 deletions
+10
-0
test/CMakeLists.txt
+5
-0
test/emittertests.cpp
+5
-0
test/old-api/parsertests.cpp
+0
-0
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