Commit 27617ec2 authored by Jesse Beder's avatar Jesse Beder
Browse files

Added parsing of output to emitter tests

parent 1f9cc2d3
......@@ -872,7 +872,16 @@ namespace Test
std::string output = out.c_str();
if(output == desiredOutput) {
passed++;
try {
std::stringstream stream(output);
YAML::Parser parser;
YAML::Node node;
parser.GetNextDocument(node);
passed++;
} catch(const YAML::Exception& e) {
std::cout << "Emitter test failed: " << name << "\n";
std::cout << "Parsing output error: " << e.what() << "\n";
}
} else {
std::cout << "Emitter test failed: " << name << "\n";
std::cout << "Output:\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment