mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Moved old api tests to subfolder
This commit is contained in:
@@ -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";
|
||||
|
Reference in New Issue
Block a user