Skip to content

Commit 3ef05f4

Browse files
committed
1.0.79 yaml test files
1 parent d2b880b commit 3ef05f4

File tree

1,887 files changed

+8335
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,887 files changed

+8335
-0
lines changed

fantom/etc/yaml/tests/229Q/===

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Spec Example 2.4. Sequence of Mappings

fantom/etc/yaml/tests/229Q/in.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[
2+
{
3+
"name": "Mark McGwire",
4+
"hr": 65,
5+
"avg": 0.278
6+
},
7+
{
8+
"name": "Sammy Sosa",
9+
"hr": 63,
10+
"avg": 0.288
11+
}
12+
]

fantom/etc/yaml/tests/229Q/in.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-
2+
name: Mark McGwire
3+
hr: 65
4+
avg: 0.278
5+
-
6+
name: Sammy Sosa
7+
hr: 63
8+
avg: 0.288

fantom/etc/yaml/tests/229Q/out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- name: Mark McGwire
2+
hr: 65
3+
avg: 0.278
4+
- name: Sammy Sosa
5+
hr: 63
6+
avg: 0.288

fantom/etc/yaml/tests/229Q/test.event

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
+STR
2+
+DOC
3+
+SEQ
4+
+MAP
5+
=VAL :name
6+
=VAL :Mark McGwire
7+
=VAL :hr
8+
=VAL :65
9+
=VAL :avg
10+
=VAL :0.278
11+
-MAP
12+
+MAP
13+
=VAL :name
14+
=VAL :Sammy Sosa
15+
=VAL :hr
16+
=VAL :63
17+
=VAL :avg
18+
=VAL :0.288
19+
-MAP
20+
-SEQ
21+
-DOC
22+
-STR

fantom/etc/yaml/tests/236B/===

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Invalid value after mapping

fantom/etc/yaml/tests/236B/error

Whitespace-only changes.

fantom/etc/yaml/tests/236B/in.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
foo:
2+
bar
3+
invalid

fantom/etc/yaml/tests/236B/test.event

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
+STR
2+
+DOC
3+
+MAP
4+
=VAL :foo
5+
=VAL :bar

fantom/etc/yaml/tests/26DV/===

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Whitespace around colon in mappings

fantom/etc/yaml/tests/26DV/in.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"top1": {
3+
"key1": "scalar1"
4+
},
5+
"top2": {
6+
"key2": "scalar2"
7+
},
8+
"top3": {
9+
"scalar1": "scalar3"
10+
},
11+
"top4": {
12+
"scalar2": "scalar4"
13+
},
14+
"top5": "scalar5",
15+
"top6": {
16+
"key6": "scalar6"
17+
}
18+
}

fantom/etc/yaml/tests/26DV/in.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"top1" :
2+
"key1" : &alias1 scalar1
3+
'top2' :
4+
'key2' : &alias2 scalar2
5+
top3: &node3
6+
*alias1 : scalar3
7+
top4:
8+
*alias2 : scalar4
9+
top5 :
10+
scalar5
11+
top6:
12+
&anchor6 'key6' : scalar6

fantom/etc/yaml/tests/26DV/out.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"top1":
2+
"key1": &alias1 scalar1
3+
'top2':
4+
'key2': &alias2 scalar2
5+
top3: &node3
6+
*alias1 : scalar3
7+
top4:
8+
*alias2 : scalar4
9+
top5: scalar5
10+
top6:
11+
&anchor6 'key6': scalar6

fantom/etc/yaml/tests/26DV/test.event

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
+STR
2+
+DOC
3+
+MAP
4+
=VAL "top1
5+
+MAP
6+
=VAL "key1
7+
=VAL &alias1 :scalar1
8+
-MAP
9+
=VAL 'top2
10+
+MAP
11+
=VAL 'key2
12+
=VAL &alias2 :scalar2
13+
-MAP
14+
=VAL :top3
15+
+MAP &node3
16+
=ALI *alias1
17+
=VAL :scalar3
18+
-MAP
19+
=VAL :top4
20+
+MAP
21+
=ALI *alias2
22+
=VAL :scalar4
23+
-MAP
24+
=VAL :top5
25+
=VAL :scalar5
26+
=VAL :top6
27+
+MAP
28+
=VAL &anchor6 'key6
29+
=VAL :scalar6
30+
-MAP
31+
-MAP
32+
-DOC
33+
-STR

