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
bc884061
Commit
bc884061
authored
May 22, 2012
by
Jesse Beder
Browse files
Fixed some newline/comma tests
parent
611d243b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/emittertests.cpp
test/emittertests.cpp
+2
-2
No files found.
test/emittertests.cpp
View file @
bc884061
...
@@ -551,7 +551,7 @@ namespace Test
...
@@ -551,7 +551,7 @@ namespace Test
out
<<
YAML
::
Key
<<
"baz"
<<
YAML
::
Value
<<
"baz value"
<<
YAML
::
Comment
(
"baz!"
);
out
<<
YAML
::
Key
<<
"baz"
<<
YAML
::
Value
<<
"baz value"
<<
YAML
::
Comment
(
"baz!"
);
out
<<
YAML
::
EndMap
;
out
<<
YAML
::
EndMap
;
desiredOutput
=
"{foo: foo value, bar: bar value, # bar!
\n
baz: baz value # baz!
\n
}"
;
desiredOutput
=
"{foo: foo value, bar: bar value, # bar!
\n
baz: baz value
,
# baz!
\n
}"
;
}
}
void
Indentation
(
YAML
::
Emitter
&
out
,
std
::
string
&
desiredOutput
)
void
Indentation
(
YAML
::
Emitter
&
out
,
std
::
string
&
desiredOutput
)
...
@@ -598,7 +598,7 @@ namespace Test
...
@@ -598,7 +598,7 @@ namespace Test
out
<<
YAML
::
EndMap
;
out
<<
YAML
::
EndMap
;
out
<<
YAML
::
EndSeq
;
out
<<
YAML
::
EndSeq
;
desiredOutput
=
"- key 1: value 1
\n
key 2: [a, b, c]
\n
-
?
[1, 2]
\n
:
\n
a: b"
;
desiredOutput
=
"- key 1: value 1
\n
key 2: [a, b, c]
\n
- [1, 2]:
\n
a: b"
;
}
}
void
Null
(
YAML
::
Emitter
&
out
,
std
::
string
&
desiredOutput
)
void
Null
(
YAML
::
Emitter
&
out
,
std
::
string
&
desiredOutput
)
...
...
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