mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Added CMake scripts for other platforms\nFixed some bugs that gcc complained about\nFixed CR/LF vs LF bug
This commit is contained in:
5
yaml-reader/tests/directives.yaml
Normal file
5
yaml-reader/tests/directives.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
%YAML 1.2
|
||||
%TAG ! !howdy
|
||||
---
|
||||
- basic node
|
||||
- ! yeah baby
|
32
yaml-reader/tests/mixed.yaml
Normal file
32
yaml-reader/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?
|
||||
|
8
yaml-reader/tests/out.yaml
Normal file
8
yaml-reader/tests/out.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
- "basic node"
|
||||
- !<!howdy> "yeah baby"
|
||||
|
||||
---
|
||||
- "basic node"
|
||||
- !<!<!howdy>> "yeah baby"
|
||||
|
35
yaml-reader/tests/scalars.yaml
Normal file
35
yaml-reader/tests/scalars.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
- normal scalar, but
|
||||
over several lines
|
||||
- |
|
||||
literal scalar - so we can draw ASCII:
|
||||
|
||||
- -
|
||||
| - |
|
||||
------
|
||||
- >
|
||||
and a folded scalar... so we
|
||||
can just keep writing various
|
||||
things. And if we want to keep indentation:
|
||||
|
||||
we just indent a little
|
||||
see, this stays indented
|
||||
- >-
|
||||
Here's a folded scalar
|
||||
that gets chomped.
|
||||
- |-
|
||||
And here's a literal scalar
|
||||
that gets chomped.
|
||||
- >2
|
||||
Here's a folded scalar
|
||||
that starts with some indentation.
|
||||
- ::vector
|
||||
- ": - ()"
|
||||
- Up, up, and away!
|
||||
- -123
|
||||
- http://example.com/foo#bar
|
||||
# Inside flow collection:
|
||||
- [ ::vector,
|
||||
": - ()",
|
||||
"Up, up and away!",
|
||||
-123,
|
||||
http://example.com/foo#bar ]
|
13
yaml-reader/tests/simple.yaml
Normal file
13
yaml-reader/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
|
3
yaml-reader/tests/test.yaml
Normal file
3
yaml-reader/tests/test.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
- it's just
|
||||
- one thing
|
||||
- after another
|
Reference in New Issue
Block a user