yaml-cpp/test/integration
Azat Khuzhin 2acec3d15b Fix order for merging iterator
Consider the following YAML:

    trait1: &t1
      foo: 1

    trait2: &t2
      foo: 2

    merged:
      <<: *t1
      <<: *t2

yq reports:

    $ yq .merged.foo < /tmp/yaml
    2

while the order that yaml-cpp returns is different, since it will
firstly handle 1, and will not replace it with 2:

    $ util/parse < /tmp/yaml
    trait1:
      ? &1 foo
      : &2 1
    trait2:
      foo: 2
    merged:
      *1 : *2

(Don't mix up "*2" with "2", it is trait1)
2024-05-03 14:36:57 +02:00
..
emitter_test.cpp Include property nodes in the long key check (#1140) 2022-10-04 18:51:53 -05:00
encoding_test.cpp Add EmitterStyle, which will allow sequence or map style (i.e., flow or block) to be preserved between parsing and emitting 2015-01-24 12:19:20 -06:00
error_messages_test.cpp Improve error messages on operator[] or as<> (#656) 2019-04-17 08:44:09 -05:00
gen_emitter_test.cpp Add optional OnAnchor method to EventHandler (#530) 2019-03-12 15:24:32 -07:00
handler_spec_test.cpp Supplement test cases for 2.19 ~ 2.22 schema tags. (#857) 2020-05-12 13:20:45 -05:00
handler_test.cpp Fix scalar parsing when a line starts with a comment. 2016-04-02 16:02:26 -05:00
load_node_test.cpp Fix order for merging iterator 2024-05-03 14:36:57 +02:00
node_spec_test.cpp Fix crash when parsing {x: (#865) 2020-05-23 12:17:20 -05:00