fantom/etc/yaml/tests/27NA/===

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Spec Example 5.9. Directive Indicator

fantom/etc/yaml/tests/27NA/in.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"text"

fantom/etc/yaml/tests/27NA/in.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
%YAML 1.2
2+
--- text

fantom/etc/yaml/tests/27NA/out.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--- text

fantom/etc/yaml/tests/27NA/test.event

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
+STR
2+
+DOC ---
3+
=VAL :text
4+
-DOC
5+
-STR

fantom/etc/yaml/tests/2AUY/===

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Tags in Block Sequence

fantom/etc/yaml/tests/2AUY/in.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
"a",
3+
"b",
4+
42,
5+
"d"
6+
]

fantom/etc/yaml/tests/2AUY/in.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- !!str a
2+
- b
3+
- !!int 42
4+
- d

fantom/etc/yaml/tests/2AUY/out.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- !!str a
2+
- b
3+
- !!int 42
4+
- d

fantom/etc/yaml/tests/2AUY/test.event

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
+STR
2+
+DOC
3+
+SEQ
4+
=VAL <tag:yaml.org,2002:str> :a
5+
=VAL :b
6+
=VAL <tag:yaml.org,2002:int> :42
7+
=VAL :d
8+
-SEQ
9+
-DOC
10+
-STR

fantom/etc/yaml/tests/2CMS/===

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Invalid mapping in plain multiline

fantom/etc/yaml/tests/2CMS/error

Whitespace-only changes.

fantom/etc/yaml/tests/2CMS/in.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
this
2+
is
3+
invalid: x

fantom/etc/yaml/tests/2CMS/test.event

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
+STR
2+
+DOC

fantom/etc/yaml/tests/2EBW/===

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Allowed characters in keys

fantom/etc/yaml/tests/2EBW/in.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"a!\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~": "safe",
3+
"?foo": "safe question mark",
4+
":foo": "safe colon",
5+
"-foo": "safe dash",
6+
"this is#not": "a comment"
7+
}

fantom/etc/yaml/tests/2EBW/in.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
a!"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~: safe
2+
?foo: safe question mark
3+
:foo: safe colon
4+
-foo: safe dash
5+
this is#not: a comment

fantom/etc/yaml/tests/2EBW/out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
a!"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~: safe
2+
?foo: safe question mark
3+
:foo: safe colon
4+
-foo: safe dash
5+
this is#not: a comment

fantom/etc/yaml/tests/2EBW/test.event

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
+STR
2+
+DOC
3+
+MAP
4+
=VAL :a!"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~
5+
=VAL :safe
6+
=VAL :?foo
7+
=VAL :safe question mark
8+
=VAL ::foo
9+
=VAL :safe colon
10+
=VAL :-foo
11+
=VAL :safe dash
12+
=VAL :this is#not
13+
=VAL :a comment
14+
-MAP
15+
-DOC
16+
-STR

fantom/etc/yaml/tests/2G84/00/===

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Literal modifers

fantom/etc/yaml/tests/2G84/00/error

Whitespace-only changes.

fantom/etc/yaml/tests/2G84/00/in.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--- |0
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
+STR
2+
+DOC ---

fantom/etc/yaml/tests/2G84/01/===

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Literal modifers

fantom/etc/yaml/tests/2G84/01/error

Whitespace-only changes.

fantom/etc/yaml/tests/2G84/01/in.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--- |10
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
+STR
2+
+DOC ---

fantom/etc/yaml/tests/2G84/02/===

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Literal modifers
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--- ""

