Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaml-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yaml-cpp
Commits
288c7e51
Commit
288c7e51
authored
May 23, 2012
by
Jesse Beder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added seq/map gen emitter tests
parent
52813050
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
test/create-emitter-tests.py
+6
-0
test/genemittertests.h
+0
-0
No files found.
test/create-emitter-tests.py
View file @
288c7e51
...
@@ -104,6 +104,12 @@ def gen_templates():
...
@@ -104,6 +104,12 @@ def gen_templates():
[[
scalar
(
'foo'
)],
[
seq_start
(),
scalar
(
'foo'
),
seq_end
()],
[
map_start
(),
scalar
(
'foo'
),
scalar
(
'bar'
),
map_end
()]],
[[
scalar
(
'foo'
)],
[
seq_start
(),
scalar
(
'foo'
),
seq_end
()],
[
map_start
(),
scalar
(
'foo'
),
scalar
(
'bar'
),
map_end
()]],
[
map_end
()],
[
map_end
()],
[
doc_end
(
True
)]]
[
doc_end
(
True
)]]
yield
[[
doc_start
(
True
)],
[
seq_start
()],
[[
scalar
(
'foo'
)],
[
seq_start
(),
scalar
(
'foo'
),
seq_end
()],
[
map_start
(),
scalar
(
'foo'
),
scalar
(
'bar'
),
map_end
()]],
[[
scalar
(
'foo'
)],
[
seq_start
(),
scalar
(
'foo'
),
seq_end
()],
[
map_start
(),
scalar
(
'foo'
),
scalar
(
'bar'
),
map_end
()]],
[
seq_end
()],
[
doc_end
(
True
)]]
def
expand
(
template
):
def
expand
(
template
):
if
len
(
template
)
==
0
:
if
len
(
template
)
==
0
:
...
...
test/genemittertests.h
View file @
288c7e51
This diff is collapsed.
Click to expand it.
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