mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Added test
This commit is contained in:
@@ -459,7 +459,7 @@ namespace Test {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: 2.19 - 2.22 tags
|
// TODO: 2.19 - 2.22 schema tags
|
||||||
|
|
||||||
// 2.23
|
// 2.23
|
||||||
TEST VariousExplicitTags()
|
TEST VariousExplicitTags()
|
||||||
@@ -765,7 +765,16 @@ namespace Test {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: 5.5 comment only
|
// 5.5
|
||||||
|
TEST CommentIndicator()
|
||||||
|
{
|
||||||
|
std::string input =
|
||||||
|
"# Comment only.";
|
||||||
|
|
||||||
|
PARSE(doc, input);
|
||||||
|
YAML_ASSERT(doc.size() == 0);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// 5.6
|
// 5.6
|
||||||
TEST NodePropertyIndicators()
|
TEST NodePropertyIndicators()
|
||||||
@@ -1060,10 +1069,9 @@ namespace Test {
|
|||||||
" # Comment\n"
|
" # Comment\n"
|
||||||
" \n"
|
" \n"
|
||||||
"\n";
|
"\n";
|
||||||
std::stringstream stream(input);
|
|
||||||
YAML::Parser parser(stream);
|
|
||||||
|
|
||||||
YAML_ASSERT(!parser);
|
PARSE(doc, input);
|
||||||
|
YAML_ASSERT(doc.size() == 0);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user