1 # RUN: yaml-bench -canonical %s 2 3 --- 4 - &CENTER { x: 1, 'y': 2 } 5 - &LEFT { x: 0, 'y': 2 } 6 - &BIG { r: 10 } 7 - &SMALL { r: 1 } 8 9 # All the following maps are equal: 10 11 - # Explicit keys 12 x: 1 13 'y': 2 14 r: 10 15 label: center/big 16 17 - # Merge one map 18 << : *CENTER 19 r: 10 20 label: center/big 21 22 - # Merge multiple maps 23 << : [ *CENTER, *BIG ] 24 label: center/big 25 26 - # Override 27 << : [ *BIG, *LEFT, *SMALL ] 28 x: 1 29 label: center/big 30