Wrote some tests, but they don't work because it doesn't output maps in a canonical form.

This commit is contained in:
beder
2008-07-05 19:00:58 +00:00
parent ba97c9f719
commit 3cad5a2ed0
8 changed files with 167 additions and 14 deletions

32
tests/mixed.yaml Normal file
View 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
View File

@@ -0,0 +1,13 @@
---
just a scalar
---
and another scalar
---
now an end document
...
---
and now two
...
...
---
and that's it