Commit 72dceba6 authored by jbeder's avatar jbeder
Browse files

Added test

parent 5618157a
...@@ -459,7 +459,7 @@ namespace Test { ...@@ -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 { ...@@ -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 { ...@@ -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;
} }
......
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