fantom/etc/yaml/tests/2G84/02/in.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
""

fantom/etc/yaml/tests/2G84/02/in.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--- |1-
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
+STR
2+
+DOC ---
3+
=VAL |
4+
-DOC
5+
-STR

fantom/etc/yaml/tests/2G84/03/===

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Literal modifers
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--- ""

fantom/etc/yaml/tests/2G84/03/in.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
""

fantom/etc/yaml/tests/2G84/03/in.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--- |1+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
+STR
2+
+DOC ---
3+
=VAL |
4+
-DOC
5+
-STR

fantom/etc/yaml/tests/2JQS/===

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Block Mapping with Missing Keys

fantom/etc/yaml/tests/2JQS/in.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
: a
2+
: b

fantom/etc/yaml/tests/2JQS/test.event

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
+STR
2+
+DOC
3+
+MAP
4+
=VAL :
5+
=VAL :a
6+
=VAL :
7+
=VAL :b
8+
-MAP
9+
-DOC
10+
-STR

fantom/etc/yaml/tests/2LFX/===

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Spec Example 6.13. Reserved Directives [1.3]

fantom/etc/yaml/tests/2LFX/emit.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--- "foo"

fantom/etc/yaml/tests/2LFX/in.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"foo"

fantom/etc/yaml/tests/2LFX/in.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
%FOO bar baz # Should be ignored
2+
# with a warning.
3+
---
4+
"foo"

fantom/etc/yaml/tests/2LFX/out.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
"foo"

fantom/etc/yaml/tests/2LFX/test.event

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
+STR
2+
+DOC ---
3+
=VAL "foo
4+
-DOC
5+
-STR

fantom/etc/yaml/tests/2SXE/===

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Anchors With Colon in Name

fantom/etc/yaml/tests/2SXE/in.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"key": "value",
3+
"foo": "key"
4+
}

fantom/etc/yaml/tests/2SXE/in.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
&a: key: &a value
2+
foo:
3+
*a:

fantom/etc/yaml/tests/2SXE/out.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
&a: key: &a value
2+
foo: *a:

fantom/etc/yaml/tests/2SXE/test.event

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
+STR
2+
+DOC
3+
+MAP
4+
=VAL &a: :key
5+
=VAL &a :value
6+
=VAL :foo
7+
=ALI *a:
8+
-MAP
9+
-DOC
10+
-STR

fantom/etc/yaml/tests/2XXW/===

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Spec Example 2.25. Unordered Sets

fantom/etc/yaml/tests/2XXW/in.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"Mark McGwire": null,
3+
"Sammy Sosa": null,
4+
"Ken Griff": null
5+
}

fantom/etc/yaml/tests/2XXW/in.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Sets are represented as a
2+
# Mapping where each key is
3+
# associated with a null value
4+
--- !!set
5+
? Mark McGwire
6+
? Sammy Sosa
7+
? Ken Griff

fantom/etc/yaml/tests/2XXW/out.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--- !!set
2+
Mark McGwire:
3+
Sammy Sosa:
4+
Ken Griff:

fantom/etc/yaml/tests/2XXW/test.event

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
+STR
2+
+DOC ---
3+
+MAP <tag:yaml.org,2002:set>
4+
=VAL :Mark McGwire
5+
=VAL :
6+
=VAL :Sammy Sosa
7+
=VAL :
8+
=VAL :Ken Griff
9+
=VAL :
10+
-MAP
11+
-DOC
12+
-STR

fantom/etc/yaml/tests/33X3/===

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Three explicit integers in a block sequence

fantom/etc/yaml/tests/33X3/in.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[
2+
1,
3+
-2,
4+
33
5+
]

fantom/etc/yaml/tests/33X3/in.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
- !!int 1
3+
- !!int -2
4+
- !!int 33

fantom/etc/yaml/tests/33X3/out.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
- !!int 1
3+
- !!int -2
4+
- !!int 33

0 commit comments

Comments
 (0)