Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
a5607f82
Commit
a5607f82
authored
Oct 29, 2009
by
Jesse Beder
Browse files
Added test
parent
f4c683ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
test/spectests.cpp
test/spectests.cpp
+13
-5
No files found.
test/spectests.cpp
View file @
a5607f82
...
...
@@ -459,7 +459,7 @@ namespace Test {
return
true
;
}
// TODO: 2.19 - 2.22 tags
// TODO: 2.19 - 2.22
schema
tags
// 2.23
TEST
VariousExplicitTags
()
...
...
@@ -765,7 +765,16 @@ namespace Test {
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
TEST
NodePropertyIndicators
()
...
...
@@ -1060,10 +1069,9 @@ namespace Test {
" # Comment
\n
"
"
\n
"
"
\n
"
;
std
::
stringstream
stream
(
input
);
YAML
::
Parser
parser
(
stream
);
YAML_ASSERT
(
!
parser
);
PARSE
(
doc
,
input
);
YAML_ASSERT
(
doc
.
size
()
==
0
);
return
true
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment