Initial commit.

This commit is contained in:
Ferdinand Majerech 2011-08-16 14:53:13 +02:00
commit 283c42bf8f
592 changed files with 26392 additions and 0 deletions

View file

@ -0,0 +1 @@
[ [

View file

@ -0,0 +1 @@
#dummy used in constructor test

8
test/data/aliases.events Normal file
View file

@ -0,0 +1,8 @@
- !StreamStart
- !DocumentStart
- !SequenceStart
- !Scalar { anchor: 'myanchor', tag: '!mytag', value: 'data' }
- !Alias { anchor: 'myanchor' }
- !SequenceEnd
- !DocumentEnd
- !StreamEnd

4
test/data/bool.data Normal file
View file

@ -0,0 +1,4 @@
- yes
- NO
- True
- on

1
test/data/bool.detect Normal file
View file

@ -0,0 +1 @@
tag:yaml.org,2002:bool

View file

@ -0,0 +1 @@
{ foo:bar }

View file

@ -0,0 +1 @@
#dummy used in constructor test

View file

@ -0,0 +1,12 @@
canonical: !!binary "\
R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\
OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\
+f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\
AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs="
generic: !!binary |
R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5
OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+
+f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC
AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=
description:
The binary value above is a tiny arrow encoded as a gif image.

View file

@ -0,0 +1 @@
#dummy used in constructor test

View file

@ -0,0 +1,9 @@
canonical: yes
answer: NO
logical: True
option: on
but:
y: is a string
n: is a string

View file

@ -0,0 +1 @@
#dummy used in constructor test

View file

@ -0,0 +1,9 @@
---
- !tag1
x: 1
- !tag1
x: 1
'y': 2
z: 3
- !tag2
10

View file

@ -0,0 +1 @@
#dummy used in constructor test

View file

@ -0,0 +1,6 @@
canonical: 6.8523015e+5
exponential: 685.230_15e+03
fixed: 685_230.15
sexagesimal: 190:20:30.15
negative infinity: -.inf
not a number: .NaN

View file

@ -0,0 +1 @@
#dummy used in constructor test

View file

@ -0,0 +1,6 @@
canonical: 685230
decimal: +685_230
octal: 02472256
hexadecimal: 0x_0A_74_AE
binary: 0b1010_0111_0100_1010_1110
sexagesimal: 190:20:30

View file

@ -0,0 +1 @@
#dummy used in constructor test

View file

@ -0,0 +1,6 @@
# Unordered set of key: value pairs.
Block style: !!map
Clark : Evans
Brian : Ingerson
Oren : Ben-Kiki
Flow style: !!map { Clark: Evans, Brian: Ingerson, Oren: Ben-Kiki }

View file

@ -0,0 +1 @@
#dummy used in constructor test

View file

@ -0,0 +1,27 @@
---
- &CENTER { x: 1, 'y': 2 }
- &LEFT { x: 0, 'y': 2 }
- &BIG { r: 10 }
- &SMALL { r: 1 }
# All the following maps are equal:
- # Explicit keys
x: 1
'y': 2
r: 10
label: center/big
- # Merge one map
<< : *CENTER
r: 10
label: center/big
- # Merge multiple maps
<< : [ *CENTER, *BIG ]
label: center/big
- # Override
<< : [ *BIG, *LEFT, *SMALL ]
x: 1
label: center/big

View file

@ -0,0 +1 @@
#dummy used in constructor test

View file

@ -0,0 +1,18 @@
# A document may be null.
---
---
# This mapping has four keys,
# one has a value.
empty:
canonical: ~
english: null
~: null key
---
# This sequence has five
# entries, two have values.
sparse:
- ~
- 2nd entry
-
- 4th entry
- Null

View file

@ -0,0 +1 @@
#dummy used in constructor test

View file

@ -0,0 +1,8 @@
# Explicitly typed ordered map (dictionary).
Bestiary: !!omap
- aardvark: African pig-like ant eater. Ugly.
- anteater: South-American ant eater. Two species.
- anaconda: South-American constrictor snake. Scaly.
# Etc.
# Flow style
Numbers: !!omap [ one: 1, two: 2, three : 3 ]

View file

@ -0,0 +1 @@
#dummy used in constructor test

View file

@ -0,0 +1,7 @@
# Explicitly typed pairs.
Block tasks: !!pairs
- meeting: with team.
- meeting: with boss.
- break: lunch.
- meeting: with client.
Flow tasks: !!pairs [ meeting: with team, meeting: with boss ]

View file

@ -0,0 +1 @@
#dummy used in constructor test

View file

@ -0,0 +1,15 @@
# Ordered sequence of nodes
Block style: !!seq
- Mercury # Rotates - no light/dark sides.
- Venus # Deadliest. Aptly named.
- Earth # Mostly dirt.
- Mars # Seems empty.
- Jupiter # The king.
- Saturn # Pretty.
- Uranus # Where the sun hardly shines.
- Neptune # Boring. No rings.
- Pluto # You call this a planet?
Flow style: !!seq [ Mercury, Venus, Earth, Mars, # Rocks
Jupiter, Saturn, Uranus, Neptune, # Gas
Pluto ] # Overrated

View file

@ -0,0 +1 @@
#dummy used in constructor test

View file

@ -0,0 +1,7 @@
# Explicitly typed set.
baseball players: !!set
? Mark McGwire
? Sammy Sosa
? Ken Griffey
# Flow style
baseball teams: !!set { Boston Red Sox, Detroit Tigers, New York Yankees }

View file

@ -0,0 +1 @@
#dummy used in constructor test

View file

@ -0,0 +1 @@
--- !!str "ascii string"

View file

@ -0,0 +1 @@
#dummy used in constructor test

View file

@ -0,0 +1 @@
--- !!str "Это уникодная строка"

View file

@ -0,0 +1 @@
#dummy used in constructor test

View file

@ -0,0 +1 @@
string: abcd

View file

@ -0,0 +1 @@
#dummy used in constructor test

View file

@ -0,0 +1,5 @@
canonical: 2001-12-15T02:59:43.1Z
valid iso8601: 2001-12-14t21:59:43.1-05:00
space separated: 2001-12-14 21:59:43.1 -5
no time zone (Z): 2001-12-15 2:59:43.1
date (00:00:00Z): 2002-12-14

View file

@ -0,0 +1 @@
#dummy used in constructor test

View file

@ -0,0 +1,10 @@
--- # Old schema
link with:
- library1.dll
- library2.dll
--- # New schema
link with:
- = : library1.dll
version: 1.2
- = : library2.dll
version: 2.3

View file

@ -0,0 +1,11 @@
---
"this --- is correct"
---
"this
...is also
correct"
---
"a quoted scalar
cannot contain
---
document separators"

View file

@ -0,0 +1,11 @@
- !StreamStart
- !DocumentStart { explicit: false }
- !Scalar { implicit: [true,false], value: 'data' }
- !DocumentEnd
- !DocumentStart
- !Scalar { implicit: [true,false] }
- !DocumentEnd
- !DocumentStart { version: [1,1], tags: { '!': '!foo', '!yaml!': 'tag:yaml.org,2002:', '!ugly!': '!!!!!!!' } }
- !Scalar { implicit: [true,false] }
- !DocumentEnd
- !StreamEnd

View file

@ -0,0 +1,3 @@
- &foo bar
- &bar bar
- &foo bar

View file

@ -0,0 +1 @@
&foo [1, 2, 3, &foo 4]

View file

@ -0,0 +1 @@
#dummy used in constructor test

View file

@ -0,0 +1,4 @@
---
<<: {x: 1, y: 2}
foo: bar
<<: {z: 3, t: 4}

View file

@ -0,0 +1,3 @@
%TAG !foo! bar
%TAG !foo! baz
--- foo

View file

@ -0,0 +1,3 @@
%YAML 1.1
%YAML 1.1
--- foo

View file

@ -0,0 +1,6 @@
%YAML 1.1
--- !!map
{
? !!str "foo"
: !!str "bar"
}

View file

@ -0,0 +1,4 @@
? |-
foo
: |-
bar

View file

@ -0,0 +1,5 @@
- !StreamStart
- !DocumentStart
- !Scalar { anchor: '', value: 'foo' }
- !DocumentEnd
- !StreamEnd

View file

@ -0,0 +1 @@
# This YAML stream contains no YAML documents.

View file

View file

View file

@ -0,0 +1,2 @@
--- # first document
--- # second document

View file

@ -0,0 +1 @@
--- !!python:module:

View file

@ -0,0 +1 @@
--- !!python/name: empty

View file

@ -0,0 +1,5 @@
- !StreamStart
- !DocumentStart { tags: { '': 'bar' } }
- !Scalar { value: 'foo' }
- !DocumentEnd
- !StreamEnd

View file

@ -0,0 +1,5 @@
- !StreamStart
- !DocumentStart { tags: { '!': '' } }
- !Scalar { value: 'foo' }
- !DocumentEnd
- !StreamEnd

View file

@ -0,0 +1,5 @@
- !StreamStart
- !DocumentStart
- !Scalar { tag: '', value: 'key', implicit: [false,false] }
- !DocumentEnd
- !StreamEnd

View file

@ -0,0 +1,6 @@
- !StreamStart
- !DocumentStart
- !Scalar { value: 'data 1' }
- !Scalar { value: 'data 2' }
- !DocumentEnd
- !StreamEnd

View file

@ -0,0 +1,4 @@
- !StreamStart
- !MappingStart
- !MappingEnd
- !StreamEnd

View file

@ -0,0 +1 @@
--- !!map [not, a, map]

View file

@ -0,0 +1,4 @@
- !StreamStart
- !DocumentStart
- !DocumentEnd
- !StreamEnd

View file

@ -0,0 +1,7 @@
- !StreamStart
- !DocumentStart
- !MappingStart
- !Scalar { value: 'key' }
- !MappingEnd
- !DocumentEnd
- !StreamEnd

View file

@ -0,0 +1,4 @@
- !StreamStart
- !StreamEnd
- !StreamStart
- !StreamEnd

View file

@ -0,0 +1 @@
--- !!str [not a scalar]

View file

@ -0,0 +1 @@
--- !!seq {foo, bar, baz}

View file

@ -0,0 +1,2 @@
- !DocumentStart
- !DocumentEnd

View file

@ -0,0 +1,4 @@
---
foo: bar
---
foo: bar

View file

@ -0,0 +1,2 @@
? "foo"
: "bar"

View file

@ -0,0 +1 @@
#dummy used in constructor test

View file

@ -0,0 +1,5 @@
#0.0: # hash(0) == hash(nan) and 0 == nan in Python 2.3
1.0: 1
+.inf: 10
-.inf: -10
.nan: 100

6
test/data/float.data Normal file
View file

@ -0,0 +1,6 @@
- 6.8523015e+5
- 685.230_15e+03
- 685_230.15
- 190:20:30.15
- -.inf
- .NaN

1
test/data/float.detect Normal file
View file

@ -0,0 +1 @@
tag:yaml.org,2002:float

View file

@ -0,0 +1,2 @@
test: - foo
- bar

View file

@ -0,0 +1,2 @@
test: ? foo
: bar

View file

@ -0,0 +1 @@
test: key: value

View file

@ -0,0 +1,3 @@
foo: bar
---
foo: bar

6
test/data/int.data Normal file
View file

@ -0,0 +1,6 @@
- 685230
- +685_230
- 02472256
- 0x_0A_74_AE
- 0b1010_0111_0100_1010_1110
- 190:20:30

1
test/data/int.detect Normal file
View file

@ -0,0 +1 @@
tag:yaml.org,2002:int

View file

@ -0,0 +1 @@
--- &? foo # we allow only ascii and numeric characters in anchor names.

View file

@ -0,0 +1,8 @@
---
- [
&correct foo,
*correct,
*correct] # still correct
- *correct: still correct
- &correct-or-not[foo, bar]

View file

@ -0,0 +1,5 @@
- !StreamStart
- !DocumentStart
- !Scalar { anchor: '5*5=25', value: 'foo' }
- !DocumentEnd
- !StreamEnd

View file

@ -0,0 +1,2 @@
--- !!binary
двоичные данные в base64

View file

@ -0,0 +1,2 @@
--- !!binary
binary data encoded in base64 should be here.

View file

@ -0,0 +1,2 @@
--- > what is this? # a comment
data

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,2 @@
%YAML 1.1 ? # extra symbol
---

View file

@ -0,0 +1,2 @@
% # no name at all
---

View file

@ -0,0 +1,2 @@
%invalid-characters:in-directive name
---

View file

@ -0,0 +1 @@
"some escape characters are \ncorrect, but this one \?\nis not\n"

View file

@ -0,0 +1 @@
"hm.... \u123?"

View file

@ -0,0 +1,2 @@
--- >0 # not valid
data

View file

@ -0,0 +1,2 @@
--- >-0
data

View file

@ -0,0 +1,2 @@
-
-0

View file

@ -0,0 +1,2 @@
foo: bar
<<: baz

View file

@ -0,0 +1,2 @@
foo: bar
<<: [x: 1, y: 2, z, t: 4]

View file

@ -0,0 +1,3 @@
--- !!omap
foo: bar
baz: bat

Some files were not shown because too many files have changed in this diff Show more