repo.or.cz
/
pyyaml
/
python3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix a bug when a block scalar is incorrectly emitted in the simple key context.
[pyyaml/python3.git]
/
tests
/
data
/
construct-merge.data
blob
3fdb2e203c26db9c3d05e85a59a3043ab8260200
1
---
2
- &CENTER { x: 1, 'y': 2 }
3
- &LEFT { x: 0, 'y': 2 }
4
- &BIG { r: 10 }
5
- &SMALL { r: 1 }
6
7
# All the following maps are equal:
8
9
- # Explicit keys
10
x: 1
11
'y': 2
12
r: 10
13
label: center/big
14
15
- # Merge one map
16
<< : *CENTER
17
r: 10
18
label: center/big
19
20
- # Merge multiple maps
21
<< : [ *CENTER, *BIG ]
22
label: center/big
23
24
- # Override
25
<< : [ *BIG, *LEFT, *SMALL ]
26
x: 1
27
label: center/big