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
c1d75dd4
Commit
c1d75dd4
authored
Sep 06, 2011
by
Jesse Beder
Browse files
Added notes about the two failing tests - that they're (I think) bugs in the YAML spec
parent
dd1eb715
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/spectests.cpp
test/spectests.cpp
+2
-2
No files found.
test/spectests.cpp
View file @
c1d75dd4
...
...
@@ -2032,7 +2032,7 @@ namespace Test {
YAML_ASSERT
(
doc
.
size
()
==
3
);
YAML_ASSERT
(
doc
[
"strip"
].
to
<
std
::
string
>
()
==
"# text"
);
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
;
}
...
...
@@ -2290,7 +2290,7 @@ namespace Test {
PARSE
(
doc
,
input
);
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"
].
Tag
()
==
"!foo"
);
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