mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Added notes about the two failing tests - that they're (I think) bugs in the YAML spec
This commit is contained in:
@@ -2032,7 +2032,7 @@ namespace Test {
|
|||||||
YAML_ASSERT(doc.size() == 3);
|
YAML_ASSERT(doc.size() == 3);
|
||||||
YAML_ASSERT(doc["strip"].to<std::string>() == "# text");
|
YAML_ASSERT(doc["strip"].to<std::string>() == "# text");
|
||||||
YAML_ASSERT(doc["clip"].to<std::string>() == "# text\n");
|
YAML_ASSERT(doc["clip"].to<std::string>() == "# text\n");
|
||||||
YAML_ASSERT(doc["keep"].to<std::string>() == "# text\n");
|
YAML_ASSERT(doc["keep"].to<std::string>() == "# text\n"); // Note: I believe this is a bug in the YAML spec - it should be "# text\n\n"
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2290,7 +2290,7 @@ namespace Test {
|
|||||||
|
|
||||||
PARSE(doc, input);
|
PARSE(doc, input);
|
||||||
YAML_ASSERT(doc.size() == 2);
|
YAML_ASSERT(doc.size() == 2);
|
||||||
YAML_ASSERT(doc["literal"].to<std::string>() == "value");
|
YAML_ASSERT(doc["literal"].to<std::string>() == "value"); // Note: I believe this is a bug in the YAML spec - it should be "value\n"
|
||||||
YAML_ASSERT(doc["folded"].to<std::string>() == "value");
|
YAML_ASSERT(doc["folded"].to<std::string>() == "value");
|
||||||
YAML_ASSERT(doc["folded"].Tag() == "!foo");
|
YAML_ASSERT(doc["folded"].Tag() == "!foo");
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user