diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2025-08-28 10:35:13 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2025-08-28 10:35:13 -0400 |
commit | 3539b7f5308b617e99b0a4ea298a413acbda4d79 (patch) | |
tree | 42101adf54ce7fc060da9e312dc508aaf1302bf2 /src/ext_depends/D-YAML/test/spec 1.1 | |
parent | dub 1.40.0, llvm 20 (diff) |
Diffstat (limited to 'src/ext_depends/D-YAML/test/spec 1.1')
122 files changed, 4491 insertions, 0 deletions
diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-01.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-01.yaml new file mode 100644 index 0000000..8452f53 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-01.yaml @@ -0,0 +1,17 @@ +%YAML 1.1 +--- +- name: spec-02-01 + tree: | + +STR + +DOC + +SEQ + =VAL :Mark McGwire + =VAL :Sammy Sosa + =VAL :Ken Griffey + -SEQ + -DOC + -STR + yaml: | + - Mark McGwire + - Sammy Sosa + - Ken Griffey diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-02.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-02.yaml new file mode 100644 index 0000000..18f4ca6 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-02.yaml @@ -0,0 +1,20 @@ +%YAML 1.1 +--- +- name: spec-02-02 + tree: | + +STR + +DOC + +MAP + =VAL :hr + =VAL :65 + =VAL :avg + =VAL :0.278 + =VAL :rbi + =VAL :147 + -MAP + -DOC + -STR + yaml: | + hr: 65 # Home runs + avg: 0.278 # Batting average + rbi: 147 # Runs Batted In diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-03.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-03.yaml new file mode 100644 index 0000000..9bb0dde --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-03.yaml @@ -0,0 +1,31 @@ +%YAML 1.1 +--- +- name: spec-02-03 + tree: | + +STR + +DOC + +MAP + =VAL :american + +SEQ + =VAL :Boston Red Sox + =VAL :Detroit Tigers + =VAL :New York Yankees + -SEQ + =VAL :national + +SEQ + =VAL :New York Mets + =VAL :Chicago Cubs + =VAL :Atlanta Braves + -SEQ + -MAP + -DOC + -STR + yaml: | + american: + - Boston Red Sox + - Detroit Tigers + - New York Yankees + national: + - New York Mets + - Chicago Cubs + - Atlanta Braves diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-04.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-04.yaml new file mode 100644 index 0000000..2dbe91d --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-04.yaml @@ -0,0 +1,35 @@ +%YAML 1.1 +--- +- name: spec-02-04 + tree: | + +STR + +DOC + +SEQ + +MAP + =VAL :name + =VAL :Mark McGwire + =VAL :hr + =VAL :65 + =VAL :avg + =VAL :0.278 + -MAP + +MAP + =VAL :name + =VAL :Sammy Sosa + =VAL :hr + =VAL :63 + =VAL :avg + =VAL :0.288 + -MAP + -SEQ + -DOC + -STR + yaml: | + - + name: Mark McGwire + hr: 65 + avg: 0.278 + - + name: Sammy Sosa + hr: 63 + avg: 0.288 diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-05.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-05.yaml new file mode 100644 index 0000000..f486192 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-05.yaml @@ -0,0 +1,29 @@ +%YAML 1.1 +--- +- name: spec-02-05 + tree: | + +STR + +DOC + +SEQ + +SEQ [] + =VAL :name + =VAL :hr + =VAL :avg + -SEQ + +SEQ [] + =VAL :Mark McGwire + =VAL :65 + =VAL :0.278 + -SEQ + +SEQ [] + =VAL :Sammy Sosa + =VAL :63 + =VAL :0.288 + -SEQ + -SEQ + -DOC + -STR + yaml: | + - [name , hr, avg ] + - [Mark McGwire, 65, 0.278] + - [Sammy Sosa , 63, 0.288] diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-06.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-06.yaml new file mode 100644 index 0000000..c42129d --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-06.yaml @@ -0,0 +1,30 @@ +%YAML 1.1 +--- +- name: spec-02-06 + tree: | + +STR + +DOC + +MAP + =VAL :Mark McGwire + +MAP {} + =VAL :hr + =VAL :65 + =VAL :avg + =VAL :0.278 + -MAP + =VAL :Sammy Sosa + +MAP {} + =VAL :hr + =VAL :63 + =VAL :avg + =VAL :0.288 + -MAP + -MAP + -DOC + -STR + yaml: | + Mark McGwire: {hr: 65, avg: 0.278} + Sammy Sosa: { + hr: 63, + avg: 0.288 + } diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-07.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-07.yaml new file mode 100644 index 0000000..7ff92e9 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-07.yaml @@ -0,0 +1,30 @@ +%YAML 1.1 +--- +- name: spec-02-07 + tree: | + +STR + +DOC --- + +SEQ + =VAL :Mark McGwire + =VAL :Sammy Sosa + =VAL :Ken Griffey + -SEQ + -DOC + +DOC --- + +SEQ + =VAL :Chicago Cubs + =VAL :St Louis Cardinals + -SEQ + -DOC + -STR + yaml: | + # Ranking of 1998 home runs + --- + - Mark McGwire + - Sammy Sosa + - Ken Griffey + + # Team ranking + --- + - Chicago Cubs + - St Louis Cardinals diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-08.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-08.yaml new file mode 100644 index 0000000..26a8bec --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-08.yaml @@ -0,0 +1,37 @@ +%YAML 1.1 +--- +- name: spec-02-08 + tree: | + +STR + +DOC --- + +MAP + =VAL :time + =VAL :20:03:20 + =VAL :player + =VAL :Sammy Sosa + =VAL :action + =VAL :strike (miss) + -MAP + -DOC ... + +DOC --- + +MAP + =VAL :time + =VAL :20:03:47 + =VAL :player + =VAL :Sammy Sosa + =VAL :action + =VAL :grand slam + -MAP + -DOC ... + -STR + yaml: | + --- + time: 20:03:20 + player: Sammy Sosa + action: strike (miss) + ... + --- + time: 20:03:47 + player: Sammy Sosa + action: grand slam + ... diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-09.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-09.yaml new file mode 100644 index 0000000..1288847 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-09.yaml @@ -0,0 +1,29 @@ +%YAML 1.1 +--- +- name: spec-02-09 + tree: | + +STR + +DOC --- + +MAP + =VAL :hr + +SEQ + =VAL :Mark McGwire + =VAL :Sammy Sosa + -SEQ + =VAL :rbi + +SEQ + =VAL :Sammy Sosa + =VAL :Ken Griffey + -SEQ + -MAP + -DOC + -STR + yaml: | + --- + hr: # 1998 hr ranking + - Mark McGwire + - Sammy Sosa + rbi: + # 1998 rbi ranking + - Sammy Sosa + - Ken Griffey diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-10.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-10.yaml new file mode 100644 index 0000000..ed2e3cb --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-10.yaml @@ -0,0 +1,29 @@ +%YAML 1.1 +--- +- name: spec-02-10 + tree: | + +STR + +DOC --- + +MAP + =VAL :hr + +SEQ + =VAL :Mark McGwire + =VAL &SS :Sammy Sosa + -SEQ + =VAL :rbi + +SEQ + =ALI *SS + =VAL :Ken Griffey + -SEQ + -MAP + -DOC + -STR + yaml: | + --- + hr: + - Mark McGwire + # Following node labeled SS + - &SS Sammy Sosa + rbi: + - *SS # Subsequent occurrence + - Ken Griffey diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-11.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-11.yaml new file mode 100644 index 0000000..3d4f1c8 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-11.yaml @@ -0,0 +1,36 @@ +%YAML 1.1 +--- +- name: spec-02-11 + tree: | + +STR + +DOC + +MAP + +SEQ + =VAL :Detroit Tigers + =VAL :Chicago cubs + -SEQ + +SEQ + =VAL :2001-07-23 + -SEQ + +SEQ [] + =VAL :New York Yankees + =VAL :Atlanta Braves + -SEQ + +SEQ [] + =VAL :2001-07-02 + =VAL :2001-08-12 + =VAL :2001-08-14 + -SEQ + -MAP + -DOC + -STR + yaml: | + ? - Detroit Tigers + - Chicago cubs + : + - 2001-07-23 + + ? [ New York Yankees, + Atlanta Braves ] + : [ 2001-07-02, 2001-08-12, + 2001-08-14 ] diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-12.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-12.yaml new file mode 100644 index 0000000..fb63aa5 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-12.yaml @@ -0,0 +1,37 @@ +%YAML 1.1 +--- +- name: spec-02-12 + tree: | + +STR + +DOC --- + +SEQ + +MAP + =VAL :item + =VAL :Super Hoop + =VAL :quantity + =VAL :1 + -MAP + +MAP + =VAL :item + =VAL :Basketball + =VAL :quantity + =VAL :4 + -MAP + +MAP + =VAL :item + =VAL :Big Shoes + =VAL :quantity + =VAL :1 + -MAP + -SEQ + -DOC + -STR + yaml: | + --- + # products purchased + - item : Super Hoop + quantity: 1 + - item : Basketball + quantity: 4 + - item : Big Shoes + quantity: 1 diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-13.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-13.yaml new file mode 100644 index 0000000..4f6eb3b --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-13.yaml @@ -0,0 +1,14 @@ +%YAML 1.1 +--- +- name: spec-02-13 + tree: | + +STR + +DOC --- + =VAL |\\//||\\/||\n// || ||__\n + -DOC + -STR + yaml: | + # ASCII Art + --- | + \//||\/|| + // || ||__ diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-14.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-14.yaml new file mode 100644 index 0000000..201537a --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-14.yaml @@ -0,0 +1,14 @@ +%YAML 1.1 +--- +- name: spec-02-14 + tree: | + +STR + +DOC --- + =VAL :Mark McGwire's year was crippled by a knee injury. + -DOC + -STR + yaml: | + --- + Mark McGwire's + year was crippled + by a knee injury. diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-15.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-15.yaml new file mode 100644 index 0000000..83e7616 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-15.yaml @@ -0,0 +1,18 @@ +%YAML 1.1 +--- +- name: spec-02-15 + tree: | + +STR + +DOC + =VAL >Sammy Sosa completed another fine season with great stats.\n\n 63 Home Runs\n 0.288 Batting Average\n\nWhat a year!\n + -DOC + -STR + yaml: | + > + Sammy Sosa completed another + fine season with great stats. + + 63 Home Runs + 0.288 Batting Average + + What a year! diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-16.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-16.yaml new file mode 100644 index 0000000..787a35b --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-16.yaml @@ -0,0 +1,24 @@ +%YAML 1.1 +--- +- name: spec-02-16 + tree: | + +STR + +DOC + +MAP + =VAL :name + =VAL :Mark McGwire + =VAL :accomplishment + =VAL >Mark set a major league home run record in 1998.\n + =VAL :stats + =VAL |65 Home Runs\n0.278 Batting Average\n + -MAP + -DOC + -STR + yaml: | + name: Mark McGwire + accomplishment: > + Mark set a major league + home run record in 1998. + stats: | + 65 Home Runs + 0.278 Batting Average diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-17.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-17.yaml new file mode 100644 index 0000000..ab2924c --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-17.yaml @@ -0,0 +1,30 @@ +%YAML 1.1 +--- +- name: spec-02-17 + tree: | + +STR + +DOC + +MAP + =VAL :unicode + =VAL "Sosa did fine.☺ + =VAL :control + =VAL "\b1998\t1999\t2000\n + =VAL :hexesc + =VAL "\r\n is \r\n + =VAL :single + =VAL '"Howdy!" he cried. + =VAL :quoted + =VAL ' # not a 'comment'. + =VAL :tie-fighter + =VAL '|\\-*-/| + -MAP + -DOC + -STR + yaml: | + unicode: "Sosa did fine.\u263A" + control: "\b1998\t1999\t2000\n" + hexesc: "\x0D\x0A is \r\n" + + single: '"Howdy!" he cried.' + quoted: ' # not a ''comment''.' + tie-fighter: '|\-*-/|' diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-18.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-18.yaml new file mode 100644 index 0000000..96227cf --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-18.yaml @@ -0,0 +1,21 @@ +%YAML 1.1 +--- +- name: spec-02-18 + tree: | + +STR + +DOC + +MAP + =VAL :plain + =VAL :This unquoted scalar spans many lines. + =VAL :quoted + =VAL "So does this quoted scalar.\n + -MAP + -DOC + -STR + yaml: | + plain: + This unquoted scalar + spans many lines. + + quoted: "So does this + quoted scalar.\n" diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-19.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-19.yaml new file mode 100644 index 0000000..fdd18a9 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-19.yaml @@ -0,0 +1,26 @@ +%YAML 1.1 +--- +- name: spec-02-19 + tree: | + +STR + +DOC + +MAP + =VAL :canonical + =VAL :12345 + =VAL :decimal + =VAL :+12,345 + =VAL :sexagesimal + =VAL :3:25:45 + =VAL :octal + =VAL :014 + =VAL :hexadecimal + =VAL :0xC + -MAP + -DOC + -STR + yaml: | + canonical: 12345 + decimal: +12,345 + sexagesimal: 3:25:45 + octal: 014 + hexadecimal: 0xC diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-20.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-20.yaml new file mode 100644 index 0000000..0902005 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-20.yaml @@ -0,0 +1,29 @@ +%YAML 1.1 +--- +- name: spec-02-20 + tree: | + +STR + +DOC + +MAP + =VAL :canonical + =VAL :1.23015e+3 + =VAL :exponential + =VAL :12.3015e+02 + =VAL :sexagesimal + =VAL :20:30.15 + =VAL :fixed + =VAL :1,230.15 + =VAL :negative infinity + =VAL :-.inf + =VAL :not a number + =VAL :.NaN + -MAP + -DOC + -STR + yaml: | + canonical: 1.23015e+3 + exponential: 12.3015e+02 + sexagesimal: 20:30.15 + fixed: 1,230.15 + negative infinity: -.inf + not a number: .NaN diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-21.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-21.yaml new file mode 100644 index 0000000..a5beaa5 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-21.yaml @@ -0,0 +1,23 @@ +%YAML 1.1 +--- +- name: spec-02-21 + tree: | + +STR + +DOC + +MAP + =VAL :null + =VAL :~ + =VAL :true + =VAL :y + =VAL :false + =VAL :n + =VAL :string + =VAL '12345 + -MAP + -DOC + -STR + yaml: | + null: ~ + true: y + false: n + string: '12345' diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-22.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-22.yaml new file mode 100644 index 0000000..00e1bf6 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-22.yaml @@ -0,0 +1,23 @@ +%YAML 1.1 +--- +- name: spec-02-22 + tree: | + +STR + +DOC + +MAP + =VAL :canonical + =VAL :2001-12-15T02:59:43.1Z + =VAL :iso8601 + =VAL :2001-12-14t21:59:43.10-05:00 + =VAL :spaced + =VAL :2001-12-14 21:59:43.10 -5 + =VAL :date + =VAL :2002-12-14 + -MAP + -DOC + -STR + yaml: | + canonical: 2001-12-15T02:59:43.1Z + iso8601: 2001-12-14t21:59:43.10-05:00 + spaced: 2001-12-14 21:59:43.10 -5 + date: 2002-12-14 diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-23.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-23.yaml new file mode 100644 index 0000000..09a3e4a --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-23.yaml @@ -0,0 +1,30 @@ +%YAML 1.1 +--- +- name: spec-02-23 + tree: | + +STR + +DOC --- + +MAP + =VAL :not-date + =VAL <tag:yaml.org,2002:str> :2002-04-28 + =VAL :picture + =VAL <tag:yaml.org,2002:binary> |R0lGODlhDAAMAIQAAP//9/X\n17unp5WZmZgAAAOfn515eXv\nPz7Y6OjuDg4J+fn5OTk6enp\n56enmleECcgggoBADs=\n + =VAL :application specific tag + =VAL <!something> |The semantics of the tag\nabove may be different for\ndifferent documents.\n + -MAP + -DOC + -STR + yaml: | + --- + not-date: !!str 2002-04-28 + + picture: !!binary | + R0lGODlhDAAMAIQAAP//9/X + 17unp5WZmZgAAAOfn515eXv + Pz7Y6OjuDg4J+fn5OTk6enp + 56enmleECcgggoBADs= + + application specific tag: !something | + The semantics of the tag + above may be different for + different documents. diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-24.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-24.yaml new file mode 100644 index 0000000..29ecb6c --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-24.yaml @@ -0,0 +1,55 @@ +%YAML 1.1 +--- +- name: spec-02-24 + tree: | + +STR + +DOC --- + +SEQ <tag:clarkevans.com,2002:shape> + +MAP <tag:clarkevans.com,2002:circle> + =VAL :center + +MAP {} &ORIGIN + =VAL :x + =VAL :73 + =VAL :y + =VAL :129 + -MAP + =VAL :radius + =VAL :7 + -MAP + +MAP <tag:clarkevans.com,2002:line> + =VAL :start + =ALI *ORIGIN + =VAL :finish + +MAP {} + =VAL :x + =VAL :89 + =VAL :y + =VAL :102 + -MAP + -MAP + +MAP <tag:clarkevans.com,2002:label> + =VAL :start + =ALI *ORIGIN + =VAL :color + =VAL :0xFFEEBB + =VAL :text + =VAL :Pretty vector drawing. + -MAP + -SEQ + -DOC + -STR + yaml: | + %TAG ! tag:clarkevans.com,2002: + --- !shape + # Use the ! handle for presenting + # tag:clarkevans.com,2002:circle + - !circle + center: &ORIGIN {x: 73, y: 129} + radius: 7 + - !line + start: *ORIGIN + finish: { x: 89, y: 102 } + - !label + start: *ORIGIN + color: 0xFFEEBB + text: Pretty vector drawing. diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-25.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-25.yaml new file mode 100644 index 0000000..85ac7d8 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-25.yaml @@ -0,0 +1,24 @@ +%YAML 1.1 +--- +- name: spec-02-25 + tree: | + +STR + +DOC --- + +MAP <tag:yaml.org,2002:set> + =VAL :Mark McGwire + =VAL : + =VAL :Sammy Sosa + =VAL : + =VAL :Ken Griff + =VAL : + -MAP + -DOC + -STR + yaml: | + # sets are represented as a + # mapping where each key is + # associated with the empty string + --- !!set + ? Mark McGwire + ? Sammy Sosa + ? Ken Griff diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-26.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-26.yaml new file mode 100644 index 0000000..852aa4f --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-26.yaml @@ -0,0 +1,30 @@ +%YAML 1.1 +--- +- name: spec-02-26 + tree: | + +STR + +DOC --- + +SEQ <tag:yaml.org,2002:omap> + +MAP + =VAL :Mark McGwire + =VAL :65 + -MAP + +MAP + =VAL :Sammy Sosa + =VAL :63 + -MAP + +MAP + =VAL :Ken Griffy + =VAL :58 + -MAP + -SEQ + -DOC + -STR + yaml: | + # ordered maps are represented as + # a sequence of mappings, with + # each mapping having one key + --- !!omap + - Mark McGwire: 65 + - Sammy Sosa: 63 + - Ken Griffy: 58 diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-27.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-27.yaml new file mode 100644 index 0000000..5e23800 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-27.yaml @@ -0,0 +1,93 @@ +%YAML 1.1 +--- +- name: spec-02-27 + tree: | + +STR + +DOC --- + +MAP <tag:clarkevans.com,2002:invoice> + =VAL :invoice + =VAL :34843 + =VAL :date + =VAL :2001-01-23 + =VAL :bill-to + +MAP &id001 + =VAL :given + =VAL :Chris + =VAL :family + =VAL :Dumars + =VAL :address + +MAP + =VAL :lines + =VAL |458 Walkman Dr.\nSuite #292\n + =VAL :city + =VAL :Royal Oak + =VAL :state + =VAL :MI + =VAL :postal + =VAL :48046 + -MAP + -MAP + =VAL :ship-to + =ALI *id001 + =VAL :product + +SEQ + +MAP + =VAL :sku + =VAL :BL394D + =VAL :quantity + =VAL :4 + =VAL :description + =VAL :Basketball + =VAL :price + =VAL :450.00 + -MAP + +MAP + =VAL :sku + =VAL :BL4438H + =VAL :quantity + =VAL :1 + =VAL :description + =VAL :Super Hoop + =VAL :price + =VAL :2392.00 + -MAP + -SEQ + =VAL :tax + =VAL :251.42 + =VAL :total + =VAL :4443.52 + =VAL :comments + =VAL :Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338. + -MAP + -DOC + -STR + yaml: | + --- !<tag:clarkevans.com,2002:invoice> + invoice: 34843 + date : 2001-01-23 + bill-to: &id001 + given : Chris + family : Dumars + address: + lines: | + 458 Walkman Dr. + Suite #292 + city : Royal Oak + state : MI + postal : 48046 + ship-to: *id001 + product: + - sku : BL394D + quantity : 4 + description : Basketball + price : 450.00 + - sku : BL4438H + quantity : 1 + description : Super Hoop + price : 2392.00 + tax : 251.42 + total: 4443.52 + comments: + Late afternoon is best. + Backup contact is Nancy + Billsmer @ 338-4338. diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-02-28.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-28.yaml new file mode 100644 index 0000000..7f142d7 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-02-28.yaml @@ -0,0 +1,82 @@ +%YAML 1.1 +--- +- name: spec-02-28 + tree: | + +STR + +DOC --- + +MAP + =VAL :Time + =VAL :2001-11-23 15:01:42 -5 + =VAL :User + =VAL :ed + =VAL :Warning + =VAL :This is an error message for the log file + -MAP + -DOC + +DOC --- + +MAP + =VAL :Time + =VAL :2001-11-23 15:02:31 -5 + =VAL :User + =VAL :ed + =VAL :Warning + =VAL :A slightly different error message. + -MAP + -DOC + +DOC --- + +MAP + =VAL :Date + =VAL :2001-11-23 15:03:17 -5 + =VAL :User + =VAL :ed + =VAL :Fatal + =VAL :Unknown variable "bar" + =VAL :Stack + +SEQ + +MAP + =VAL :file + =VAL :TopClass.py + =VAL :line + =VAL :23 + =VAL :code + =VAL |x = MoreObject("345\\n")\n + -MAP + +MAP + =VAL :file + =VAL :MoreClass.py + =VAL :line + =VAL :58 + =VAL :code + =VAL |foo = bar + -MAP + -SEQ + -MAP + -DOC + -STR + yaml: | + --- + Time: 2001-11-23 15:01:42 -5 + User: ed + Warning: + This is an error message + for the log file + --- + Time: 2001-11-23 15:02:31 -5 + User: ed + Warning: + A slightly different error + message. + --- + Date: 2001-11-23 15:03:17 -5 + User: ed + Fatal: + Unknown variable "bar" + Stack: + - file: TopClass.py + line: 23 + code: | + x = MoreObject("345\n") + - file: MoreClass.py + line: 58 + code: |- + foo = bar diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-05-01-utf8.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-01-utf8.yaml new file mode 100644 index 0000000..0605eb0 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-01-utf8.yaml @@ -0,0 +1,13 @@ +%YAML 1.1 +--- +- name: spec-05-01-utf8 + yaml: | + # Comment only. + tree: | + +STR + -STR +- name: spec-05-01-utf8-canonical + yaml: "" + tree: | + +STR + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-05-02-utf8.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-02-utf8.yaml new file mode 100644 index 0000000..bc50fe9 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-02-utf8.yaml @@ -0,0 +1,9 @@ +%YAML 1.1 +--- +- name: spec-05-02-utf8 + #FIXME + # error: | + # ERROR: + # A BOM must not appear + # inside a document. + yaml: "# Invalid use of BOM\n\uFEFF# inside a\n# document.\n" diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-05-03.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-03.yaml new file mode 100644 index 0000000..0078d03 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-03.yaml @@ -0,0 +1,71 @@ +%YAML 1.1 +--- +- name: spec-05-03 + yaml: | + sequence: + - one + - two + mapping: + ? sky + : blue + ? sea : green + tree: | + +STR + +DOC + +MAP + =VAL :sequence + +SEQ + =VAL :one + =VAL :two + -SEQ + =VAL :mapping + +MAP + =VAL :sky + =VAL :blue + +MAP + =VAL :sea + =VAL :green + -MAP + =VAL : + -MAP + -MAP + -DOC + -STR +- name: spec-05-03-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "sequence" + : !!seq [ + !!str "one", !!str "two" + ], + ? !!str "mapping" + : !!map { + ? !!str "sky" : !!str "blue", + # ? !!str "sea" : !!str "green", + ? !!map { ? !!str "sea" : !!str "green" } : !!null "", + } + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "sequence + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "one + =VAL <tag:yaml.org,2002:str> "two + -SEQ + =VAL <tag:yaml.org,2002:str> "mapping + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "sky + =VAL <tag:yaml.org,2002:str> "blue + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "sea + =VAL <tag:yaml.org,2002:str> "green + -MAP + =VAL <tag:yaml.org,2002:null> " + -MAP + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-05-04.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-04.yaml new file mode 100644 index 0000000..1e18cc6 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-04.yaml @@ -0,0 +1,59 @@ +%YAML 1.1 +--- +- name: spec-05-04 + yaml: | + sequence: [ one, two, ] + mapping: { sky: blue, sea: green } + tree: | + +STR + +DOC + +MAP + =VAL :sequence + +SEQ [] + =VAL :one + =VAL :two + -SEQ + =VAL :mapping + +MAP {} + =VAL :sky + =VAL :blue + =VAL :sea + =VAL :green + -MAP + -MAP + -DOC + -STR +- name: spec-05-04-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "sequence" + : !!seq [ + !!str "one", !!str "two" + ], + ? !!str "mapping" + : !!map { + ? !!str "sky" : !!str "blue", + ? !!str "sea" : !!str "green", + } + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "sequence + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "one + =VAL <tag:yaml.org,2002:str> "two + -SEQ + =VAL <tag:yaml.org,2002:str> "mapping + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "sky + =VAL <tag:yaml.org,2002:str> "blue + =VAL <tag:yaml.org,2002:str> "sea + =VAL <tag:yaml.org,2002:str> "green + -MAP + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-05-05.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-05.yaml new file mode 100644 index 0000000..ba6c65a --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-05.yaml @@ -0,0 +1,13 @@ +%YAML 1.1 +--- +- name: spec-05-05 + yaml: | + # Comment only. + tree: | + +STR + -STR +- name: spec-05-05-canonical + yaml: "" + tree: | + +STR + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-05-06.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-06.yaml new file mode 100644 index 0000000..97c48e3 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-06.yaml @@ -0,0 +1,38 @@ +%YAML 1.1 +--- +- name: spec-05-06 + yaml: | + anchored: !local &anchor value + alias: *anchor + tree: | + +STR + +DOC + +MAP + =VAL :anchored + =VAL &anchor <!local> :value + =VAL :alias + =ALI *anchor + -MAP + -DOC + -STR +- name: spec-05-06-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "anchored" + : &A1 !local "value", + ? !!str "alias" + : *A1, + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "anchored + =VAL &A1 <!local> "value + =VAL <tag:yaml.org,2002:str> "alias + =ALI *A1 + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-05-07.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-07.yaml new file mode 100644 index 0000000..1338d16 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-07.yaml @@ -0,0 +1,40 @@ +%YAML 1.1 +--- +- name: spec-05-07 + yaml: | + literal: | + text + folded: > + text + tree: | + +STR + +DOC + +MAP + =VAL :literal + =VAL |text\n + =VAL :folded + =VAL >text\n + -MAP + -DOC + -STR +- name: spec-05-07-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "literal" + : !!str "text\n", + ? !!str "folded" + : !!str "text\n", + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "literal + =VAL <tag:yaml.org,2002:str> "text\n + =VAL <tag:yaml.org,2002:str> "folded + =VAL <tag:yaml.org,2002:str> "text\n + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-05-08.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-08.yaml new file mode 100644 index 0000000..716641c --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-08.yaml @@ -0,0 +1,38 @@ +%YAML 1.1 +--- +- name: spec-05-08 + yaml: | + single: 'text' + double: "text" + tree: | + +STR + +DOC + +MAP + =VAL :single + =VAL 'text + =VAL :double + =VAL "text + -MAP + -DOC + -STR +- name: spec-05-08-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "single" + : !!str "text", + ? !!str "double" + : !!str "text", + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "single + =VAL <tag:yaml.org,2002:str> "text + =VAL <tag:yaml.org,2002:str> "double + =VAL <tag:yaml.org,2002:str> "text + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-05-09.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-09.yaml new file mode 100644 index 0000000..7c36e8d --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-09.yaml @@ -0,0 +1,23 @@ +%YAML 1.1 +--- +- name: spec-05-09 + yaml: | + %YAML 1.1 + --- text + tree: | + +STR + +DOC --- + =VAL :text + -DOC + -STR +- name: spec-05-09-canonical + yaml: | + %YAML 1.1 + --- + !!str "text" + tree: | + +STR + +DOC --- + =VAL <tag:yaml.org,2002:str> "text + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-05-10.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-10.yaml new file mode 100644 index 0000000..5a45e25 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-10.yaml @@ -0,0 +1,10 @@ +%YAML 1.1 +--- +- name: spec-05-10 + fail: true + mark: { line: 1, column: 16 } + error: | + While scanning for the next token, found character '@', index 64 that cannot start any token + yaml: | + commercial-at: @text + grave-accent: `text diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-05-11.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-11.yaml new file mode 100644 index 0000000..3bcfbd4 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-11.yaml @@ -0,0 +1,25 @@ +%YAML 1.1 +--- +- name: spec-05-11 + yaml: "|\n Generic line break (no glyph)\n Generic line break (glyphed)\N Line separator\L Paragraph separator\P" + # FIXME + # tree: | + # +STR + # +DOC + # =VAL |Generic line break (no glyph)\nGeneric line break (glyphed)\nLine separator\LParagraph separator\P + # -DOC + # -STR +- name: spec-05-11-canonical + yaml: | + %YAML 1.1 + --- !!str + "Generic line break (no glyph)\n\ + Generic line break (glyphed)\n\ + Line separator\u2028\ + Paragraph separator\u2029" + # tree: | + # +STR + # +DOC --- + # =VAL <tag:yaml.org,2002:str> "Generic line break (no glyph)\nGeneric line break (glyphed)\nLine separator\LParagraph separator\P + # -DOC + # -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-05-12.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-12.yaml new file mode 100644 index 0000000..3e7cb2b --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-12.yaml @@ -0,0 +1,10 @@ +%YAML 1.1 +--- +- name: spec-05-12 + fail: true + mark: { line: 8, column: 11 } + error: | + While scanning for the next token, found character ' ', index 9 that cannot start any token + yaml: "# Tabs do's and don'ts:\n# comment: \t\nquoted: \"Quoted\t\t\"\nblock: |\n\ + \ void main() {\n \tprintf(\"Hello, world!\\n\");\n }\nelsewhere:\t# separation\n\ + \tindentation, in\tplain scalar\n" diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-05-13.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-13.yaml new file mode 100644 index 0000000..f8faf76 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-13.yaml @@ -0,0 +1,19 @@ +%YAML 1.1 +--- +- name: spec-05-13 + yaml: " \"Text containing \n both space and\t\n \ttab\tcharacters\"\n" + tree: | + +STR + +DOC + =VAL "Text containing both space and tab\tcharacters + -DOC + -STR +- name: spec-05-13-canonical + yaml: "%YAML 1.1\n--- !!str\n\"Text containing \\\n both space and \\\n tab\t\ + characters\"\n" + tree: | + +STR + +DOC --- + =VAL <tag:yaml.org,2002:str> "Text containing both space and tab\tcharacters + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-05-14.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-14.yaml new file mode 100644 index 0000000..9665fa9 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-14.yaml @@ -0,0 +1,23 @@ +%YAML 1.1 +--- +- name: spec-05-14 + yaml: | + "Fun with \\ + \" \a \b \e \f \ + \n \r \t \v \0 \
 \ \_ \N \L \P \
 \x41 \u0041 \U00000041" +- name: spec-05-14-canonical + yaml: | + %YAML 1.1 + --- + "Fun with \x5C + \x22 \x07 \x08 \x1B \x0C + \x0A \x0D \x09 \x0B \x00 + \x20 \xA0 \x85 \u2028 \u2029 + A A A" + # FIXME + # tree: | + # +STR + # +DOC --- + # =VAL "Fun with \\ " \a \b \e \f \n \r \t \v \0 \_ \N \L \P A A A + # -DOC + # -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-05-15.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-15.yaml new file mode 100644 index 0000000..a584453 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-15.yaml @@ -0,0 +1,12 @@ +%YAML 1.1 +--- +- name: spec-05-15 + fail: true + mark: { line: 2, column: 5 } + mark2: { line: 2, column: 3 } + error: | + While scanning a double quoted scalar, found unsupported escape character c + yaml: | + Bad escapes: + "\c + \xq-" diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-06-01.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-06-01.yaml new file mode 100644 index 0000000..635877b --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-06-01.yaml @@ -0,0 +1,61 @@ +%YAML 1.1 +--- +- name: spec-06-01 + yaml: " # Leading comment line spaces are\n # neither content nor indentation.\n\ + \ \nNot indented:\n By one space: |\n By four\n spaces\n Flow style:\ + \ [ # Leading spaces\n By two, # in flow style\n Also by two, #\ + \ are neither\n# Tabs are not allowed:\n# \tStill by two # content nor\n Still\ + \ by two # content nor\n ] # indentation.\n" + tree: | + +STR + +DOC + +MAP + =VAL :Not indented + +MAP + =VAL :By one space + =VAL |By four\n spaces\n + =VAL :Flow style + +SEQ [] + =VAL :By two + =VAL :Also by two + =VAL :Still by two + -SEQ + -MAP + -MAP + -DOC + -STR +- name: spec-06-01-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "Not indented" + : !!map { + ? !!str "By one space" + : !!str "By four\n spaces\n", + ? !!str "Flow style" + : !!seq [ + !!str "By two", + !!str "Also by two", + !!str "Still by two", + ] + } + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "Not indented + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "By one space + =VAL <tag:yaml.org,2002:str> "By four\n spaces\n + =VAL <tag:yaml.org,2002:str> "Flow style + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "By two + =VAL <tag:yaml.org,2002:str> "Also by two + =VAL <tag:yaml.org,2002:str> "Still by two + -SEQ + -MAP + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-06-02.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-06-02.yaml new file mode 100644 index 0000000..e7979be --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-06-02.yaml @@ -0,0 +1,12 @@ +%YAML 1.1 +--- +- name: spec-06-02 + yaml: " # Comment\n \n\n" + tree: | + +STR + -STR +- name: spec-06-02-canonical + yaml: "" + tree: | + +STR + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-06-03.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-06-03.yaml new file mode 100644 index 0000000..87f8268 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-06-03.yaml @@ -0,0 +1,33 @@ +%YAML 1.1 +--- +- name: spec-06-03 + yaml: | + key: # Comment + value + tree: | + +STR + +DOC + +MAP + =VAL :key + =VAL :value + -MAP + -DOC + -STR +- name: spec-06-03-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "key" + : !!str "value" + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "key + =VAL <tag:yaml.org,2002:str> "value + -MAP + -DOC + -STR + diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-06-04.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-06-04.yaml new file mode 100644 index 0000000..2a99fcb --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-06-04.yaml @@ -0,0 +1,34 @@ +%YAML 1.1 +--- +- name: spec-06-04 + yaml: |+ + key: # Comment + # lines + value + + tree: | + +STR + +DOC + +MAP + =VAL :key + =VAL :value + -MAP + -DOC + -STR +- name: spec-06-04-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "key" + : !!str "value" + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "key + =VAL <tag:yaml.org,2002:str> "value + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-06-05.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-06-05.yaml new file mode 100644 index 0000000..6bd3ac4 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-06-05.yaml @@ -0,0 +1,66 @@ +%YAML 1.1 +--- +- name: spec-06-05 + yaml: | + { first: Sammy, last: Sosa }: + # Statistics: + hr: # Home runs + 65 + avg: # Average + 0.278 + tree: | + +STR + +DOC + +MAP + +MAP {} + =VAL :first + =VAL :Sammy + =VAL :last + =VAL :Sosa + -MAP + +MAP + =VAL :hr + =VAL :65 + =VAL :avg + =VAL :0.278 + -MAP + -MAP + -DOC + -STR +- name: spec-06-05-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!map { + ? !!str "first" + : !!str "Sammy", + ? !!str "last" + : !!str "Sosa" + } + : !!map { + ? !!str "hr" + : !!int "65", + ? !!str "avg" + : !!float "0.278" + } + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "first + =VAL <tag:yaml.org,2002:str> "Sammy + =VAL <tag:yaml.org,2002:str> "last + =VAL <tag:yaml.org,2002:str> "Sosa + -MAP + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "hr + =VAL <tag:yaml.org,2002:int> "65 + =VAL <tag:yaml.org,2002:str> "avg + =VAL <tag:yaml.org,2002:float> "0.278 + -MAP + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-06-06.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-06-06.yaml new file mode 100644 index 0000000..d3ab9da --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-06-06.yaml @@ -0,0 +1,35 @@ +%YAML 1.1 +--- +- name: spec-06-06 + yaml: "plain: text\n lines\nquoted: \"text\n \tlines\"\nblock: |\n text\n \t\ + lines\n" + tree: | + +STR + +DOC + +MAP + =VAL :plain + =VAL :text lines + =VAL :quoted + =VAL "text lines + =VAL :block + =VAL |text\n \tlines\n + -MAP + -DOC + -STR +- name: spec-06-06-canonical + yaml: "%YAML 1.1\n---\n!!map {\n ? !!str \"plain\"\n : !!str \"text lines\"\ + ,\n ? !!str \"quoted\"\n : !!str \"text lines\",\n ? !!str \"block\"\n : !!str\ + \ \"text\\n \tlines\\n\"\n}\n" + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "plain + =VAL <tag:yaml.org,2002:str> "text lines + =VAL <tag:yaml.org,2002:str> "quoted + =VAL <tag:yaml.org,2002:str> "text lines + =VAL <tag:yaml.org,2002:str> "block + =VAL <tag:yaml.org,2002:str> "text\n \tlines\n + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-06-07.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-06-07.yaml new file mode 100644 index 0000000..ab210d8 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-06-07.yaml @@ -0,0 +1,30 @@ +%YAML 1.1 +--- +- name: spec-06-07 + yaml: "- foo\n \n bar\n- |-\n foo\n \n bar\n \n" + tree: | + +STR + +DOC + +SEQ + =VAL :foo\nbar + =VAL |foo\n\nbar + -SEQ + -DOC + -STR +- name: spec-06-07-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !!str "foo\nbar", + !!str "foo\n\nbar" + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "foo\nbar + =VAL <tag:yaml.org,2002:str> "foo\n\nbar + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-06-08.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-06-08.yaml new file mode 100644 index 0000000..05c3fba --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-06-08.yaml @@ -0,0 +1,18 @@ +%YAML 1.1 +--- +- name: spec-06-08 + yaml: ">-\n specific\L trimmed\N \N \N\N as\N space\n" +- name: spec-06-08-canonical + yaml: | + %YAML 1.1 + --- !!str + "specific\L\ + trimmed\n\n\n\ + as space" + # FIXME + # tree: | + # +STR + # +DOC --- + # =VAL <tag:yaml.org,2002:str> "specific\Ltrimmed\n\n\nas space + # -DOC + # -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-07-01.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-01.yaml new file mode 100644 index 0000000..b8bd3ac --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-01.yaml @@ -0,0 +1,24 @@ +%YAML 1.1 +--- +- name: spec-07-01 + yaml: | + %FOO bar baz # Should be ignored + # with a warning. + --- "foo" + tree: | + +STR + +DOC --- + =VAL "foo + -DOC + -STR +- name: spec-07-01-canonical + yaml: | + %YAML 1.1 + --- !!str + "foo" + tree: | + +STR + +DOC --- + =VAL <tag:yaml.org,2002:str> "foo + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-07-02.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-02.yaml new file mode 100644 index 0000000..7d21c26 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-02.yaml @@ -0,0 +1,25 @@ +%YAML 1.1 +--- +- name: spec-07-02 + yaml: | + %YAML 1.2 # Attempt parsing + # with a warning + --- + "foo" + tree: | + +STR + +DOC --- + =VAL "foo + -DOC + -STR +- name: spec-07-02-canonical + yaml: | + %YAML 1.1 + --- + !!str "foo" + tree: | + +STR + +DOC --- + =VAL <tag:yaml.org,2002:str> "foo + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-07-03.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-03.yaml new file mode 100644 index 0000000..f642cf0 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-03.yaml @@ -0,0 +1,11 @@ +%YAML 1.1 +--- +- name: spec-07-03 + fail: true + mark: { line: 2, column: 1} + error: | + Duplicate YAML directive + yaml: | + %YAML 1.1 + %YAML 1.1 + foo diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-07-04.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-04.yaml new file mode 100644 index 0000000..e4abb19 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-04.yaml @@ -0,0 +1,24 @@ +%YAML 1.1 +--- +- name: spec-07-04 + yaml: | + %TAG !yaml! tag:yaml.org,2002: + --- + !yaml!str "foo" + tree: | + +STR + +DOC --- + =VAL <tag:yaml.org,2002:str> "foo + -DOC + -STR +- name: spec-07-04-canonical + yaml: | + %YAML 1.1 + --- + !!str "foo" + tree: | + +STR + +DOC --- + =VAL <tag:yaml.org,2002:str> "foo + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-07-05.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-05.yaml new file mode 100644 index 0000000..a6d4262 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-05.yaml @@ -0,0 +1,11 @@ +%YAML 1.1 +--- +- name: spec-07-05 + fail: true + mark: { line: 2, column: 1} + error: | + Duplicate tag handle: ! + yaml: | + %TAG ! !foo + %TAG ! !foo + bar diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-07-06.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-06.yaml new file mode 100644 index 0000000..1c561c3 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-06.yaml @@ -0,0 +1,35 @@ +%YAML 1.1 +--- +- name: spec-07-06 + yaml: | + %TAG ! !foo + %TAG !yaml! tag:yaml.org,2002: + --- + - !bar "baz" + - !yaml!str "string" + tree: | + +STR + +DOC --- + +SEQ + =VAL <!foobar> "baz + =VAL <tag:yaml.org,2002:str> "string + -SEQ + -DOC + -STR +- name: spec-07-06-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !<!foobar> "baz", + !<tag:yaml.org,2002:str> "string" + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <!foobar> "baz + =VAL <tag:yaml.org,2002:str> "string + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-07-07.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-07.yaml new file mode 100644 index 0000000..503126c --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-07.yaml @@ -0,0 +1,46 @@ +%YAML 1.1 +--- +- name: spec-07-07a + yaml: | + # Private application: + !foo "bar" + tree: | + +STR + +DOC + =VAL <!foo> "bar + -DOC + -STR +- name: spec-07-07b + yaml: | + # Migrated to global: + %TAG ! tag:ben-kiki.org,2000:app/ + --- + !foo "bar" + tree: | + +STR + +DOC --- + =VAL <tag:ben-kiki.org,2000:app/foo> "bar + -DOC + -STR +- name: spec-07-07a-canonical + yaml: | + %YAML 1.1 + --- + !<!foo> "bar" + tree: | + +STR + +DOC --- + =VAL <!foo> "bar + -DOC + -STR +- name: spec-07-07b-canonical + yaml: | + %YAML 1.1 + --- + !<tag:ben-kiki.org,2000:app/foo> "bar" + tree: | + +STR + +DOC --- + =VAL <tag:ben-kiki.org,2000:app/foo> "bar + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-07-08.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-08.yaml new file mode 100644 index 0000000..4eeb245 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-08.yaml @@ -0,0 +1,42 @@ +%YAML 1.1 +--- +- name: spec-07-08 + yaml: | + # Explicitly specify default settings: + %TAG ! ! + %TAG !! tag:yaml.org,2002: + # Named handles have no default: + %TAG !o! tag:ben-kiki.org,2000: + --- + - !foo "bar" + - !!str "string" + - !o!type "baz" + tree: | + +STR + +DOC --- + +SEQ + =VAL <!foo> "bar + =VAL <tag:yaml.org,2002:str> "string + =VAL <tag:ben-kiki.org,2000:type> "baz + -SEQ + -DOC + -STR +- name: spec-07-08-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !<!foo> "bar", + !<tag:yaml.org,2002:str> "string", + !<tag:ben-kiki.org,2000:type> "baz" + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <!foo> "bar + =VAL <tag:yaml.org,2002:str> "string + =VAL <tag:ben-kiki.org,2000:type> "baz + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-07-09.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-09.yaml new file mode 100644 index 0000000..fae3f43 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-09.yaml @@ -0,0 +1,48 @@ +%YAML 1.1 +--- +- name: spec-07-09 + yaml: | + --- + foo + ... + # Repeated end marker. + ... + --- + bar + # No end marker. + --- + baz + ... + tree: | + +STR + +DOC --- + =VAL :foo + -DOC ... + +DOC --- + =VAL :bar + -DOC + +DOC --- + =VAL :baz + -DOC ... + -STR +- name: spec-07-09-canonical + yaml: | + %YAML 1.1 + --- + !!str "foo" + --- + !!str "bar" + --- + !!str "baz" + tree: | + +STR + +DOC --- + =VAL <tag:yaml.org,2002:str> "foo + -DOC + +DOC --- + =VAL <tag:yaml.org,2002:str> "bar + -DOC + +DOC --- + =VAL <tag:yaml.org,2002:str> "baz + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-07-10.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-10.yaml new file mode 100644 index 0000000..6d1decd --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-10.yaml @@ -0,0 +1,66 @@ +%YAML 1.1 +--- +- name: spec-07-10 + yaml: | + "Root flow + scalar" + --- !!str > + Root block + scalar + --- + # Root collection: + foo : bar + ... # Is optional. + --- + # Explicit document may be empty. + tree: | + +STR + +DOC + =VAL "Root flow scalar + -DOC + +DOC --- + =VAL <tag:yaml.org,2002:str> >Root block scalar\n + -DOC + +DOC --- + +MAP + =VAL :foo + =VAL :bar + -MAP + -DOC ... + +DOC --- + =VAL : + -DOC + -STR +- name: spec-07-10-canonical + yaml: | + %YAML 1.1 + --- + !!str "Root flow scalar" + --- + !!str "Root block scalar\n" + --- + !!map { + ? !!str "foo" + : !!str "bar" + } + --- + #!!str "" + !!null "" + tree: | + +STR + +DOC --- + =VAL <tag:yaml.org,2002:str> "Root flow scalar + -DOC + +DOC --- + =VAL <tag:yaml.org,2002:str> "Root block scalar\n + -DOC + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "foo + =VAL <tag:yaml.org,2002:str> "bar + -MAP + -DOC + +DOC --- + =VAL <tag:yaml.org,2002:null> " + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-07-11.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-11.yaml new file mode 100644 index 0000000..08f5890 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-11.yaml @@ -0,0 +1,14 @@ +%YAML 1.1 +--- +- name: spec-07-11 + yaml: | + # A stream may contain + # no documents. + tree: | + +STR + -STR +- name: spec-07-11-canonical + yaml: "" + tree: | + +STR + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-07-12.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-12.yaml new file mode 100644 index 0000000..9c372da --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-12.yaml @@ -0,0 +1,56 @@ +%YAML 1.1 +--- +- name: spec-07-12a + yaml: | + # Implicit document. Root + # collection (mapping) node. + foo : bar + tree: | + +STR + +DOC + +MAP + =VAL :foo + =VAL :bar + -MAP + -DOC + -STR +- name: spec-07-12a-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "foo" + : !!str "bar" + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "foo + =VAL <tag:yaml.org,2002:str> "bar + -MAP + -DOC + -STR +- name: spec-07-12b + yaml: | + # Explicit document. Root + # scalar (literal) node. + --- | + Text content + tree: | + +STR + +DOC --- + =VAL |Text content\n + -DOC + -STR +- name: spec-07-12b-canonical + yaml: | + %YAML 1.1 + --- + !!str "Text content\n" + tree: | + +STR + +DOC --- + =VAL <tag:yaml.org,2002:str> "Text content\n + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-07-13.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-13.yaml new file mode 100644 index 0000000..4a84726 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-07-13.yaml @@ -0,0 +1,54 @@ +%YAML 1.1 +--- +- name: spec-07-13 + yaml: | + ! "First document" + --- + !foo "No directives" + %TAG ! !foo + --- + !bar "With directives" + %YAML 1.1 + --- + !baz "Reset settings" + tree: | + +STR + +DOC + =VAL <!> "First document + -DOC + +DOC --- + =VAL <!foo> "No directives + -DOC + +DOC --- + =VAL <!foobar> "With directives + -DOC + +DOC --- + =VAL <!baz> "Reset settings + -DOC + -STR +- name: spec-07-13-canonical + yaml: | + %YAML 1.1 + --- + !!str "First document" + --- + !<!foo> "No directives" + --- + !<!foobar> "With directives" + --- + !<!baz> "Reset settings" + tree: | + +STR + +DOC --- + =VAL <tag:yaml.org,2002:str> "First document + -DOC + +DOC --- + =VAL <!foo> "No directives + -DOC + +DOC --- + =VAL <!foobar> "With directives + -DOC + +DOC --- + =VAL <!baz> "Reset settings + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-08-01.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-01.yaml new file mode 100644 index 0000000..38bc958 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-01.yaml @@ -0,0 +1,38 @@ +%YAML 1.1 +--- +- name: spec-08-01 + yaml: | + !!str &a1 "foo" : !!str bar + &a2 baz : *a1 + tree: | + +STR + +DOC + +MAP + =VAL &a1 <tag:yaml.org,2002:str> "foo + =VAL <tag:yaml.org,2002:str> :bar + =VAL &a2 :baz + =ALI *a1 + -MAP + -DOC + -STR +- name: spec-08-01-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? &A1 !!str "foo" + : !!str "bar", + ? &A2 !!str "baz" + : *A1 + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL &A1 <tag:yaml.org,2002:str> "foo + =VAL <tag:yaml.org,2002:str> "bar + =VAL &A2 <tag:yaml.org,2002:str> "baz + =ALI *A1 + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-08-02.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-02.yaml new file mode 100644 index 0000000..f002beb --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-02.yaml @@ -0,0 +1,38 @@ +%YAML 1.1 +--- +- name: spec-08-02 + yaml: | + First occurrence: &anchor Value + Second occurrence: *anchor + tree: | + +STR + +DOC + +MAP + =VAL :First occurrence + =VAL &anchor :Value + =VAL :Second occurrence + =ALI *anchor + -MAP + -DOC + -STR +- name: spec-08-02-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "First occurrence" + : &A !!str "Value", + ? !!str "Second occurrence" + : *A + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "First occurrence + =VAL &A <tag:yaml.org,2002:str> "Value + =VAL <tag:yaml.org,2002:str> "Second occurrence + =ALI *A + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-08-03.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-03.yaml new file mode 100644 index 0000000..6f715bf --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-03.yaml @@ -0,0 +1,32 @@ +%YAML 1.1 +--- +- name: spec-08-03 + yaml: | + !<tag:yaml.org,2002:str> foo : + !<!bar> baz + tree: | + +STR + +DOC + +MAP + =VAL <tag:yaml.org,2002:str> :foo + =VAL <!bar> :baz + -MAP + -DOC + -STR +- name: spec-08-03-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !<tag:yaml.org,2002:str> "foo" + : !<!bar> "baz" + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "foo + =VAL <!bar> "baz + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-08-04.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-04.yaml new file mode 100644 index 0000000..7eac42f --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-04.yaml @@ -0,0 +1,15 @@ +%YAML 1.1 +--- +- name: spec-08-04 + yaml: | + - !<!> foo + - !<$:?> bar + tree: | + +STR + +DOC + +SEQ + =VAL <!> :foo + =VAL <$:?> :bar + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-08-05.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-05.yaml new file mode 100644 index 0000000..1ea2e94 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-05.yaml @@ -0,0 +1,38 @@ +%YAML 1.1 +--- +- name: spec-08-05 + yaml: | + %TAG !o! tag:ben-kiki.org,2000: + --- + - !local foo + - !!str bar + - !o!type baz + tree: | + +STR + +DOC --- + +SEQ + =VAL <!local> :foo + =VAL <tag:yaml.org,2002:str> :bar + =VAL <tag:ben-kiki.org,2000:type> :baz + -SEQ + -DOC + -STR +- name: spec-08-05-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !<!local> "foo", + !<tag:yaml.org,2002:str> "bar", + !<tag:ben-kiki.org,2000:type> "baz", + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <!local> "foo + =VAL <tag:yaml.org,2002:str> "bar + =VAL <tag:ben-kiki.org,2000:type> "baz + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-08-06.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-06.yaml new file mode 100644 index 0000000..6d60148 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-06.yaml @@ -0,0 +1,14 @@ +%YAML 1.1 +--- +- name: spec-08-06 + fail: true + mark: { line: 3, column: 4 } + mark2: { line: 3, column: 3 } + error: | + While scanning a tag, expected a !, but found $ + yaml: | + %TAG !o! tag:ben-kiki.org,2000: + --- + - !$a!b foo + - !o! bar + - !h!type baz diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-08-07.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-07.yaml new file mode 100644 index 0000000..a7abd06 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-07.yaml @@ -0,0 +1,38 @@ +%YAML 1.1 +--- +- name: spec-08-07 + yaml: | + # Assuming conventional resolution: + - "12" + - 12 + - ! 12 + tree: | + +STR + +DOC + +SEQ + =VAL "12 + =VAL :12 + =VAL <!> :12 + -SEQ + -DOC + -STR +- name: spec-08-07-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !<tag:yaml.org,2002:str> "12", + !<tag:yaml.org,2002:int> "12", + # !<tag:yaml.org,2002:str> "12", + !<tag:yaml.org,2002:int> "12", + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "12 + =VAL <tag:yaml.org,2002:int> "12 + =VAL <tag:yaml.org,2002:int> "12 + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-08-08.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-08.yaml new file mode 100644 index 0000000..31bdc3b --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-08.yaml @@ -0,0 +1,67 @@ +%YAML 1.1 +--- +- name: spec-08-08 + yaml: | + --- + foo: + "bar + baz" + --- + "foo + bar" + --- + foo + bar + --- | + foo + ... + tree: | + +STR + +DOC --- + +MAP + =VAL :foo + =VAL "bar baz + -MAP + -DOC + +DOC --- + =VAL "foo bar + -DOC + +DOC --- + =VAL :foo bar + -DOC + +DOC --- + =VAL |foo\n + -DOC ... + -STR +- name: spec-08-08-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "foo" + : !!str "bar baz" + } + --- + !!str "foo bar" + --- + !!str "foo bar" + --- + !!str "foo\n" + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "foo + =VAL <tag:yaml.org,2002:str> "bar baz + -MAP + -DOC + +DOC --- + =VAL <tag:yaml.org,2002:str> "foo bar + -DOC + +DOC --- + =VAL <tag:yaml.org,2002:str> "foo bar + -DOC + +DOC --- + =VAL <tag:yaml.org,2002:str> "foo\n + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-08-09.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-09.yaml new file mode 100644 index 0000000..4faa40b --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-09.yaml @@ -0,0 +1,108 @@ +%YAML 1.1 +--- +- name: spec-08-09 + yaml: | + --- + scalars: + plain: !!str some text + quoted: + single: 'some text' + double: "some text" + collections: + sequence: !!seq [ !!str entry, + # Mapping entry: + key: value ] + mapping: { key: value } + tree: | + +STR + +DOC --- + +MAP + =VAL :scalars + +MAP + =VAL :plain + =VAL <tag:yaml.org,2002:str> :some text + =VAL :quoted + +MAP + =VAL :single + =VAL 'some text + =VAL :double + =VAL "some text + -MAP + -MAP + =VAL :collections + +MAP + =VAL :sequence + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> :entry + +MAP {} + =VAL :key + =VAL :value + -MAP + -SEQ + =VAL :mapping + +MAP {} + =VAL :key + =VAL :value + -MAP + -MAP + -MAP + -DOC + -STR +- name: spec-08-09-canonical + yaml: | + %YAML 1.1 + --- !!map { + ? !!str "scalars" : !!map { + ? !!str "plain" + : !!str "some text", + ? !!str "quoted" + : !!map { + ? !!str "single" + : !!str "some text", + ? !!str "double" + : !!str "some text" + } }, + ? !!str "collections" : !!map { + ? !!str "sequence" : !!seq [ + !!str "entry", + !!map { + ? !!str "key" : !!str "value" + } ], + ? !!str "mapping" : !!map { + ? !!str "key" : !!str "value" + } } } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "scalars + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "plain + =VAL <tag:yaml.org,2002:str> "some text + =VAL <tag:yaml.org,2002:str> "quoted + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "single + =VAL <tag:yaml.org,2002:str> "some text + =VAL <tag:yaml.org,2002:str> "double + =VAL <tag:yaml.org,2002:str> "some text + -MAP + -MAP + =VAL <tag:yaml.org,2002:str> "collections + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "sequence + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "entry + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "key + =VAL <tag:yaml.org,2002:str> "value + -MAP + -SEQ + =VAL <tag:yaml.org,2002:str> "mapping + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "key + =VAL <tag:yaml.org,2002:str> "value + -MAP + -MAP + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-08-10.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-10.yaml new file mode 100644 index 0000000..e68632a --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-10.yaml @@ -0,0 +1,98 @@ +%YAML 1.1 +--- +- name: spec-08-10 + yaml: "block styles:\n scalars:\n literal: !!str |\n #!/usr/bin/perl\n\ + \ print \"Hello, world!\\n\";\n folded: >\n This sentence\n is\ + \ false.\n collections: !!map\n sequence: !!seq # Entry:\n - entry # Plain\n\ + \ # Mapping entry:\n - key: value\n mapping: \n key: value\n" + tree: | + +STR + +DOC + +MAP + =VAL :block styles + +MAP + =VAL :scalars + +MAP + =VAL :literal + =VAL <tag:yaml.org,2002:str> |#!/usr/bin/perl\nprint "Hello, world!\\n";\n + =VAL :folded + =VAL >This sentence is false.\n + -MAP + =VAL :collections + +MAP <tag:yaml.org,2002:map> + =VAL :sequence + +SEQ <tag:yaml.org,2002:seq> + =VAL :entry + +MAP + =VAL :key + =VAL :value + -MAP + -SEQ + =VAL :mapping + +MAP + =VAL :key + =VAL :value + -MAP + -MAP + -MAP + -MAP + -DOC + -STR +- name: spec-08-10-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "block styles" : !!map { + ? !!str "scalars" : !!map { + ? !!str "literal" + : !!str "#!/usr/bin/perl\n\ + print \"Hello, + world!\\n\";\n", + ? !!str "folded" + : !!str "This sentence + is false.\n" + }, + ? !!str "collections" : !!map { + ? !!str "sequence" : !!seq [ + !!str "entry", + !!map { + ? !!str "key" : !!str "value" + } + ], + ? !!str "mapping" : !!map { + ? !!str "key" : !!str "value" + } } } } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "block styles + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "scalars + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "literal + =VAL <tag:yaml.org,2002:str> "#!/usr/bin/perl\nprint "Hello, world!\\n";\n + =VAL <tag:yaml.org,2002:str> "folded + =VAL <tag:yaml.org,2002:str> "This sentence is false.\n + -MAP + =VAL <tag:yaml.org,2002:str> "collections + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "sequence + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "entry + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "key + =VAL <tag:yaml.org,2002:str> "value + -MAP + -SEQ + =VAL <tag:yaml.org,2002:str> "mapping + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "key + =VAL <tag:yaml.org,2002:str> "value + -MAP + -MAP + -MAP + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-08-11.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-11.yaml new file mode 100644 index 0000000..6d18988 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-11.yaml @@ -0,0 +1,38 @@ +%YAML 1.1 +--- +- name: spec-08-11 + yaml: | + First occurrence: &anchor Value + Second occurrence: *anchor + tree: | + +STR + +DOC + +MAP + =VAL :First occurrence + =VAL &anchor :Value + =VAL :Second occurrence + =ALI *anchor + -MAP + -DOC + -STR +- name: spec-08-11-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "First occurrence" + : &A !!str "Value", + ? !!str "Second occurrence" + : *A + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "First occurrence + =VAL &A <tag:yaml.org,2002:str> "Value + =VAL <tag:yaml.org,2002:str> "Second occurrence + =ALI *A + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-08-12.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-12.yaml new file mode 100644 index 0000000..fb784d8 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-12.yaml @@ -0,0 +1,50 @@ +%YAML 1.1 +--- +- name: spec-08-12 + yaml: | + [ + Without properties, + &anchor "Anchored", + !!str 'Tagged', + *anchor, # Alias node + !!str , # Empty plain scalar + '', # Empty plain scalar + ] + tree: | + +STR + +DOC + +SEQ [] + =VAL :Without properties + =VAL &anchor "Anchored + =VAL <tag:yaml.org,2002:str> 'Tagged + =ALI *anchor + =VAL <tag:yaml.org,2002:str> : + =VAL ' + -SEQ + -DOC + -STR +- name: spec-08-12-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !!str "Without properties", + &A !!str "Anchored", + !!str "Tagged", + *A, + !!str "", + !!str "", + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "Without properties + =VAL &A <tag:yaml.org,2002:str> "Anchored + =VAL <tag:yaml.org,2002:str> "Tagged + =ALI *A + =VAL <tag:yaml.org,2002:str> " + =VAL <tag:yaml.org,2002:str> " + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-08-13.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-13.yaml new file mode 100644 index 0000000..2c4f8dd --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-13.yaml @@ -0,0 +1,42 @@ +%YAML 1.1 +--- +- name: spec-08-13 + yaml: | + { + ? foo :, + ? : bar, + } + tree: | + +STR + +DOC + +MAP {} + =VAL :foo + =VAL : + =VAL : + =VAL :bar + -MAP + -DOC + -STR +- name: spec-08-13-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "foo" + # : !!str "", + # ? !!str "" + : !!null "", + ? !!null "" + : !!str "bar", + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "foo + =VAL <tag:yaml.org,2002:null> " + =VAL <tag:yaml.org,2002:null> " + =VAL <tag:yaml.org,2002:str> "bar + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-08-14.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-14.yaml new file mode 100644 index 0000000..d77e8d2 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-14.yaml @@ -0,0 +1,47 @@ +%YAML 1.1 +--- +- name: spec-08-14 + yaml: | + - "flow in block" + - > + Block scalar + - !!map # Block collection + foo : bar + tree: | + +STR + +DOC + +SEQ + =VAL "flow in block + =VAL >Block scalar\n + +MAP <tag:yaml.org,2002:map> + =VAL :foo + =VAL :bar + -MAP + -SEQ + -DOC + -STR +- name: spec-08-14-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !!str "flow in block", + !!str "Block scalar\n", + !!map { + ? !!str "foo" + : !!str "bar" + } + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "flow in block + =VAL <tag:yaml.org,2002:str> "Block scalar\n + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "foo + =VAL <tag:yaml.org,2002:str> "bar + -MAP + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-08-15.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-15.yaml new file mode 100644 index 0000000..66dddde --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-08-15.yaml @@ -0,0 +1,50 @@ +%YAML 1.1 +--- +- name: spec-08-15 + yaml: | + - # Empty plain scalar + - ? foo + : + ? + : bar + tree: | + +STR + +DOC + +SEQ + =VAL : + +MAP + =VAL :foo + =VAL : + =VAL : + =VAL :bar + -MAP + -SEQ + -DOC + -STR +- name: spec-08-15-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !!null "", + !!map { + ? !!str "foo" + : !!null "", + ? !!null "" + : !!str "bar", + } + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:null> " + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "foo + =VAL <tag:yaml.org,2002:null> " + =VAL <tag:yaml.org,2002:null> " + =VAL <tag:yaml.org,2002:str> "bar + -MAP + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-01.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-01.yaml new file mode 100644 index 0000000..51c8fbb --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-01.yaml @@ -0,0 +1,51 @@ +%YAML 1.1 +--- +- name: spec-09-01 + yaml: | + "simple key" : { + "also simple" : value, + ? "not a + simple key" : "any + value" + } + tree: | + +STR + +DOC + +MAP + =VAL "simple key + +MAP {} + =VAL "also simple + =VAL :value + =VAL "not a simple key + =VAL "any value + -MAP + -MAP + -DOC + -STR +- name: spec-09-01-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "simple key" + : !!map { + ? !!str "also simple" + : !!str "value", + ? !!str "not a simple key" + : !!str "any value" + } + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "simple key + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "also simple + =VAL <tag:yaml.org,2002:str> "value + =VAL <tag:yaml.org,2002:str> "not a simple key + =VAL <tag:yaml.org,2002:str> "any value + -MAP + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-02.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-02.yaml new file mode 100644 index 0000000..0737411 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-02.yaml @@ -0,0 +1,20 @@ +%YAML 1.1 +--- +- name: spec-09-02 + yaml: " \"as space\t\n trimmed \n\n specific\L\n escaped\t\\\P \n none\"\n" +- name: spec-09-02-canonical + yaml: | + %YAML 1.1 + --- + !!str "as space \ + trimmed\n\ + specific\L\n\ + escaped\t\n\ + none" + # FIXME + # tree: | + # +STR + # +DOC --- + # =VAL <tag:yaml.org,2002:str> "as space trimmed\nspecific\L\nescaped\t\nnone + # -DOC + # -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-03.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-03.yaml new file mode 100644 index 0000000..fbed7c4 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-03.yaml @@ -0,0 +1,33 @@ +%YAML 1.1 +--- +- name: spec-09-03 + yaml: "- \"\n last\"\n- \" \t\n last\"\n- \" \tfirst\n last\"\n" + tree: | + +STR + +DOC + +SEQ + =VAL " last + =VAL " last + =VAL " \tfirst last + -SEQ + -DOC + -STR +- name: spec-09-03-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !!str " last", + !!str " last", + !!str " \tfirst last", + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> " last + =VAL <tag:yaml.org,2002:str> " last + =VAL <tag:yaml.org,2002:str> " \tfirst last + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-04.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-04.yaml new file mode 100644 index 0000000..d76d880 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-04.yaml @@ -0,0 +1,24 @@ +%YAML 1.1 +--- +- name: spec-09-04 + yaml: " \"first\n \tinner 1\t\n \\ inner 2 \\\n last\"\n" + tree: | + +STR + +DOC + =VAL "first inner 1 inner 2 last + -DOC + -STR +- name: spec-09-04-canonical + yaml: | + %YAML 1.1 + --- + !!str "first \ + inner 1 \ + inner 2 \ + last" + tree: | + +STR + +DOC --- + =VAL <tag:yaml.org,2002:str> "first inner 1 inner 2 last + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-05.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-05.yaml new file mode 100644 index 0000000..11cfd2e --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-05.yaml @@ -0,0 +1,34 @@ +%YAML 1.1 +--- +- name: spec-09-05 + yaml: "- \"first\n \t\"\n- \"first\n\n \tlast\"\n- \"first\n inner\n \\ \tlast\"\ + \n" + tree: | + +STR + +DOC + +SEQ + =VAL "first + =VAL "first\nlast + =VAL "first inner \tlast + -SEQ + -DOC + -STR +- name: spec-09-05-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !!str "first ", + !!str "first\nlast", + !!str "first inner \tlast", + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "first + =VAL <tag:yaml.org,2002:str> "first\nlast + =VAL <tag:yaml.org,2002:str> "first inner \tlast + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-06.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-06.yaml new file mode 100644 index 0000000..ed143c7 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-06.yaml @@ -0,0 +1,22 @@ +%YAML 1.1 +--- +- name: spec-09-06 + yaml: |2 + 'here''s to "quotes"' + tree: | + +STR + +DOC + =VAL 'here's to "quotes" + -DOC + -STR +- name: spec-09-06-canonical + yaml: | + %YAML 1.1 + --- + !!str "here's to \"quotes\"" + tree: | + +STR + +DOC --- + =VAL <tag:yaml.org,2002:str> "here's to "quotes" + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-07.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-07.yaml new file mode 100644 index 0000000..8a3c4cc --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-07.yaml @@ -0,0 +1,51 @@ +%YAML 1.1 +--- +- name: spec-09-07 + yaml: | + 'simple key' : { + 'also simple' : value, + ? 'not a + simple key' : 'any + value' + } + tree: | + +STR + +DOC + +MAP + =VAL 'simple key + +MAP {} + =VAL 'also simple + =VAL :value + =VAL 'not a simple key + =VAL 'any value + -MAP + -MAP + -DOC + -STR +- name: spec-09-07-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "simple key" + : !!map { + ? !!str "also simple" + : !!str "value", + ? !!str "not a simple key" + : !!str "any value" + } + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "simple key + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "also simple + =VAL <tag:yaml.org,2002:str> "value + =VAL <tag:yaml.org,2002:str> "not a simple key + =VAL <tag:yaml.org,2002:str> "any value + -MAP + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-08.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-08.yaml new file mode 100644 index 0000000..53767ad --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-08.yaml @@ -0,0 +1,19 @@ +%YAML 1.1 +--- +- name: spec-09-08 + yaml: " 'as space\t\N trimmed \N\N specific\L\N none'\n" +- name: spec-09-08-canonical + yaml: | + %YAML 1.1 + --- + !!str "as space \ + trimmed\n\ + specific\L\n\ + none" + # FIXME + # tree: | + # +STR + # +DOC --- + # =VAL <tag:yaml.org,2002:str> "as space trimmed\nspecific\L\nnone + # -DOC + # -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-09.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-09.yaml new file mode 100644 index 0000000..e4b960e --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-09.yaml @@ -0,0 +1,33 @@ +%YAML 1.1 +--- +- name: spec-09-09 + yaml: "- '\n last'\n- ' \t\n last'\n- ' \tfirst\n last'\n" + tree: | + +STR + +DOC + +SEQ + =VAL ' last + =VAL ' last + =VAL ' \tfirst last + -SEQ + -DOC + -STR +- name: spec-09-09-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !!str " last", + !!str " last", + !!str " \tfirst last", + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> " last + =VAL <tag:yaml.org,2002:str> " last + =VAL <tag:yaml.org,2002:str> " \tfirst last + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-10.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-10.yaml new file mode 100644 index 0000000..52aa6c3 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-10.yaml @@ -0,0 +1,23 @@ +%YAML 1.1 +--- +- name: spec-09-10 + yaml: " 'first\n \tinner\t\n last'\n" + tree: | + +STR + +DOC + =VAL 'first inner last + -DOC + -STR +- name: spec-09-10-canonical + yaml: | + %YAML 1.1 + --- + !!str "first \ + inner \ + last" + tree: | + +STR + +DOC --- + =VAL <tag:yaml.org,2002:str> "first inner last + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-11.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-11.yaml new file mode 100644 index 0000000..db37a14 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-11.yaml @@ -0,0 +1,30 @@ +%YAML 1.1 +--- +- name: spec-09-11 + yaml: "- 'first\n \t'\n- 'first\n\n \tlast'\n" + tree: | + +STR + +DOC + +SEQ + =VAL 'first + =VAL 'first\nlast + -SEQ + -DOC + -STR +- name: spec-09-11-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !!str "first ", + !!str "first\nlast", + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "first + =VAL <tag:yaml.org,2002:str> "first\nlast + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-12.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-12.yaml new file mode 100644 index 0000000..1fd24da --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-12.yaml @@ -0,0 +1,56 @@ +%YAML 1.1 +--- +- name: spec-09-12 + yaml: | + # Outside flow collection: + - ::std::vector + - Up, up, and away! + - -123 + # Inside flow collection: + - [ '::std::vector', + "Up, up, and away!", + -123 ] + tree: | + +STR + +DOC + +SEQ + =VAL :::std::vector + =VAL :Up, up, and away! + =VAL :-123 + +SEQ [] + =VAL '::std::vector + =VAL "Up, up, and away! + =VAL :-123 + -SEQ + -SEQ + -DOC + -STR +- name: spec-09-12-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !!str "::std::vector", + !!str "Up, up, and away!", + !!int "-123", + !!seq [ + !!str "::std::vector", + !!str "Up, up, and away!", + !!int "-123", + ] + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "::std::vector + =VAL <tag:yaml.org,2002:str> "Up, up, and away! + =VAL <tag:yaml.org,2002:int> "-123 + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "::std::vector + =VAL <tag:yaml.org,2002:str> "Up, up, and away! + =VAL <tag:yaml.org,2002:int> "-123 + -SEQ + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-13.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-13.yaml new file mode 100644 index 0000000..af8f802 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-13.yaml @@ -0,0 +1,37 @@ +%YAML 1.1 +--- +- name: spec-09-13 + yaml: | + simple key : { + also simple : value, + ? not a + simple key : any + value + } +- name: spec-09-13-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "simple key" + : !!map { + ? !!str "also simple" + : !!str "value", + ? !!str "not a simple key" + : !!str "any value" + } + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "simple key + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "also simple + =VAL <tag:yaml.org,2002:str> "value + =VAL <tag:yaml.org,2002:str> "not a simple key + =VAL <tag:yaml.org,2002:str> "any value + -MAP + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-14.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-14.yaml new file mode 100644 index 0000000..de5d69b --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-14.yaml @@ -0,0 +1,23 @@ +%YAML 1.1 +--- +- name: spec-09-14 + mark: { line: 2, column: 6 } + mark2: { line: 2, column: 5 } + yaml: | + --- + --- ||| : foo + ... >>>: bar + --- + [ + --- + , + ... , + { + --- : + ... # Nested + } + ] + ... + fail: true + error: | + While scanning a block scalar, expected a chomping or indentation indicator, but found | diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-15.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-15.yaml new file mode 100644 index 0000000..459f24a --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-15.yaml @@ -0,0 +1,78 @@ +%YAML 1.1 +--- +- name: spec-09-15 + yaml: | + --- + "---" : foo + ...: bar + --- + [ + ---, + ..., + { + ? --- + : ... + } + ] + ... + tree: | + +STR + +DOC --- + +MAP + =VAL "--- + =VAL :foo + =VAL :... + =VAL :bar + -MAP + -DOC + +DOC --- + +SEQ [] + =VAL :--- + =VAL :... + +MAP {} + =VAL :--- + =VAL :... + -MAP + -SEQ + -DOC ... + -STR +- name: spec-09-15-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "---" + : !!str "foo", + ? !!str "..." + : !!str "bar" + } + --- + !!seq [ + !!str "---", + !!str "...", + !!map { + ? !!str "---" + : !!str "..." + } + ] + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "--- + =VAL <tag:yaml.org,2002:str> "foo + =VAL <tag:yaml.org,2002:str> "... + =VAL <tag:yaml.org,2002:str> "bar + -MAP + -DOC + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "--- + =VAL <tag:yaml.org,2002:str> "... + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "--- + =VAL <tag:yaml.org,2002:str> "... + -MAP + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-16.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-16.yaml new file mode 100644 index 0000000..2140587 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-16.yaml @@ -0,0 +1,13 @@ +%YAML 1.1 +--- +- name: spec-09-16 + yaml: "# Tabs are confusing:\n# as space/trimmed/specific/none\n as space \N trimmed\ + \ \N\N specific\L\N none\n" +- name: spec-09-16-canonical + yaml: | + %YAML 1.1 + --- + !!str "as space \ + trimmed\n\ + specific\L\n\ + none" diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-17.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-17.yaml new file mode 100644 index 0000000..caa2d75 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-17.yaml @@ -0,0 +1,22 @@ +%YAML 1.1 +--- +- name: spec-09-17 + yaml: " first line \n \n more line\n" + tree: | + +STR + +DOC + =VAL :first line\nmore line + -DOC + -STR +- name: spec-09-17-canonical + yaml: | + %YAML 1.1 + --- + !!str "first line\n\ + more line" + tree: | + +STR + +DOC --- + =VAL <tag:yaml.org,2002:str> "first line\nmore line + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-18.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-18.yaml new file mode 100644 index 0000000..d6c2deb --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-18.yaml @@ -0,0 +1,45 @@ +%YAML 1.1 +--- +- name: spec-09-18 + yaml: | + - | # Just the style + literal + - >1 # Indentation indicator + folded + - |+ # Chomping indicator + keep + + - >-1 # Both indicators + strip + tree: | + +STR + +DOC + +SEQ + =VAL |literal\n + =VAL > folded\n + =VAL |keep\n\n + =VAL > strip + -SEQ + -DOC + -STR +- name: spec-09-18-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !!str "literal\n", + !!str " folded\n", + !!str "keep\n\n", + !!str " strip", + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "literal\n + =VAL <tag:yaml.org,2002:str> " folded\n + =VAL <tag:yaml.org,2002:str> "keep\n\n + =VAL <tag:yaml.org,2002:str> " strip + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-19.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-19.yaml new file mode 100644 index 0000000..344cfe8 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-19.yaml @@ -0,0 +1,34 @@ +%YAML 1.1 +--- +- name: spec-09-19 + yaml: | + - | + literal + - > + folded + tree: | + +STR + +DOC + +SEQ + =VAL |literal\n + =VAL >folded\n + -SEQ + -DOC + -STR +- name: spec-09-19-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !!str "literal\n", + !!str "folded\n", + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "literal\n + =VAL <tag:yaml.org,2002:str> "folded\n + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-20.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-20.yaml new file mode 100644 index 0000000..40b1883 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-20.yaml @@ -0,0 +1,36 @@ +%YAML 1.1 +--- +- name: spec-09-20 + yaml: "- |\n detected\n- >\n \n \n # detected\n- |1\n explicit\n- >\n \t\n detected\n" + tree: | + +STR + +DOC + +SEQ + =VAL |detected\n + =VAL >\n\n# detected\n + =VAL | explicit\n + =VAL >\t\ndetected\n + -SEQ + -DOC + -STR +- name: spec-09-20-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !!str "detected\n", + !!str "\n\n# detected\n", + !!str " explicit\n", + !!str "\t\ndetected\n", + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "detected\n + =VAL <tag:yaml.org,2002:str> "\n\n# detected\n + =VAL <tag:yaml.org,2002:str> " explicit\n + =VAL <tag:yaml.org,2002:str> "\t\ndetected\n + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-21.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-21.yaml new file mode 100644 index 0000000..40f6e67 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-21.yaml @@ -0,0 +1,9 @@ +%YAML 1.1 +--- +- name: spec-09-21 + fail: true + mark: { line: 3, column: 2 } + mark2: { line: 1, column: 1 } + error: | + While parsing a block sequence, expected block end, but found: scalar + yaml: "- |\n \n text\n- >\n text\n text\n- |1\n text\n" diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-22.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-22.yaml new file mode 100644 index 0000000..315a728 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-22.yaml @@ -0,0 +1,30 @@ +%YAML 1.1 +--- +- name: spec-09-22 + yaml: "strip: |-\n text\Pclip: |\n text\Nkeep: |+\n text\L" +- name: spec-09-22-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "strip" + : !!str "text", + ? !!str "clip" + : !!str "text\n", + ? !!str "keep" + : !!str "text\L", + } + # FIXME + # tree: | + # +STR + # +DOC --- + # +MAP {} <tag:yaml.org,2002:map> + # =VAL <tag:yaml.org,2002:str> "strip + # =VAL <tag:yaml.org,2002:str> "text + # =VAL <tag:yaml.org,2002:str> "clip + # =VAL <tag:yaml.org,2002:str> "text\n + # =VAL <tag:yaml.org,2002:str> "keep + # =VAL <tag:yaml.org,2002:str> "text\L + # -MAP + # -DOC + # -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-23.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-23.yaml new file mode 100644 index 0000000..eae61d5 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-23.yaml @@ -0,0 +1,32 @@ +%YAML 1.1 +--- +- name: spec-09-23 + yaml: " # Strip\n # Comments:\nstrip: |-\n # text\P \L # Clip\n # comments:\n\ + \Nclip: |\n # text\N \P # Keep\n # comments:\n\Nkeep: |+\n # text\L\N # Trail\n\ + \ # comments.\n" +- name: spec-09-23-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "strip" + : !!str "# text", + ? !!str "clip" + : !!str "# text\n", + ? !!str "keep" + : !!str "# text\L\n", + } + # FIXME + # tree: | + # +STR + # +DOC --- + # +MAP {} <tag:yaml.org,2002:map> + # =VAL <tag:yaml.org,2002:str> "strip + # =VAL <tag:yaml.org,2002:str> "# text + # =VAL <tag:yaml.org,2002:str> "clip + # =VAL <tag:yaml.org,2002:str> "# text\n + # =VAL <tag:yaml.org,2002:str> "keep + # =VAL <tag:yaml.org,2002:str> "# text\L\n + # -MAP + # -DOC + # -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-24.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-24.yaml new file mode 100644 index 0000000..1eb31aa --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-24.yaml @@ -0,0 +1,49 @@ +%YAML 1.1 +--- +- name: spec-09-24 + yaml: |+ + strip: >- + + clip: > + + keep: |+ + + # FIXME + # tree: | + # +STR + # +DOC + # +MAP + # =VAL :strip + # =VAL > + # =VAL :clip + # =VAL > + # =VAL :keep + # =VAL | + # -MAP + # -DOC + # -STR +- name: spec-09-24-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "strip" + : !!str "", + ? !!str "clip" + : !!str "", + ? !!str "keep" + : !!str "\n", + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "strip + =VAL <tag:yaml.org,2002:str> " + =VAL <tag:yaml.org,2002:str> "clip + =VAL <tag:yaml.org,2002:str> " + =VAL <tag:yaml.org,2002:str> "keep + =VAL <tag:yaml.org,2002:str> "\n + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-25.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-25.yaml new file mode 100644 index 0000000..f8e9570 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-25.yaml @@ -0,0 +1,22 @@ +%YAML 1.1 +--- +- name: spec-09-25 + yaml: "| # Simple block scalar\n literal\n \ttext\n" + tree: | + +STR + +DOC + =VAL |literal\n\ttext\n + -DOC + -STR +- name: spec-09-25-canonical + yaml: | + %YAML 1.1 + --- + !!str "literal\n\ + \ttext\n" + tree: | + +STR + +DOC --- + =VAL <tag:yaml.org,2002:str> "literal\n\ttext\n + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-26.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-26.yaml new file mode 100644 index 0000000..448fcf0 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-26.yaml @@ -0,0 +1,21 @@ +%YAML 1.1 +--- +- name: spec-09-26 + yaml: "|\n \n \n literal\n \n text\n\n # Comment\n" + tree: | + +STR + +DOC + =VAL |\n\nliteral\n\ntext\n + -DOC + -STR +- name: spec-09-26-canonical + yaml: | + %YAML 1.1 + --- + !!str "\n\nliteral\n\ntext\n" + tree: | + +STR + +DOC --- + =VAL <tag:yaml.org,2002:str> "\n\nliteral\n\ntext\n + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-29.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-29.yaml new file mode 100644 index 0000000..6dde563 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-29.yaml @@ -0,0 +1,22 @@ +%YAML 1.1 +--- +- name: spec-09-29 + yaml: "> # Simple folded scalar\n folded\n text\n \tlines\n" + tree: | + +STR + +DOC + =VAL >folded text\n\tlines\n + -DOC + -STR +- name: spec-09-29-canonical + yaml: | + %YAML 1.1 + --- + !!str "folded text\n\ + \tlines\n" + tree: | + +STR + +DOC --- + =VAL <tag:yaml.org,2002:str> "folded text\n\tlines\n + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-09-30.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-30.yaml new file mode 100644 index 0000000..5b94dc5 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-09-30.yaml @@ -0,0 +1,39 @@ +%YAML 1.1 +--- +- name: spec-09-30 + yaml: | + > + folded + line + + next + line + + * bullet + * list + + last + line + + # Comment + tree: | + +STR + +DOC + =VAL >folded line\nnext line\n\n * bullet\n * list\n\nlast line\n + -DOC + -STR +- name: spec-09-30-canonical + yaml: | + %YAML 1.1 + --- + !!str "folded line\n\ + next line\n\n\ + \ * bullet\n\ + \ * list\n\n\ + last line\n" + tree: | + +STR + +DOC --- + =VAL <tag:yaml.org,2002:str> "folded line\nnext line\n\n * bullet\n * list\n\nlast line\n + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-10-01.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-01.yaml new file mode 100644 index 0000000..e091710 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-01.yaml @@ -0,0 +1,50 @@ +%YAML 1.1 +--- +- name: spec-10-01 + yaml: | + - [ inner, inner, ] + - [inner,last] + tree: | + +STR + +DOC + +SEQ + +SEQ [] + =VAL :inner + =VAL :inner + -SEQ + +SEQ [] + =VAL :inner + =VAL :last + -SEQ + -SEQ + -DOC + -STR +- name: spec-10-01-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !!seq [ + !!str "inner", + !!str "inner", + ], + !!seq [ + !!str "inner", + !!str "last", + ], + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "inner + =VAL <tag:yaml.org,2002:str> "inner + -SEQ + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "inner + =VAL <tag:yaml.org,2002:str> "last + -SEQ + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-10-02.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-02.yaml new file mode 100644 index 0000000..ce0fc7d --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-02.yaml @@ -0,0 +1,62 @@ +%YAML 1.1 +--- +- name: spec-10-02 + yaml: | + [ + "double + quoted", 'single + quoted', + plain + text, [ nested ], + single: pair , + ] + tree: | + +STR + +DOC + +SEQ [] + =VAL "double quoted + =VAL 'single quoted + =VAL :plain text + +SEQ [] + =VAL :nested + -SEQ + +MAP {} + =VAL :single + =VAL :pair + -MAP + -SEQ + -DOC + -STR +- name: spec-10-02-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !!str "double quoted", + !!str "single quoted", + !!str "plain text", + !!seq [ + !!str "nested", + ], + !!map { + ? !!str "single" + : !!str "pair" + } + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "double quoted + =VAL <tag:yaml.org,2002:str> "single quoted + =VAL <tag:yaml.org,2002:str> "plain text + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "nested + -SEQ + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "single + =VAL <tag:yaml.org,2002:str> "pair + -MAP + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-10-03.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-03.yaml new file mode 100644 index 0000000..f11782c --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-03.yaml @@ -0,0 +1,52 @@ +%YAML 1.1 +--- +- name: spec-10-03 + yaml: | + block: # Block + # sequence + - one + - two : three + tree: | + +STR + +DOC + +MAP + =VAL :block + +SEQ + =VAL :one + +MAP + =VAL :two + =VAL :three + -MAP + -SEQ + -MAP + -DOC + -STR +- name: spec-10-03-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "block" + : !!seq [ + !!str "one", + !!map { + ? !!str "two" + : !!str "three" + } + ] + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "block + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "one + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "two + =VAL <tag:yaml.org,2002:str> "three + -MAP + -SEQ + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-10-04.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-04.yaml new file mode 100644 index 0000000..80b7e76 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-04.yaml @@ -0,0 +1,49 @@ +%YAML 1.1 +--- +- name: spec-10-04 + yaml: | + block: + - one + - + - two + tree: | + +STR + +DOC + +MAP + =VAL :block + +SEQ + =VAL :one + +SEQ + =VAL :two + -SEQ + -SEQ + -MAP + -DOC + -STR +- name: spec-10-04-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "block" + : !!seq [ + !!str "one", + !!seq [ + !!str "two" + ] + ] + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "block + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "one + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "two + -SEQ + -SEQ + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-10-05.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-05.yaml new file mode 100644 index 0000000..a16ab82 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-05.yaml @@ -0,0 +1,61 @@ +%YAML 1.1 +--- +- name: spec-10-05 + yaml: | + - # Empty + - | + block node + - - one # in-line + - two # sequence + - one: two # in-line + # mapping + tree: | + +STR + +DOC + +SEQ + =VAL : + =VAL |block node\n + +SEQ + =VAL :one + =VAL :two + -SEQ + +MAP + =VAL :one + =VAL :two + -MAP + -SEQ + -DOC + -STR +- name: spec-10-05-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !!null "", + !!str "block node\n", + !!seq [ + !!str "one", + !!str "two", + ], + !!map { + ? !!str "one" + : !!str "two", + } + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:null> " + =VAL <tag:yaml.org,2002:str> "block node\n + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "one + =VAL <tag:yaml.org,2002:str> "two + -SEQ + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "one + =VAL <tag:yaml.org,2002:str> "two + -MAP + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-10-06.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-06.yaml new file mode 100644 index 0000000..21658e9 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-06.yaml @@ -0,0 +1,62 @@ +%YAML 1.1 +--- +- name: spec-10-06 + yaml: | + - { inner : entry , also: inner , } + - {inner: entry,last : entry} + tree: | + +STR + +DOC + +SEQ + +MAP {} + =VAL :inner + =VAL :entry + =VAL :also + =VAL :inner + -MAP + +MAP {} + =VAL :inner + =VAL :entry + =VAL :last + =VAL :entry + -MAP + -SEQ + -DOC + -STR +- name: spec-10-06-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !!map { + ? !!str "inner" + : !!str "entry", + ? !!str "also" + : !!str "inner" + }, + !!map { + ? !!str "inner" + : !!str "entry", + ? !!str "last" + : !!str "entry" + } + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "inner + =VAL <tag:yaml.org,2002:str> "entry + =VAL <tag:yaml.org,2002:str> "also + =VAL <tag:yaml.org,2002:str> "inner + -MAP + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "inner + =VAL <tag:yaml.org,2002:str> "entry + =VAL <tag:yaml.org,2002:str> "last + =VAL <tag:yaml.org,2002:str> "entry + -MAP + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-10-07.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-07.yaml new file mode 100644 index 0000000..0016e06 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-07.yaml @@ -0,0 +1,67 @@ +%YAML 1.1 +--- +- name: spec-10-07 + yaml: | + { + ? : value, # Empty key + ? explicit + key: value, + simple key : value, + [ collection, simple, key ]: value + } + tree: | + +STR + +DOC + +MAP {} + =VAL : + =VAL :value + =VAL :explicit key + =VAL :value + =VAL :simple key + =VAL :value + +SEQ [] + =VAL :collection + =VAL :simple + =VAL :key + -SEQ + =VAL :value + -MAP + -DOC + -STR +- name: spec-10-07-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!null "" + : !!str "value", + ? !!str "explicit key" + : !!str "value", + ? !!str "simple key" + : !!str "value", + ? !!seq [ + !!str "collection", + !!str "simple", + !!str "key" + ] + : !!str "value" + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:null> " + =VAL <tag:yaml.org,2002:str> "value + =VAL <tag:yaml.org,2002:str> "explicit key + =VAL <tag:yaml.org,2002:str> "value + =VAL <tag:yaml.org,2002:str> "simple key + =VAL <tag:yaml.org,2002:str> "value + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "collection + =VAL <tag:yaml.org,2002:str> "simple + =VAL <tag:yaml.org,2002:str> "key + -SEQ + =VAL <tag:yaml.org,2002:str> "value + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-10-08.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-08.yaml new file mode 100644 index 0000000..8e59eb9 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-08.yaml @@ -0,0 +1,14 @@ +%YAML 1.1 +--- +- name: spec-10-08 + fail: true + mark: { line: 3, column: 13 } + mark2: { line: 1, column: 1 } + error: | + While parsing a flow mapping, expected ',' or '}', but got: value + yaml: | + { + multi-line + simple key : value, + very long ...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................(>1KB)................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... key: value + } diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-10-09.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-09.yaml new file mode 100644 index 0000000..1543056 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-09.yaml @@ -0,0 +1,40 @@ +%YAML 1.1 +--- +- name: spec-10-09 + yaml: | + { + key : value, + empty: # empty value↓ + } + tree: | + +STR + +DOC + +MAP {} + =VAL :key + =VAL :value + =VAL :empty + =VAL : + -MAP + -DOC + -STR +- name: spec-10-09-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "key" + : !!str "value", + ? !!str "empty" + : !!null "", + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "key + =VAL <tag:yaml.org,2002:str> "value + =VAL <tag:yaml.org,2002:str> "empty + =VAL <tag:yaml.org,2002:null> " + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-10-10.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-10.yaml new file mode 100644 index 0000000..40a5fc5 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-10.yaml @@ -0,0 +1,68 @@ +%YAML 1.1 +--- +- name: spec-10-10 + yaml: | + { + ? explicit key1 : explicit value, + ? explicit key2 : , # Explicit empty + ? explicit key3, # Empty value + simple key1 : explicit value, + simple key2 : , # Explicit empty + simple key3, # Empty value + } + tree: | + +STR + +DOC + +MAP {} + =VAL :explicit key1 + =VAL :explicit value + =VAL :explicit key2 + =VAL : + =VAL :explicit key3 + =VAL : + =VAL :simple key1 + =VAL :explicit value + =VAL :simple key2 + =VAL : + =VAL :simple key3 + =VAL : + -MAP + -DOC + -STR +- name: spec-10-10-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "explicit key1" + : !!str "explicit value", + ? !!str "explicit key2" + : !!null "", + ? !!str "explicit key3" + : !!null "", + ? !!str "simple key1" + : !!str "explicit value", + ? !!str "simple key2" + : !!null "", + ? !!str "simple key3" + : !!null "", + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "explicit key1 + =VAL <tag:yaml.org,2002:str> "explicit value + =VAL <tag:yaml.org,2002:str> "explicit key2 + =VAL <tag:yaml.org,2002:null> " + =VAL <tag:yaml.org,2002:str> "explicit key3 + =VAL <tag:yaml.org,2002:null> " + =VAL <tag:yaml.org,2002:str> "simple key1 + =VAL <tag:yaml.org,2002:str> "explicit value + =VAL <tag:yaml.org,2002:str> "simple key2 + =VAL <tag:yaml.org,2002:null> " + =VAL <tag:yaml.org,2002:str> "simple key3 + =VAL <tag:yaml.org,2002:null> " + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-10-11.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-11.yaml new file mode 100644 index 0000000..f1d698b --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-11.yaml @@ -0,0 +1,91 @@ +%YAML 1.1 +--- +- name: spec-10-11 + yaml: | + [ + ? explicit key1 : explicit value, + ? explicit key2 : , # Explicit empty + ? explicit key3, # Implicit empty + simple key1 : explicit value, + simple key2 : , # Explicit empty + ] + tree: | + +STR + +DOC + +SEQ [] + +MAP {} + =VAL :explicit key1 + =VAL :explicit value + -MAP + +MAP {} + =VAL :explicit key2 + =VAL : + -MAP + +MAP {} + =VAL :explicit key3 + =VAL : + -MAP + +MAP {} + =VAL :simple key1 + =VAL :explicit value + -MAP + +MAP {} + =VAL :simple key2 + =VAL : + -MAP + -SEQ + -DOC + -STR +- name: spec-10-11-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !!map { + ? !!str "explicit key1" + : !!str "explicit value", + }, + !!map { + ? !!str "explicit key2" + : !!null "", + }, + !!map { + ? !!str "explicit key3" + : !!null "", + }, + !!map { + ? !!str "simple key1" + : !!str "explicit value", + }, + !!map { + ? !!str "simple key2" + : !!null "", + }, + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "explicit key1 + =VAL <tag:yaml.org,2002:str> "explicit value + -MAP + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "explicit key2 + =VAL <tag:yaml.org,2002:null> " + -MAP + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "explicit key3 + =VAL <tag:yaml.org,2002:null> " + -MAP + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "simple key1 + =VAL <tag:yaml.org,2002:str> "explicit value + -MAP + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "simple key2 + =VAL <tag:yaml.org,2002:null> " + -MAP + -SEQ + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-10-12.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-12.yaml new file mode 100644 index 0000000..72c7c3c --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-12.yaml @@ -0,0 +1,42 @@ +%YAML 1.1 +--- +- name: spec-10-12 + yaml: | + block: # Block + # mapping + key: value + tree: | + +STR + +DOC + +MAP + =VAL :block + +MAP + =VAL :key + =VAL :value + -MAP + -MAP + -DOC + -STR +- name: spec-10-12-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "block" + : !!map { + ? !!str "key" + : !!str "value" + } + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "block + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "key + =VAL <tag:yaml.org,2002:str> "value + -MAP + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-10-13.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-13.yaml new file mode 100644 index 0000000..2547ea5 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-13.yaml @@ -0,0 +1,50 @@ +%YAML 1.1 +--- +- name: spec-10-13 + yaml: | + ? explicit key # implicit value + ? | + block key + : - one # explicit in-line + - two # block value + tree: | + +STR + +DOC + +MAP + =VAL :explicit key + =VAL : + =VAL |block key\n + +SEQ + =VAL :one + =VAL :two + -SEQ + -MAP + -DOC + -STR +- name: spec-10-13-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "explicit key" + : !!null "", + ? !!str "block key\n" + : !!seq [ + !!str "one", + !!str "two", + ] + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "explicit key + =VAL <tag:yaml.org,2002:null> " + =VAL <tag:yaml.org,2002:str> "block key\n + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "one + =VAL <tag:yaml.org,2002:str> "two + -SEQ + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-10-14.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-14.yaml new file mode 100644 index 0000000..4c31edf --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-14.yaml @@ -0,0 +1,49 @@ +%YAML 1.1 +--- +- name: spec-10-14 + yaml: | + plain key: # empty value + "quoted key": + - one # explicit next-line + - two # block value + tree: | + +STR + +DOC + +MAP + =VAL :plain key + =VAL : + =VAL "quoted key + +SEQ + =VAL :one + =VAL :two + -SEQ + -MAP + -DOC + -STR +- name: spec-10-14-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "plain key" + : !!null "", + ? !!str "quoted key" + : !!seq [ + !!str "one", + !!str "two", + ] + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "plain key + =VAL <tag:yaml.org,2002:null> " + =VAL <tag:yaml.org,2002:str> "quoted key + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "one + =VAL <tag:yaml.org,2002:str> "two + -SEQ + -MAP + -DOC + -STR diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-10-15.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-15.yaml new file mode 100644 index 0000000..ae09905 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-10-15.yaml @@ -0,0 +1,69 @@ +%YAML 1.1 +--- +- name: spec-10-15 + yaml: | + - sun: yellow + - ? earth: blue + : moon: white + tree: | + +STR + +DOC + +SEQ + +MAP + =VAL :sun + =VAL :yellow + -MAP + +MAP + +MAP + =VAL :earth + =VAL :blue + -MAP + +MAP + =VAL :moon + =VAL :white + -MAP + -MAP + -SEQ + -DOC + -STR +- name: spec-10-15-canonical + yaml: | + %YAML 1.1 + --- + !!seq [ + !!map { + ? !!str "sun" + : !!str "yellow" + }, + !!map { + ? !!map { + ? !!str "earth" + : !!str "blue" + } + : !!map { + ? !!str "moon" + : !!str "white" + } + } + ] + tree: | + +STR + +DOC --- + +SEQ [] <tag:yaml.org,2002:seq> + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "sun + =VAL <tag:yaml.org,2002:str> "yellow + -MAP + +MAP {} <tag:yaml.org,2002:map> + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "earth + =VAL <tag:yaml.org,2002:str> "blue + -MAP + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "moon + =VAL <tag:yaml.org,2002:str> "white + -MAP + -MAP + -SEQ + -DOC + -STR |