2 test: Simple In Place Substitution
4 If you want to reuse an entire alias, only overwriting what is different
5 you can use a << in place substitution. This is not part of the official
6 YAML spec, but a widely implemented extension. See the following URL for
7 details: http://yaml.org/type/merge.html
24 bar_inline: {a: before, d: other, <<: *foo, b: new, x: Oren, c: { foo: bar, bar: foo}}
27 ding: &dong [ fi, fei, fo, fam]
34 <<: [ *foo , *dong , *foo2 ]
46 head_inline: &head_inline { <<: [ *foo , *dong , *foo2 ] }
47 recursive_inline: { <<: *head_inline, c: { <<: *foo2 } }
50 'foo' => array('a' => 'Steve', 'b' => 'Clark', 'c' => 'Brian', 'e' => 'notnull'),
51 'bar' => array('a' => 'before', 'd' => 'other', 'e' => null, 'b' => 'new', 'c' => array('foo' => 'bar', 'bar' => 'foo'), 'x' => 'Oren'),
52 'bar_inline' => array('a' => 'before', 'd' => 'other', 'b' => 'new', 'c' => array('foo' => 'bar', 'bar' => 'foo'), 'e' => 'notnull', 'x' => 'Oren'),
53 'foo2' => array('a' => 'Ballmer'),
54 'ding' => array('fi', 'fei', 'fo', 'fam'),
55 'check' => array('a' => 'Steve', 'b' => 'Clark', 'c' => 'Brian', 'e' => 'notnull', 'fi', 'fei', 'fo', 'fam', 'isit' => 'tested'),
56 'head' => array('a' => 'Steve', 'b' => 'Clark', 'c' => 'Brian', 'e' => 'notnull', 'fi', 'fei', 'fo', 'fam'),
57 'taz' => array('a' => 'Steve', 'w' => array('p' => 1234)),
58 'nested' => array('a' => 'Steve', 'w' => array('p' => 12345), 'd' => 'Doug', 'z' => array('p' => 12345)),
59 'head_inline' => array('a' => 'Steve', 'b' => 'Clark', 'c' => 'Brian', 'e' => 'notnull', 'fi', 'fei', 'fo', 'fam'),
60 'recursive_inline' => array('a' => 'Steve', 'b' => 'Clark', 'c' => array('a' => 'Ballmer'), 'e' => 'notnull', 'fi', 'fei', 'fo', 'fam'),