mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Wrote some tests, but they don't work because it doesn't output maps in a canonical form.
This commit is contained in:
32
tests/mixed.yaml
Normal file
32
tests/mixed.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
- the main thing is a sequence
|
||||
- here's a key: value
|
||||
and another: value
|
||||
- let's inline: [1, 2, 3]
|
||||
and an inline map: {key: value, 243: 101}
|
||||
- and multiple indents:
|
||||
- here's
|
||||
- a
|
||||
- list
|
||||
and another:
|
||||
- list
|
||||
- of
|
||||
- things
|
||||
- maybe now:
|
||||
let's: get
|
||||
pretty:
|
||||
deep: here
|
||||
in:
|
||||
the: nesting
|
||||
just: to
|
||||
confuse:
|
||||
the: heck
|
||||
out:
|
||||
- of
|
||||
- the: parser
|
||||
if:
|
||||
- we
|
||||
- can
|
||||
- do: that
|
||||
what: do
|
||||
you: think?
|
||||
|
13
tests/simple.yaml
Normal file
13
tests/simple.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
just a scalar
|
||||
---
|
||||
and another scalar
|
||||
---
|
||||
now an end document
|
||||
...
|
||||
---
|
||||
and now two
|
||||
...
|
||||
...
|
||||
---
|
||||
and that's it
|
Reference in New Issue
Block a user