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
cdfbac1f
Commit
cdfbac1f
authored
May 22, 2012
by
Jesse Beder
Browse files
Fixed some tests with the new compact long keys
parent
944ebb7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test/emittertests.cpp
test/emittertests.cpp
+3
-3
No files found.
test/emittertests.cpp
View file @
cdfbac1f
...
@@ -191,7 +191,7 @@ namespace Test
...
@@ -191,7 +191,7 @@ namespace Test
out
<<
YAML
::
Value
<<
"demon"
;
out
<<
YAML
::
Value
<<
"demon"
;
out
<<
YAML
::
EndMap
;
out
<<
YAML
::
EndMap
;
desiredOutput
=
"?
\n
- 1
\n
- 3
\n
: monster
\n
? [2, 0]
\n
: demon"
;
desiredOutput
=
"? - 1
\n
- 3
\n
: monster
\n
? [2, 0]
\n
: demon"
;
}
}
void
AutoLongKey
(
YAML
::
Emitter
&
out
,
std
::
string
&
desiredOutput
)
void
AutoLongKey
(
YAML
::
Emitter
&
out
,
std
::
string
&
desiredOutput
)
...
@@ -205,7 +205,7 @@ namespace Test
...
@@ -205,7 +205,7 @@ namespace Test
out
<<
YAML
::
Value
<<
"angel"
;
out
<<
YAML
::
Value
<<
"angel"
;
out
<<
YAML
::
EndMap
;
out
<<
YAML
::
EndMap
;
desiredOutput
=
"?
\n
- 1
\n
- 3
\n
: monster
\n
? [2, 0]
\n
: demon
\n
the origin: angel"
;
desiredOutput
=
"? - 1
\n
- 3
\n
: monster
\n
? [2, 0]
\n
: demon
\n
the origin: angel"
;
}
}
void
ScalarFormat
(
YAML
::
Emitter
&
out
,
std
::
string
&
desiredOutput
)
void
ScalarFormat
(
YAML
::
Emitter
&
out
,
std
::
string
&
desiredOutput
)
...
@@ -257,7 +257,7 @@ namespace Test
...
@@ -257,7 +257,7 @@ namespace Test
out
<<
"total value"
;
out
<<
"total value"
;
out
<<
YAML
::
EndMap
;
out
<<
YAML
::
EndMap
;
desiredOutput
=
"?
\n
key: value
\n
next key: next value
\n
: total value"
;
desiredOutput
=
"? key: value
\n
next key: next value
\n
: total value"
;
}
}
void
AliasAndAnchor
(
YAML
::
Emitter
&
out
,
std
::
string
&
desiredOutput
)
void
AliasAndAnchor
(
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