From 2d8e8a1eec48c4f5dedf02934a285ae7a1c35cb3 Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Sat, 16 Nov 2024 11:54:29 +0900 Subject: [PATCH 1/6] add yaml-test-suite --- .../aliases-in-block-sequence/in.json | 6 ++ .../aliases-in-block-sequence/in.yaml | 4 + .../aliases-in-explicit-block-mapping/in.yaml | 3 + .../out.yaml | 2 + .../aliases-in-flow-objects/in.yaml | 1 + .../aliases-in-flow-objects/out.yaml | 8 ++ .../aliases-in-implicit-block-mapping/in.json | 4 + .../aliases-in-implicit-block-mapping/in.yaml | 2 + .../out.yaml | 2 + .../allowed-characters-in-alias/in.json | 4 + .../allowed-characters-in-alias/in.yaml | 2 + .../allowed-characters-in-keys/in.json | 7 ++ .../allowed-characters-in-keys/in.yaml | 5 + .../allowed-characters-in-keys/out.yaml | 5 + .../in.json | 6 ++ .../in.yaml | 5 + .../out.yaml | 4 + .../in.json | 4 + .../in.yaml | 2 + .../out.yaml | 3 + .../anchor-and-alias-as-mapping-key/error | 0 .../anchor-and-alias-as-mapping-key/in.yaml | 2 + .../error | 0 .../in.yaml | 1 + .../in.json | 6 ++ .../in.yaml | 5 + .../out.yaml | 4 + .../anchor-for-empty-node/in.json | 4 + .../anchor-for-empty-node/in.yaml | 3 + .../anchor-for-empty-node/out.yaml | 3 + .../yaml-test-suite/anchor-plus-alias/error | 0 .../yaml-test-suite/anchor-plus-alias/in.yaml | 2 + .../anchor-with-colon-in-the-middle/in.json | 3 + .../anchor-with-colon-in-the-middle/in.yaml | 2 + .../anchor-with-colon-in-the-middle/out.yaml | 2 + .../anchor-with-unicode-character/in.json | 3 + .../anchor-with-unicode-character/in.yaml | 2 + .../anchor-with-unicode-character/out.yaml | 2 + .../yaml-test-suite/anchors-and-tags/in.json | 6 ++ .../yaml-test-suite/anchors-and-tags/in.yaml | 4 + .../yaml-test-suite/anchors-and-tags/out.yaml | 4 + .../anchors-in-mapping/in.json | 4 + .../anchors-in-mapping/in.yaml | 2 + .../anchors-on-empty-scalars/in.yaml | 12 +++ .../anchors-on-empty-scalars/out.yaml | 7 ++ .../anchors-with-colon-in-name/in.json | 4 + .../anchors-with-colon-in-name/in.yaml | 3 + .../anchors-with-colon-in-name/out.yaml | 2 + .../backslashes-in-singlequotes/in.json | 3 + .../backslashes-in-singlequotes/in.yaml | 1 + .../backslashes-in-singlequotes/out.yaml | 1 + .../bad-indentation-in-mapping-2/error | 0 .../bad-indentation-in-mapping-2/in.yaml | 3 + .../bad-indentation-in-mapping/error | 0 .../bad-indentation-in-mapping/in.yaml | 3 + .../in.json | 4 + .../in.yaml | 4 + .../out.yaml | 3 + testdata/yaml-test-suite/blank-lines/in.json | 5 + testdata/yaml-test-suite/blank-lines/in.yaml | 12 +++ testdata/yaml-test-suite/blank-lines/out.yaml | 3 + .../block-mapping-with-missing-keys/in.yaml | 2 + .../block-mapping-with-missing-values/in.json | 5 + .../block-mapping-with-missing-values/in.yaml | 3 + .../out.yaml | 3 + .../in.json | 4 + .../in.yaml | 6 ++ .../out.yaml | 2 + .../block-mappings-in-block-sequence/in.json | 9 ++ .../block-mappings-in-block-sequence/in.yaml | 4 + .../block-mappings-in-block-sequence/out.yaml | 3 + .../block-scalar-indicator-order/in.json | 4 + .../block-scalar-indicator-order/in.yaml | 4 + .../block-scalar-indicator-order/out.yaml | 4 + .../yaml-test-suite/block-scalar-keep/in.json | 1 + .../yaml-test-suite/block-scalar-keep/in.yaml | 5 + .../block-scalar-keep/out.yaml | 2 + .../block-scalar-strip-1-3/in.json | 1 + .../block-scalar-strip-1-3/in.yaml | 5 + .../block-scalar-strip-1-3/out.yaml | 3 + .../block-scalar-strip/in.json | 1 + .../block-scalar-strip/in.yaml | 5 + .../block-scalar-strip/out.yaml | 3 + .../error | 0 .../in.yaml | 5 + .../error | 0 .../in.yaml | 5 + .../block-sequence-in-block-mapping/in.json | 6 ++ .../block-sequence-in-block-mapping/in.yaml | 3 + .../block-sequence-in-block-mapping/out.yaml | 3 + .../block-sequence-in-block-sequence/in.json | 7 ++ .../block-sequence-in-block-sequence/in.yaml | 3 + .../block-sequence-indentation/in.json | 9 ++ .../block-sequence-indentation/in.yaml | 6 ++ .../block-sequence-indentation/out.yaml | 4 + .../yaml-test-suite/block-submapping/in.json | 6 ++ .../yaml-test-suite/block-submapping/in.yaml | 3 + .../in.json | 3 + .../in.yaml | 3 + .../out.yaml | 2 + .../in.json | 3 + .../in.yaml | 3 + .../out.yaml | 2 + .../in.json | 8 ++ .../in.yaml | 2 + .../out.yaml | 2 + .../colon-followed-by-comma/in.json | 3 + .../colon-followed-by-comma/in.yaml | 2 + .../colon-followed-by-comma/out.yaml | 2 + .../colon-in-double-quoted-string/in.json | 1 + .../colon-in-double-quoted-string/in.yaml | 1 + .../comment-and-document-end-marker/in.json | 0 .../comment-and-document-end-marker/in.yaml | 2 + .../comment-and-document-end-marker/out.yaml | 0 .../comment-between-plain-scalar-lines/error | 0 .../in.yaml | 2 + .../in.json | 4 + .../in.yaml | 4 + .../out.yaml | 3 + .../comment-in-plain-multiline-value/error | 0 .../comment-in-plain-multiline-value/in.yaml | 3 + .../error | 0 .../in.yaml | 2 + .../error | 0 .../in.yaml | 2 + .../error | 0 .../in.yaml | 1 + .../yaml-test-suite/construct-binary/in.json | 5 + .../yaml-test-suite/construct-binary/in.yaml | 12 +++ .../dash-in-flow-sequence/error | 0 .../dash-in-flow-sequence/in.yaml | 1 + .../error | 0 .../in.yaml | 1 + .../directive-variants/00/error | 0 .../directive-variants/00/in.yaml | 2 + .../directive-variants/01/error | 0 .../directive-variants/01/in.yaml | 4 + .../directive-variants/02/in.json | 1 + .../directive-variants/02/in.yaml | 2 + .../directive-variants/02/out.yaml | 1 + .../directive-variants/03/in.json | 1 + .../directive-variants/03/in.yaml | 2 + .../directive-variants/03/out.yaml | 1 + .../directive-variants/04/in.json | 1 + .../directive-variants/04/in.yaml | 2 + .../directive-variants/04/out.yaml | 1 + .../directive-variants/05/in.json | 1 + .../directive-variants/05/in.yaml | 2 + .../directive-variants/05/out.yaml | 1 + .../directive-variants/06/in.json | 1 + .../directive-variants/06/in.yaml | 2 + .../directive-variants/06/out.yaml | 1 + .../directive-without-document/error | 0 .../directive-without-document/in.yaml | 2 + .../document-end-marker/in.json | 0 .../document-end-marker/in.yaml | 1 + .../document-end-marker/out.yaml | 0 .../document-start-on-last-line/in.json | 4 + .../document-start-on-last-line/in.yaml | 3 + .../document-start-on-last-line/out.yaml | 4 + .../document-with-footer/in.json | 3 + .../document-with-footer/in.yaml | 2 + .../error | 0 .../in.yaml | 2 + .../error | 0 .../in.yaml | 2 + .../in.json | 3 + .../in.yaml | 2 + .../out.yaml | 2 + .../duplicate-yaml-directive/error | 0 .../duplicate-yaml-directive/in.yaml | 3 + .../empty-flow-collections/in.json | 16 +++ .../empty-flow-collections/in.yaml | 6 ++ .../empty-flow-collections/out.yaml | 6 ++ .../in.yaml | 2 + .../out.yaml | 2 + .../in.yaml | 13 +++ .../empty-lines-at-end-of-document/in.yaml | 3 + .../in.json | 4 + .../in.yaml | 4 + .../out.yaml | 2 + testdata/yaml-test-suite/empty-stream/in.json | 0 testdata/yaml-test-suite/empty-stream/in.yaml | 0 .../escaped-slash-in-double-quotes/in.json | 3 + .../escaped-slash-in-double-quotes/in.yaml | 1 + .../escaped-slash-in-double-quotes/out.yaml | 1 + .../in.json | 3 + .../in.yaml | 4 + .../out.yaml | 2 + .../explicit-non-specific-tag-1-3/in.json | 1 + .../explicit-non-specific-tag-1-3/in.yaml | 2 + .../explicit-non-specific-tag-1-3/out.yaml | 1 + .../explicit-non-specific-tag/in.json | 1 + .../explicit-non-specific-tag/in.yaml | 1 + .../extra-words-on-yaml-directive/error | 0 .../extra-words-on-yaml-directive/in.yaml | 2 + .../flow-collections-over-many-lines/00/error | 0 .../00/in.yaml | 5 + .../01/in.json | 5 + .../01/in.yaml | 5 + .../01/out.yaml | 3 + .../00/in.json | 3 + .../00/in.yaml | 2 + .../01/in.json | 3 + .../01/in.yaml | 2 + .../02/in.json | 3 + .../02/in.yaml | 2 + .../flow-mapping-edge-cases/in.json | 3 + .../flow-mapping-edge-cases/in.yaml | 1 + .../flow-mapping-edge-cases/out.yaml | 1 + .../flow-mapping-in-block-sequence/in.json | 5 + .../flow-mapping-in-block-sequence/in.yaml | 1 + .../flow-mapping-in-block-sequence/out.yaml | 1 + .../flow-mapping-key-on-two-lines/error | 0 .../flow-mapping-key-on-two-lines/in.yaml | 2 + .../error | 0 .../in.yaml | 4 + .../flow-mapping-separate-values/in.yaml | 5 + .../flow-mapping-separate-values/out.yaml | 3 + testdata/yaml-test-suite/flow-mapping/in.json | 4 + testdata/yaml-test-suite/flow-mapping/in.yaml | 1 + .../yaml-test-suite/flow-mapping/out.yaml | 2 + .../flow-sequence-in-block-mapping/in.json | 6 ++ .../flow-sequence-in-block-mapping/in.yaml | 1 + .../flow-sequence-in-block-mapping/out.yaml | 3 + .../flow-sequence-in-flow-mapping/in.yaml | 1 + .../flow-sequence-in-flow-mapping/out.yaml | 6 ++ .../flow-sequence-in-flow-sequence/in.json | 7 ++ .../flow-sequence-in-flow-sequence/in.yaml | 1 + .../flow-sequence-in-flow-sequence/out.yaml | 3 + .../error | 0 .../in.yaml | 2 + .../error | 0 .../in.yaml | 2 + .../error | 0 .../in.yaml | 2 + .../error | 0 .../in.yaml | 2 + .../yaml-test-suite/flow-sequence/in.json | 5 + .../yaml-test-suite/flow-sequence/in.yaml | 1 + .../yaml-test-suite/flow-sequence/out.yaml | 3 + .../folded-block-scalar-1-3/in.json | 1 + .../folded-block-scalar-1-3/in.yaml | 8 ++ .../folded-block-scalar-1-3/out.yaml | 7 ++ .../folded-block-scalar/in.json | 1 + .../folded-block-scalar/in.yaml | 8 ++ .../folded-block-scalar/out.yaml | 7 ++ .../in.yaml | 1 + .../out.yaml | 2 + .../error | 0 .../in.yaml | 2 + .../implicit-key-followed-by-newline/error | 0 .../implicit-key-followed-by-newline/in.yaml | 3 + .../inline-tabs-in-double-quoted/00/in.json | 1 + .../inline-tabs-in-double-quoted/00/in.yaml | 1 + .../inline-tabs-in-double-quoted/01/in.json | 1 + .../inline-tabs-in-double-quoted/01/in.yaml | 1 + .../inline-tabs-in-double-quoted/01/out.yaml | 1 + .../inline-tabs-in-double-quoted/02/in.json | 1 + .../inline-tabs-in-double-quoted/02/in.yaml | 1 + .../inline-tabs-in-double-quoted/02/out.yaml | 1 + .../error | 0 .../in.yaml | 5 + .../error | 0 .../in.yaml | 2 + .../invalid-comma-in-tag/error | 0 .../invalid-comma-in-tag/in.yaml | 1 + .../invalid-comment-after-comma/error | 0 .../invalid-comment-after-comma/in.yaml | 3 + .../error | 0 .../in.yaml | 2 + .../error | 0 .../in.yaml | 3 + .../error | 0 .../in.yaml | 4 + .../error | 0 .../in.yaml | 4 + .../error | 0 .../in.yaml | 4 + .../error | 0 .../in.yaml | 2 + .../error | 0 .../in.yaml | 5 + .../invalid-mapping-after-sequence/error | 0 .../invalid-mapping-after-sequence/in.yaml | 3 + .../invalid-mapping-in-plain-multiline/error | 0 .../in.yaml | 3 + .../invalid-mapping-in-plain-scalar/error | 0 .../invalid-mapping-in-plain-scalar/in.yaml | 3 + .../error | 0 .../in.yaml | 1 + .../invalid-nested-mapping/error | 0 .../invalid-nested-mapping/in.yaml | 2 + .../invalid-scalar-after-sequence/error | 0 .../invalid-scalar-after-sequence/in.yaml | 3 + .../error | 0 .../in.yaml | 4 + .../error | 0 .../in.yaml | 4 + .../error | 0 .../in.yaml | 2 + .../error | 0 .../in.yaml | 4 + testdata/yaml-test-suite/invalid-tag/error | 0 testdata/yaml-test-suite/invalid-tag/in.yaml | 2 + .../error | 0 .../in.yaml | 3 + .../invalid-value-after-mapping/error | 0 .../invalid-value-after-mapping/in.yaml | 3 + .../in.json | 5 + .../in.yaml | 4 + .../out.yaml | 4 + .../00/in.json | 1 + .../00/in.yaml | 2 + .../00/out.yaml | 2 + .../01/in.json | 1 + .../01/in.yaml | 2 + .../01/out.yaml | 2 + .../leading-tabs-in-double-quoted/00/in.json | 1 + .../leading-tabs-in-double-quoted/00/in.yaml | 2 + .../leading-tabs-in-double-quoted/01/in.json | 1 + .../leading-tabs-in-double-quoted/01/in.yaml | 2 + .../leading-tabs-in-double-quoted/02/in.json | 1 + .../leading-tabs-in-double-quoted/02/in.yaml | 2 + .../leading-tabs-in-double-quoted/03/in.json | 1 + .../leading-tabs-in-double-quoted/03/in.yaml | 2 + .../leading-tabs-in-double-quoted/04/in.json | 1 + .../leading-tabs-in-double-quoted/04/in.yaml | 2 + .../leading-tabs-in-double-quoted/05/in.json | 1 + .../leading-tabs-in-double-quoted/05/in.yaml | 2 + .../legal-tab-after-indentation/in.json | 5 + .../legal-tab-after-indentation/in.yaml | 3 + .../legal-tab-after-indentation/out.yaml | 2 + .../error | 0 .../in.yaml | 5 + .../literal-block-scalar/in.json | 3 + .../literal-block-scalar/in.yaml | 8 ++ .../literal-block-scalar/out.yaml | 6 ++ .../yaml-test-suite/literal-modifers/00/error | 0 .../literal-modifers/00/in.yaml | 1 + .../yaml-test-suite/literal-modifers/01/error | 0 .../literal-modifers/01/in.yaml | 1 + .../literal-modifers/02/in.json | 1 + .../literal-modifers/02/in.yaml | 1 + .../literal-modifers/03/in.json | 1 + .../literal-modifers/03/in.yaml | 1 + .../yaml-test-suite/literal-scalars/in.json | 6 ++ .../yaml-test-suite/literal-scalars/in.yaml | 4 + .../yaml-test-suite/literal-scalars/out.yaml | 5 + .../yaml-test-suite/literal-unicode/in.json | 3 + .../yaml-test-suite/literal-unicode/in.yaml | 2 + .../yaml-test-suite/literal-unicode/out.yaml | 2 + .../lookahead-test-cases/in.json | 8 ++ .../lookahead-test-cases/in.yaml | 2 + .../in.yaml | 3 + .../out.yaml | 6 ++ .../mapping-starting-at-line/error | 0 .../mapping-starting-at-line/in.yaml | 2 + .../error | 0 .../in.yaml | 1 + testdata/yaml-test-suite/missing-colon/error | 0 .../yaml-test-suite/missing-colon/in.yaml | 3 + .../missing-comma-in-flow/error | 0 .../missing-comma-in-flow/in.yaml | 3 + .../error | 0 .../in.yaml | 5 + .../in.json | 4 + .../in.yaml | 3 + .../out.yaml | 2 + .../in.json | 4 + .../in.yaml | 3 + .../out.yaml | 2 + .../in.json | 4 + .../in.yaml | 9 ++ .../multi-level-mapping-indent/in.json | 11 +++ .../multi-level-mapping-indent/in.yaml | 6 ++ .../in.json | 8 ++ .../in.yaml | 4 + .../out.yaml | 3 + .../error | 0 .../in.yaml | 3 + .../in.json | 10 ++ .../in.yaml | 4 + .../out.yaml | 5 + .../multiline-implicit-keys/error | 0 .../multiline-implicit-keys/in.yaml | 3 + .../in.json | 10 ++ .../in.yaml | 4 + .../out.yaml | 5 + .../multiline-plain-flow-mapping-key/in.json | 8 ++ .../multiline-plain-flow-mapping-key/in.yaml | 4 + .../multiline-plain-flow-mapping-key/out.yaml | 3 + .../in.json | 3 + .../in.yaml | 5 + .../out.yaml | 4 + .../in.json | 3 + .../in.yaml | 5 + .../out.yaml | 3 + .../multiline-scalar-at-top-level-1-3/in.json | 1 + .../multiline-scalar-at-top-level-1-3/in.yaml | 7 ++ .../out.yaml | 3 + .../multiline-scalar-at-top-level/in.json | 1 + .../multiline-scalar-at-top-level/in.yaml | 6 ++ .../multiline-scalar-at-top-level/out.yaml | 3 + .../multiline-scalar-in-mapping/in.json | 4 + .../multiline-scalar-in-mapping/in.yaml | 5 + .../multiline-scalar-in-mapping/out.yaml | 2 + .../in.json | 1 + .../in.yaml | 3 + .../out.yaml | 2 + .../error | 0 .../in.yaml | 3 + .../error | 0 .../in.yaml | 2 + .../multiple-entry-block-sequence/in.json | 5 + .../multiple-entry-block-sequence/in.yaml | 3 + .../multiple-pair-block-mapping/in.json | 5 + .../multiple-pair-block-mapping/in.yaml | 3 + .../error | 0 .../in.yaml | 4 + .../in.json | 12 +++ .../in.yaml | 2 + .../out.yaml | 7 ++ .../nested-flow-collections/in.json | 12 +++ .../nested-flow-collections/in.yaml | 8 ++ .../nested-flow-collections/out.yaml | 7 ++ .../in.json | 10 ++ .../in.yaml | 2 + .../out.yaml | 6 ++ .../nested-implicit-complex-keys/in.yaml | 4 + .../nested-implicit-complex-keys/out.yaml | 7 ++ .../nested-top-level-flow-mapping/in.json | 9 ++ .../nested-top-level-flow-mapping/in.yaml | 4 + .../nested-top-level-flow-mapping/out.yaml | 2 + .../in.json | 5 + .../in.yaml | 3 + .../out.yaml | 2 + .../node-anchor-in-sequence/error | 0 .../node-anchor-in-sequence/in.yaml | 3 + .../node-anchor-not-indented/error | 0 .../node-anchor-not-indented/in.yaml | 3 + .../node-and-mapping-key-anchors-1-3/in.json | 19 ++++ .../node-and-mapping-key-anchors-1-3/in.yaml | 15 +++ .../node-and-mapping-key-anchors-1-3/out.yaml | 13 +++ .../node-and-mapping-key-anchors/in.json | 19 ++++ .../node-and-mapping-key-anchors/in.yaml | 17 ++++ .../node-and-mapping-key-anchors/out.yaml | 13 +++ .../non-specific-tags-on-scalars/in.json | 7 ++ .../non-specific-tags-on-scalars/in.yaml | 6 ++ .../plain-dashes-in-flow-sequence/error | 0 .../plain-dashes-in-flow-sequence/in.yaml | 2 + .../in.json | 3 + .../in.yaml | 2 + .../out.yaml | 2 + .../in.json | 1 + .../in.yaml | 3 + .../out.yaml | 1 + .../plain-scalar-with-backslashes/in.json | 1 + .../plain-scalar-with-backslashes/in.yaml | 2 + .../plain-scalar-with-backslashes/out.yaml | 1 + .../plain-url-in-flow-mapping/in.json | 5 + .../plain-url-in-flow-mapping/in.yaml | 1 + .../plain-url-in-flow-mapping/out.yaml | 1 + .../in.json | 4 + .../in.yaml | 3 + .../out.yaml | 3 + .../question-mark-edge-cases/00/in.yaml | 1 + .../question-mark-edge-cases/00/out.yaml | 2 + .../question-mark-edge-cases/01/in.yaml | 1 + .../question-mark-edge-cases/01/out.yaml | 2 + .../question-marks-in-scalars/in.json | 22 +++++ .../question-marks-in-scalars/in.yaml | 8 ++ .../question-marks-in-scalars/out.yaml | 8 ++ .../scalar-doc-with-in-content/00/in.json | 1 + .../scalar-doc-with-in-content/00/in.yaml | 3 + .../scalar-doc-with-in-content/00/out.yaml | 1 + .../scalar-doc-with-in-content/01/error | 0 .../scalar-doc-with-in-content/01/in.json | 1 + .../scalar-doc-with-in-content/01/in.yaml | 3 + .../scalar-value-with-two-anchors/error | 0 .../scalar-value-with-two-anchors/in.yaml | 4 + .../00/in.json | 3 + .../00/in.yaml | 1 + .../00/out.yaml | 1 + .../01/in.json | 3 + .../01/in.yaml | 1 + .../01/out.yaml | 1 + .../yaml-test-suite/scalars-on-line/in.json | 2 + .../yaml-test-suite/scalars-on-line/in.yaml | 3 + .../yaml-test-suite/scalars-on-line/out.yaml | 3 + .../in.json | 3 + .../in.yaml | 2 + .../out.yaml | 1 + .../yaml-test-suite/sequence-indent/in.json | 8 ++ .../yaml-test-suite/sequence-indent/in.yaml | 4 + .../yaml-test-suite/sequence-indent/out.yaml | 4 + .../error | 0 .../in.yaml | 2 + .../in.json | 7 ++ .../in.yaml | 4 + .../simple-mapping-indent/in.json | 5 + .../simple-mapping-indent/in.yaml | 2 + .../in.json | 3 + .../in.yaml | 2 + .../out.yaml | 2 + .../single-block-sequence-with-anchor/in.json | 3 + .../single-block-sequence-with-anchor/in.yaml | 2 + .../out.yaml | 2 + .../single-character-streams/00/in.json | 1 + .../single-character-streams/00/in.yaml | 1 + .../single-character-streams/00/out.yaml | 1 + .../single-character-streams/01/in.yaml | 1 + .../single-character-streams/01/out.yaml | 1 + .../single-entry-block-sequence/in.json | 3 + .../single-entry-block-sequence/in.yaml | 1 + .../single-pair-block-mapping/in.json | 3 + .../single-pair-block-mapping/in.yaml | 1 + .../single-pair-implicit-entries/in.yaml | 3 + .../single-pair-implicit-entries/out.yaml | 4 + .../in.json | 5 + .../in.yaml | 3 + .../lex.token | 8 ++ .../in.json | 10 ++ .../in.yaml | 8 ++ .../out.yaml | 7 ++ .../in.yaml | 9 ++ .../out.yaml | 8 ++ .../in.json | 14 +++ .../in.yaml | 8 ++ .../out.yaml | 7 ++ .../in.json | 1 + .../in.yaml | 4 + .../out.yaml | 3 + .../in.json | 1 + .../in.yaml | 4 + .../out.yaml | 2 + .../in.json | 1 + .../in.yaml | 8 ++ .../out.yaml | 7 ++ .../in.json | 5 + .../in.yaml | 7 ++ .../out.yaml | 6 ++ .../spec-example-2-17-quoted-scalars/in.json | 8 ++ .../spec-example-2-17-quoted-scalars/in.yaml | 7 ++ .../spec-example-2-17-quoted-scalars/out.yaml | 6 ++ .../in.json | 4 + .../in.yaml | 6 ++ .../out.yaml | 2 + .../in.json | 5 + .../in.yaml | 3 + .../out.yaml | 3 + .../spec-example-2-24-global-tags/in.json | 27 ++++++ .../spec-example-2-24-global-tags/in.yaml | 14 +++ .../spec-example-2-24-global-tags/out.yaml | 15 +++ .../spec-example-2-25-unordered-sets/in.json | 5 + .../spec-example-2-25-unordered-sets/in.yaml | 7 ++ .../spec-example-2-25-unordered-sets/out.yaml | 4 + .../in.json | 11 +++ .../in.yaml | 11 +++ .../out.yaml | 4 + .../spec-example-2-27-invoice/in.json | 41 ++++++++ .../spec-example-2-27-invoice/in.yaml | 29 ++++++ .../spec-example-2-27-invoice/out.yaml | 26 +++++ .../spec-example-2-28-log-file/in.json | 27 ++++++ .../spec-example-2-28-log-file/in.yaml | 26 +++++ .../spec-example-2-28-log-file/out.yaml | 21 ++++ .../in.json | 12 +++ .../in.yaml | 8 ++ .../out.yaml | 8 ++ .../in.json | 12 +++ .../in.yaml | 8 ++ .../out.yaml | 6 ++ .../in.json | 17 ++++ .../in.yaml | 3 + .../out.yaml | 9 ++ .../in.json | 10 ++ .../in.yaml | 5 + .../out.yaml | 6 ++ .../in.json | 9 ++ .../in.yaml | 10 ++ .../out.yaml | 7 ++ .../in.json | 10 ++ .../in.yaml | 10 ++ .../in.json | 10 ++ .../in.yaml | 8 ++ .../out.yaml | 7 ++ .../spec-example-5-12-tabs-and-spaces/in.json | 4 + .../spec-example-5-12-tabs-and-spaces/in.yaml | 6 ++ .../out.yaml | 5 + .../in.json | 10 ++ .../in.yaml | 7 ++ .../out.yaml | 6 ++ .../in.json | 10 ++ .../in.yaml | 2 + .../out.yaml | 6 ++ .../in.json | 0 .../in.yaml | 1 + .../out.yaml | 0 .../in.json | 4 + .../in.yaml | 2 + .../out.yaml | 2 + .../in.json | 4 + .../in.yaml | 6 ++ .../out.yaml | 5 + .../in.json | 4 + .../in.yaml | 2 + .../in.json | 1 + .../in.yaml | 2 + .../out.yaml | 1 + .../in.json | 10 ++ .../in.yaml | 12 +++ .../out.yaml | 8 ++ .../spec-example-6-10-comment-lines/in.json | 0 .../spec-example-6-10-comment-lines/in.yaml | 4 + .../spec-example-6-10-comment-lines/out.yaml | 0 .../in.json | 3 + .../in.yaml | 5 + .../out.yaml | 1 + .../in.yaml | 6 ++ .../out.yaml | 4 + .../in.json | 1 + .../in.yaml | 4 + .../out.yaml | 2 + .../in.json | 1 + .../in.yaml | 3 + .../out.yaml | 1 + .../spec-example-6-14-yaml-directive/in.json | 1 + .../spec-example-6-14-yaml-directive/in.yaml | 4 + .../spec-example-6-14-yaml-directive/out.yaml | 1 + .../spec-example-6-16-tag-directive/in.json | 1 + .../spec-example-6-16-tag-directive/in.yaml | 3 + .../spec-example-6-16-tag-directive/out.yaml | 1 + .../in.json | 2 + .../in.yaml | 8 ++ .../out.yaml | 5 + .../in.json | 2 + .../in.yaml | 7 ++ .../out.yaml | 3 + .../in.json | 1 + .../in.yaml | 3 + .../out.yaml | 1 + .../in.json | 9 ++ .../in.yaml | 4 + .../out.yaml | 4 + .../spec-example-6-20-tag-handles/in.json | 1 + .../spec-example-6-20-tag-handles/in.yaml | 3 + .../spec-example-6-20-tag-handles/out.yaml | 1 + .../in.json | 2 + .../in.yaml | 7 ++ .../in.json | 3 + .../in.yaml | 3 + .../out.yaml | 2 + .../spec-example-6-23-node-properties/in.json | 4 + .../spec-example-6-23-node-properties/in.yaml | 3 + .../out.yaml | 2 + .../spec-example-6-24-verbatim-tags/in.json | 3 + .../spec-example-6-24-verbatim-tags/in.yaml | 2 + .../spec-example-6-24-verbatim-tags/out.yaml | 1 + .../spec-example-6-26-tag-shorthands/in.json | 5 + .../spec-example-6-26-tag-shorthands/in.yaml | 5 + .../in.json | 5 + .../in.yaml | 4 + .../out.yaml | 3 + .../spec-example-6-29-node-anchors/in.json | 4 + .../spec-example-6-29-node-anchors/in.yaml | 2 + .../in.json | 9 ++ .../in.yaml | 3 + .../out.yaml | 3 + .../spec-example-6-4-line-prefixes/in.json | 5 + .../spec-example-6-4-line-prefixes/in.yaml | 7 ++ .../spec-example-6-4-line-prefixes/out.yaml | 3 + .../spec-example-6-5-empty-lines-1-3/in.json | 4 + .../spec-example-6-5-empty-lines-1-3/in.yaml | 8 ++ .../spec-example-6-5-empty-lines-1-3/out.yaml | 3 + .../spec-example-6-5-empty-lines/in.json | 4 + .../spec-example-6-5-empty-lines/in.yaml | 8 ++ .../spec-example-6-5-empty-lines/out.yaml | 3 + .../spec-example-6-6-line-folding-1-3/in.json | 1 + .../spec-example-6-6-line-folding-1-3/in.yaml | 7 ++ .../out.yaml | 6 ++ .../spec-example-6-6-line-folding/in.json | 1 + .../spec-example-6-6-line-folding/in.yaml | 7 ++ .../spec-example-6-6-line-folding/out.yaml | 6 ++ .../spec-example-6-7-block-folding/in.json | 1 + .../spec-example-6-7-block-folding/in.yaml | 6 ++ .../spec-example-6-7-block-folding/out.yaml | 1 + .../spec-example-6-8-flow-folding-1-3/in.json | 1 + .../spec-example-6-8-flow-folding-1-3/in.yaml | 8 ++ .../out.yaml | 1 + .../spec-example-6-8-flow-folding/in.json | 1 + .../spec-example-6-8-flow-folding/in.yaml | 7 ++ .../spec-example-6-8-flow-folding/out.yaml | 1 + .../in.json | 3 + .../in.yaml | 2 + .../out.yaml | 1 + .../spec-example-7-1-alias-nodes/in.json | 6 ++ .../spec-example-7-1-alias-nodes/in.yaml | 4 + .../in.json | 14 +++ .../in.yaml | 12 +++ .../out.yaml | 10 ++ .../in.json | 7 ++ .../in.yaml | 3 + .../out.yaml | 2 + .../spec-example-7-12-plain-lines/in.json | 1 + .../spec-example-7-12-plain-lines/in.yaml | 4 + .../spec-example-7-12-plain-lines/out.yaml | 3 + .../spec-example-7-13-flow-sequence/in.json | 10 ++ .../spec-example-7-13-flow-sequence/in.yaml | 2 + .../spec-example-7-13-flow-sequence/out.yaml | 4 + .../in.json | 11 +++ .../in.yaml | 8 ++ .../out.yaml | 5 + .../spec-example-7-15-flow-mappings/in.json | 10 ++ .../spec-example-7-15-flow-mappings/in.yaml | 2 + .../spec-example-7-15-flow-mappings/out.yaml | 4 + .../in.yaml | 5 + .../out.yaml | 3 + .../in.json | 5 + .../in.yaml | 5 + .../out.yaml | 3 + .../in.json | 5 + .../in.yaml | 3 + .../out.yaml | 1 + .../spec-example-7-2-empty-content/in.json | 4 + .../spec-example-7-2-empty-content/in.yaml | 4 + .../spec-example-7-2-empty-content/out.yaml | 2 + .../in.json | 5 + .../in.yaml | 4 + .../out.yaml | 1 + .../spec-example-7-23-flow-content/in.json | 12 +++ .../spec-example-7-23-flow-content/in.yaml | 5 + .../spec-example-7-23-flow-content/out.yaml | 6 ++ .../spec-example-7-24-flow-nodes/in.json | 7 ++ .../spec-example-7-24-flow-nodes/in.yaml | 5 + .../in.yaml | 4 + .../in.json | 7 ++ .../in.yaml | 3 + .../out.yaml | 2 + .../in.json | 1 + .../in.yaml | 6 ++ .../out.yaml | 1 + .../in.json | 1 + .../in.yaml | 5 + .../out.yaml | 1 + .../in.json | 1 + .../in.yaml | 5 + .../out.yaml | 1 + .../in.json | 1 + .../in.yaml | 4 + .../out.yaml | 1 + .../in.json | 1 + .../in.yaml | 2 + .../out.yaml | 1 + .../in.json | 1 + .../in.yaml | 1 + .../in.json | 7 ++ .../in.yaml | 3 + .../out.yaml | 2 + .../in.json | 1 + .../in.yaml | 5 + .../out.yaml | 3 + .../in.json | 1 + .../in.yaml | 4 + .../out.yaml | 3 + .../in.json | 6 ++ .../in.yaml | 9 ++ .../out.yaml | 9 ++ .../in.json | 1 + .../in.yaml | 16 +++ .../out.yaml | 11 +++ .../spec-example-8-14-block-sequence/in.json | 8 ++ .../spec-example-8-14-block-sequence/in.yaml | 3 + .../spec-example-8-14-block-sequence/out.yaml | 3 + .../in.json | 11 +++ .../in.yaml | 6 ++ .../out.yaml | 6 ++ .../spec-example-8-16-block-mappings/in.json | 5 + .../spec-example-8-16-block-mappings/in.yaml | 2 + .../spec-example-8-16-block-mappings/out.yaml | 2 + .../in.json | 7 ++ .../in.yaml | 5 + .../out.yaml | 5 + .../in.yaml | 4 + .../in.yaml | 3 + .../in.json | 6 ++ .../in.yaml | 10 ++ .../in.json | 6 ++ .../in.yaml | 11 +++ .../out.yaml | 9 ++ .../in.json | 7 ++ .../in.yaml | 6 ++ .../out.yaml | 5 + .../in.json | 4 + .../in.yaml | 4 + .../out.yaml | 4 + .../in.json | 4 + .../in.yaml | 6 ++ .../out.yaml | 4 + .../in.json | 11 +++ .../in.yaml | 6 ++ .../out.yaml | 6 ++ .../in.json | 5 + .../in.yaml | 6 ++ .../out.yaml | 6 ++ .../in.json | 5 + .../in.yaml | 19 ++++ .../out.yaml | 8 ++ .../in.json | 5 + .../in.yaml | 6 ++ .../out.yaml | 5 + .../in.json | 1 + .../in.yaml | 5 + .../out.yaml | 1 + .../spec-example-8-7-literal-scalar/in.json | 1 + .../spec-example-8-7-literal-scalar/in.yaml | 5 + .../spec-example-8-7-literal-scalar/out.yaml | 3 + .../in.json | 1 + .../in.yaml | 9 ++ .../out.yaml | 1 + .../spec-example-8-8-literal-content/in.json | 1 + .../spec-example-8-8-literal-content/in.yaml | 9 ++ .../spec-example-8-8-literal-content/out.yaml | 1 + .../in.json | 1 + .../in.yaml | 5 + .../out.yaml | 2 + .../spec-example-8-9-folded-scalar/in.json | 1 + .../spec-example-8-9-folded-scalar/in.yaml | 5 + .../spec-example-8-9-folded-scalar/out.yaml | 2 + .../spec-example-9-2-document-markers/in.json | 1 + .../spec-example-9-2-document-markers/in.yaml | 4 + .../out.yaml | 2 + .../spec-example-9-3-bare-documents/in.json | 2 + .../spec-example-9-3-bare-documents/in.yaml | 7 ++ .../in.json | 4 + .../in.yaml | 7 ++ .../out.yaml | 5 + .../in.json | 2 + .../in.yaml | 8 ++ .../out.yaml | 5 + .../spec-example-9-6-stream-1-3/in.json | 7 ++ .../spec-example-9-6-stream-1-3/in.yaml | 7 ++ .../spec-example-9-6-stream/in.json | 5 + .../spec-example-9-6-stream/in.yaml | 7 ++ .../syntax-character-edge-cases/00/in.yaml | 1 + .../syntax-character-edge-cases/01/in.json | 3 + .../syntax-character-edge-cases/01/in.yaml | 1 + .../syntax-character-edge-cases/02/in.yaml | 1 + .../tab-after-document-header/in.json | 1 + .../tab-after-document-header/in.yaml | 1 + .../tab-after-document-header/out.yaml | 2 + .../in.json | 1 + .../in.yaml | 1 + .../out.yaml | 1 + .../tab-indented-top-flow/in.json | 1 + .../tab-indented-top-flow/in.yaml | 2 + .../tabs-in-various-contexts/000/error | 0 .../tabs-in-various-contexts/000/in.yaml | 3 + .../tabs-in-various-contexts/001/in.json | 4 + .../tabs-in-various-contexts/001/in.yaml | 3 + .../tabs-in-various-contexts/001/out.yaml | 3 + .../tabs-in-various-contexts/002/in.json | 5 + .../tabs-in-various-contexts/002/in.yaml | 4 + .../tabs-in-various-contexts/002/out.yaml | 1 + .../tabs-in-various-contexts/003/error | 0 .../tabs-in-various-contexts/003/in.yaml | 4 + .../tabs-in-various-contexts/003/out.yaml | 1 + .../tabs-in-various-contexts/004/error | 0 .../tabs-in-various-contexts/004/in.yaml | 1 + .../tabs-in-various-contexts/004/out.yaml | 1 + .../tabs-in-various-contexts/005/error | 0 .../tabs-in-various-contexts/005/in.yaml | 1 + .../tabs-in-various-contexts/005/out.yaml | 1 + .../tabs-in-various-contexts/006/error | 0 .../tabs-in-various-contexts/006/in.yaml | 1 + .../tabs-in-various-contexts/006/out.yaml | 1 + .../tabs-in-various-contexts/007/error | 0 .../tabs-in-various-contexts/007/in.yaml | 2 + .../tabs-in-various-contexts/007/out.yaml | 1 + .../tabs-in-various-contexts/008/error | 0 .../tabs-in-various-contexts/008/in.yaml | 1 + .../tabs-in-various-contexts/008/out.yaml | 1 + .../tabs-in-various-contexts/009/error | 0 .../tabs-in-various-contexts/009/in.yaml | 2 + .../tabs-in-various-contexts/009/out.yaml | 1 + .../tabs-in-various-contexts/010/in.json | 3 + .../tabs-in-various-contexts/010/in.yaml | 1 + .../tabs-in-various-contexts/010/out.yaml | 1 + .../00/in.json | 3 + .../00/in.yaml | 2 + .../tabs-that-look-like-indentation/01/error | 0 .../01/in.json | 3 + .../01/in.yaml | 2 + .../02/in.json | 3 + .../02/in.yaml | 2 + .../03/in.json | 3 + .../03/in.yaml | 2 + .../04/in.json | 4 + .../04/in.yaml | 3 + .../05/in.json | 4 + .../05/in.yaml | 3 + .../tabs-that-look-like-indentation/06/error | 0 .../06/in.json | 4 + .../06/in.yaml | 3 + .../07/in.json | 1 + .../07/in.yaml | 3 + .../08/in.json | 3 + .../08/in.yaml | 2 + .../error | 0 .../in.yaml | 7 ++ .../tags-for-block-objects/in.json | 8 ++ .../tags-for-block-objects/in.yaml | 4 + .../tags-for-block-objects/out.yaml | 4 + .../tags-for-flow-objects/in.json | 6 ++ .../tags-for-flow-objects/in.yaml | 4 + .../tags-for-flow-objects/out.yaml | 4 + .../tags-for-root-objects/in.json | 7 ++ .../tags-for-root-objects/in.yaml | 8 ++ .../tags-for-root-objects/out.yaml | 5 + .../tags-in-block-sequence/in.json | 6 ++ .../tags-in-block-sequence/in.yaml | 4 + .../tags-in-block-sequence/out.yaml | 4 + .../tags-in-explicit-mapping/in.json | 4 + .../tags-in-explicit-mapping/in.yaml | 4 + .../tags-in-explicit-mapping/out.yaml | 2 + .../tags-in-implicit-mapping/in.json | 7 ++ .../tags-in-implicit-mapping/in.yaml | 5 + .../tags-in-implicit-mapping/out.yaml | 5 + .../tags-on-empty-scalars/in.yaml | 5 + .../tags-on-empty-scalars/out.yaml | 4 + .../in.json | 1 + .../in.yaml | 3 + .../out.yaml | 1 + .../in.json | 1 + .../in.yaml | 2 + .../out.yaml | 1 + .../in.json | 5 + .../in.yaml | 4 + .../out.yaml | 4 + .../error | 0 .../in.yaml | 4 + .../trailing-content-after-quoted-value/error | 0 .../in.yaml | 3 + .../error | 0 .../in.yaml | 3 + .../trailing-line-of-spaces/00/in.json | 3 + .../trailing-line-of-spaces/00/in.yaml | 3 + .../trailing-line-of-spaces/01/in.json | 3 + .../trailing-line-of-spaces/01/in.yaml | 3 + .../in.json | 5 + .../in.yaml | 2 + .../out.yaml | 3 + .../trailing-tabs-in-double-quoted/00/in.json | 1 + .../trailing-tabs-in-double-quoted/00/in.yaml | 2 + .../00/out.yaml | 1 + .../trailing-tabs-in-double-quoted/01/in.json | 1 + .../trailing-tabs-in-double-quoted/01/in.yaml | 2 + .../01/out.yaml | 1 + .../trailing-tabs-in-double-quoted/02/in.json | 1 + .../trailing-tabs-in-double-quoted/02/in.yaml | 2 + .../02/out.yaml | 1 + .../trailing-tabs-in-double-quoted/03/in.json | 1 + .../trailing-tabs-in-double-quoted/03/in.yaml | 2 + .../03/out.yaml | 1 + .../trailing-tabs-in-double-quoted/04/in.json | 1 + .../trailing-tabs-in-double-quoted/04/in.yaml | 2 + .../04/out.yaml | 1 + .../trailing-tabs-in-double-quoted/05/in.json | 1 + .../trailing-tabs-in-double-quoted/05/in.yaml | 2 + .../05/out.yaml | 1 + .../trailing-whitespace-in-streams/00/in.json | 3 + .../trailing-whitespace-in-streams/00/in.yaml | 3 + .../00/out.yaml | 4 + .../trailing-whitespace-in-streams/01/in.json | 3 + .../trailing-whitespace-in-streams/01/in.yaml | 2 + .../01/out.yaml | 3 + .../trailing-whitespace-in-streams/02/in.json | 3 + .../trailing-whitespace-in-streams/02/in.yaml | 2 + .../02/out.yaml | 3 + .../two-document-start-markers/in.json | 2 + .../two-document-start-markers/in.yaml | 2 + .../two-document-start-markers/out.yaml | 2 + .../in.json | 2 + .../in.yaml | 2 + .../out.yaml | 2 + .../in.yaml | 16 +++ .../out.yaml | 17 ++++ .../in.json | 17 ++++ .../in.yaml | 26 +++++ .../out.yaml | 13 +++ .../in.json | 10 ++ .../in.yaml | 23 +++++ .../in.json | 14 +++ .../in.yaml | 6 ++ .../out.yaml | 6 ++ .../various-trailing-comments-1-3/in.yaml | 15 +++ .../various-trailing-comments-1-3/out.yaml | 9 ++ .../various-trailing-comments/in.yaml | 16 +++ .../various-trailing-comments/out.yaml | 9 ++ .../various-trailing-tabs/in.json | 7 ++ .../various-trailing-tabs/in.yaml | 4 + .../various-trailing-tabs/out.yaml | 4 + .../whitespace-after-scalars-in-flow/in.json | 13 +++ .../whitespace-after-scalars-in-flow/in.yaml | 6 ++ .../whitespace-after-scalars-in-flow/out.yaml | 7 ++ .../in.json | 18 ++++ .../in.yaml | 12 +++ .../out.yaml | 11 +++ .../wrong-indendation-in-map/error | 0 .../wrong-indendation-in-map/in.yaml | 3 + .../wrong-indendation-in-mapping/error | 0 .../wrong-indendation-in-mapping/in.yaml | 2 + .../wrong-indendation-in-sequence/error | 0 .../wrong-indendation-in-sequence/in.yaml | 4 + .../wrong-indented-flow-sequence/error | 0 .../wrong-indented-flow-sequence/in.yaml | 4 + .../error | 0 .../in.yaml | 4 + .../wrong-indented-sequence-item/error | 0 .../wrong-indented-sequence-item/in.yaml | 2 + .../error | 0 .../in.yaml | 4 + testdata/yaml-test-suite/yaml.go | 85 ++++++++++++++++ .../in.json | 1 + .../in.yaml | 4 + .../out.yaml | 2 + .../zero-indented-block-scalar/in.json | 1 + .../zero-indented-block-scalar/in.yaml | 4 + .../zero-indented-block-scalar/out.yaml | 2 + .../in.yaml | 7 ++ testdata/yamltestsuite_test.go | 97 +++++++++++++++++++ 1030 files changed, 4120 insertions(+) create mode 100644 testdata/yaml-test-suite/aliases-in-block-sequence/in.json create mode 100644 testdata/yaml-test-suite/aliases-in-block-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/aliases-in-explicit-block-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/aliases-in-explicit-block-mapping/out.yaml create mode 100644 testdata/yaml-test-suite/aliases-in-flow-objects/in.yaml create mode 100644 testdata/yaml-test-suite/aliases-in-flow-objects/out.yaml create mode 100644 testdata/yaml-test-suite/aliases-in-implicit-block-mapping/in.json create mode 100644 testdata/yaml-test-suite/aliases-in-implicit-block-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/aliases-in-implicit-block-mapping/out.yaml create mode 100644 testdata/yaml-test-suite/allowed-characters-in-alias/in.json create mode 100644 testdata/yaml-test-suite/allowed-characters-in-alias/in.yaml create mode 100644 testdata/yaml-test-suite/allowed-characters-in-keys/in.json create mode 100644 testdata/yaml-test-suite/allowed-characters-in-keys/in.yaml create mode 100644 testdata/yaml-test-suite/allowed-characters-in-keys/out.yaml create mode 100644 testdata/yaml-test-suite/allowed-characters-in-plain-scalars/in.json create mode 100644 testdata/yaml-test-suite/allowed-characters-in-plain-scalars/in.yaml create mode 100644 testdata/yaml-test-suite/allowed-characters-in-plain-scalars/out.yaml create mode 100644 testdata/yaml-test-suite/allowed-characters-in-quoted-mapping-key/in.json create mode 100644 testdata/yaml-test-suite/allowed-characters-in-quoted-mapping-key/in.yaml create mode 100644 testdata/yaml-test-suite/allowed-characters-in-quoted-mapping-key/out.yaml create mode 100644 testdata/yaml-test-suite/anchor-and-alias-as-mapping-key/error create mode 100644 testdata/yaml-test-suite/anchor-and-alias-as-mapping-key/in.yaml create mode 100644 testdata/yaml-test-suite/anchor-before-sequence-entry-on-same-line/error create mode 100644 testdata/yaml-test-suite/anchor-before-sequence-entry-on-same-line/in.yaml create mode 100644 testdata/yaml-test-suite/anchor-before-zero-indented-sequence/in.json create mode 100644 testdata/yaml-test-suite/anchor-before-zero-indented-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/anchor-before-zero-indented-sequence/out.yaml create mode 100644 testdata/yaml-test-suite/anchor-for-empty-node/in.json create mode 100644 testdata/yaml-test-suite/anchor-for-empty-node/in.yaml create mode 100644 testdata/yaml-test-suite/anchor-for-empty-node/out.yaml create mode 100644 testdata/yaml-test-suite/anchor-plus-alias/error create mode 100644 testdata/yaml-test-suite/anchor-plus-alias/in.yaml create mode 100644 testdata/yaml-test-suite/anchor-with-colon-in-the-middle/in.json create mode 100644 testdata/yaml-test-suite/anchor-with-colon-in-the-middle/in.yaml create mode 100644 testdata/yaml-test-suite/anchor-with-colon-in-the-middle/out.yaml create mode 100644 testdata/yaml-test-suite/anchor-with-unicode-character/in.json create mode 100644 testdata/yaml-test-suite/anchor-with-unicode-character/in.yaml create mode 100644 testdata/yaml-test-suite/anchor-with-unicode-character/out.yaml create mode 100644 testdata/yaml-test-suite/anchors-and-tags/in.json create mode 100644 testdata/yaml-test-suite/anchors-and-tags/in.yaml create mode 100644 testdata/yaml-test-suite/anchors-and-tags/out.yaml create mode 100644 testdata/yaml-test-suite/anchors-in-mapping/in.json create mode 100644 testdata/yaml-test-suite/anchors-in-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/anchors-on-empty-scalars/in.yaml create mode 100644 testdata/yaml-test-suite/anchors-on-empty-scalars/out.yaml create mode 100644 testdata/yaml-test-suite/anchors-with-colon-in-name/in.json create mode 100644 testdata/yaml-test-suite/anchors-with-colon-in-name/in.yaml create mode 100644 testdata/yaml-test-suite/anchors-with-colon-in-name/out.yaml create mode 100644 testdata/yaml-test-suite/backslashes-in-singlequotes/in.json create mode 100644 testdata/yaml-test-suite/backslashes-in-singlequotes/in.yaml create mode 100644 testdata/yaml-test-suite/backslashes-in-singlequotes/out.yaml create mode 100644 testdata/yaml-test-suite/bad-indentation-in-mapping-2/error create mode 100644 testdata/yaml-test-suite/bad-indentation-in-mapping-2/in.yaml create mode 100644 testdata/yaml-test-suite/bad-indentation-in-mapping/error create mode 100644 testdata/yaml-test-suite/bad-indentation-in-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/bare-document-after-document-end-marker/in.json create mode 100644 testdata/yaml-test-suite/bare-document-after-document-end-marker/in.yaml create mode 100644 testdata/yaml-test-suite/bare-document-after-document-end-marker/out.yaml create mode 100644 testdata/yaml-test-suite/blank-lines/in.json create mode 100644 testdata/yaml-test-suite/blank-lines/in.yaml create mode 100644 testdata/yaml-test-suite/blank-lines/out.yaml create mode 100644 testdata/yaml-test-suite/block-mapping-with-missing-keys/in.yaml create mode 100644 testdata/yaml-test-suite/block-mapping-with-missing-values/in.json create mode 100644 testdata/yaml-test-suite/block-mapping-with-missing-values/in.yaml create mode 100644 testdata/yaml-test-suite/block-mapping-with-missing-values/out.yaml create mode 100644 testdata/yaml-test-suite/block-mapping-with-multiline-scalars/in.json create mode 100644 testdata/yaml-test-suite/block-mapping-with-multiline-scalars/in.yaml create mode 100644 testdata/yaml-test-suite/block-mapping-with-multiline-scalars/out.yaml create mode 100644 testdata/yaml-test-suite/block-mappings-in-block-sequence/in.json create mode 100644 testdata/yaml-test-suite/block-mappings-in-block-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/block-mappings-in-block-sequence/out.yaml create mode 100644 testdata/yaml-test-suite/block-scalar-indicator-order/in.json create mode 100644 testdata/yaml-test-suite/block-scalar-indicator-order/in.yaml create mode 100644 testdata/yaml-test-suite/block-scalar-indicator-order/out.yaml create mode 100644 testdata/yaml-test-suite/block-scalar-keep/in.json create mode 100644 testdata/yaml-test-suite/block-scalar-keep/in.yaml create mode 100644 testdata/yaml-test-suite/block-scalar-keep/out.yaml create mode 100644 testdata/yaml-test-suite/block-scalar-strip-1-3/in.json create mode 100644 testdata/yaml-test-suite/block-scalar-strip-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/block-scalar-strip-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/block-scalar-strip/in.json create mode 100644 testdata/yaml-test-suite/block-scalar-strip/in.yaml create mode 100644 testdata/yaml-test-suite/block-scalar-strip/out.yaml create mode 100644 testdata/yaml-test-suite/block-scalar-with-more-spaces-than-first-content-line/error create mode 100644 testdata/yaml-test-suite/block-scalar-with-more-spaces-than-first-content-line/in.yaml create mode 100644 testdata/yaml-test-suite/block-scalar-with-wrong-indented-line-after-spaces-only/error create mode 100644 testdata/yaml-test-suite/block-scalar-with-wrong-indented-line-after-spaces-only/in.yaml create mode 100644 testdata/yaml-test-suite/block-sequence-in-block-mapping/in.json create mode 100644 testdata/yaml-test-suite/block-sequence-in-block-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/block-sequence-in-block-mapping/out.yaml create mode 100644 testdata/yaml-test-suite/block-sequence-in-block-sequence/in.json create mode 100644 testdata/yaml-test-suite/block-sequence-in-block-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/block-sequence-indentation/in.json create mode 100644 testdata/yaml-test-suite/block-sequence-indentation/in.yaml create mode 100644 testdata/yaml-test-suite/block-sequence-indentation/out.yaml create mode 100644 testdata/yaml-test-suite/block-submapping/in.json create mode 100644 testdata/yaml-test-suite/block-submapping/in.yaml create mode 100644 testdata/yaml-test-suite/colon-and-adjacent-value-after-comment-on-next-line/in.json create mode 100644 testdata/yaml-test-suite/colon-and-adjacent-value-after-comment-on-next-line/in.yaml create mode 100644 testdata/yaml-test-suite/colon-and-adjacent-value-after-comment-on-next-line/out.yaml create mode 100644 testdata/yaml-test-suite/colon-and-adjacent-value-on-next-line/in.json create mode 100644 testdata/yaml-test-suite/colon-and-adjacent-value-on-next-line/in.yaml create mode 100644 testdata/yaml-test-suite/colon-and-adjacent-value-on-next-line/out.yaml create mode 100644 testdata/yaml-test-suite/colon-at-the-beginning-of-adjacent-flow-scalar/in.json create mode 100644 testdata/yaml-test-suite/colon-at-the-beginning-of-adjacent-flow-scalar/in.yaml create mode 100644 testdata/yaml-test-suite/colon-at-the-beginning-of-adjacent-flow-scalar/out.yaml create mode 100644 testdata/yaml-test-suite/colon-followed-by-comma/in.json create mode 100644 testdata/yaml-test-suite/colon-followed-by-comma/in.yaml create mode 100644 testdata/yaml-test-suite/colon-followed-by-comma/out.yaml create mode 100644 testdata/yaml-test-suite/colon-in-double-quoted-string/in.json create mode 100644 testdata/yaml-test-suite/colon-in-double-quoted-string/in.yaml create mode 100644 testdata/yaml-test-suite/comment-and-document-end-marker/in.json create mode 100644 testdata/yaml-test-suite/comment-and-document-end-marker/in.yaml create mode 100644 testdata/yaml-test-suite/comment-and-document-end-marker/out.yaml create mode 100644 testdata/yaml-test-suite/comment-between-plain-scalar-lines/error create mode 100644 testdata/yaml-test-suite/comment-between-plain-scalar-lines/in.yaml create mode 100644 testdata/yaml-test-suite/comment-in-flow-sequence-before-comma/in.json create mode 100644 testdata/yaml-test-suite/comment-in-flow-sequence-before-comma/in.yaml create mode 100644 testdata/yaml-test-suite/comment-in-flow-sequence-before-comma/out.yaml create mode 100644 testdata/yaml-test-suite/comment-in-plain-multiline-value/error create mode 100644 testdata/yaml-test-suite/comment-in-plain-multiline-value/in.yaml create mode 100644 testdata/yaml-test-suite/comment-that-looks-like-a-mapping-key/error create mode 100644 testdata/yaml-test-suite/comment-that-looks-like-a-mapping-key/in.yaml create mode 100644 testdata/yaml-test-suite/comment-without-whitespace-after-block-scalar-indicator/error create mode 100644 testdata/yaml-test-suite/comment-without-whitespace-after-block-scalar-indicator/in.yaml create mode 100644 testdata/yaml-test-suite/comment-without-whitespace-after-doublequoted-scalar/error create mode 100644 testdata/yaml-test-suite/comment-without-whitespace-after-doublequoted-scalar/in.yaml create mode 100644 testdata/yaml-test-suite/construct-binary/in.json create mode 100644 testdata/yaml-test-suite/construct-binary/in.yaml create mode 100644 testdata/yaml-test-suite/dash-in-flow-sequence/error create mode 100644 testdata/yaml-test-suite/dash-in-flow-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/directive-by-itself-with-no-document/error create mode 100644 testdata/yaml-test-suite/directive-by-itself-with-no-document/in.yaml create mode 100644 testdata/yaml-test-suite/directive-variants/00/error create mode 100644 testdata/yaml-test-suite/directive-variants/00/in.yaml create mode 100644 testdata/yaml-test-suite/directive-variants/01/error create mode 100644 testdata/yaml-test-suite/directive-variants/01/in.yaml create mode 100644 testdata/yaml-test-suite/directive-variants/02/in.json create mode 100644 testdata/yaml-test-suite/directive-variants/02/in.yaml create mode 100644 testdata/yaml-test-suite/directive-variants/02/out.yaml create mode 100644 testdata/yaml-test-suite/directive-variants/03/in.json create mode 100644 testdata/yaml-test-suite/directive-variants/03/in.yaml create mode 100644 testdata/yaml-test-suite/directive-variants/03/out.yaml create mode 100644 testdata/yaml-test-suite/directive-variants/04/in.json create mode 100644 testdata/yaml-test-suite/directive-variants/04/in.yaml create mode 100644 testdata/yaml-test-suite/directive-variants/04/out.yaml create mode 100644 testdata/yaml-test-suite/directive-variants/05/in.json create mode 100644 testdata/yaml-test-suite/directive-variants/05/in.yaml create mode 100644 testdata/yaml-test-suite/directive-variants/05/out.yaml create mode 100644 testdata/yaml-test-suite/directive-variants/06/in.json create mode 100644 testdata/yaml-test-suite/directive-variants/06/in.yaml create mode 100644 testdata/yaml-test-suite/directive-variants/06/out.yaml create mode 100644 testdata/yaml-test-suite/directive-without-document/error create mode 100644 testdata/yaml-test-suite/directive-without-document/in.yaml create mode 100644 testdata/yaml-test-suite/document-end-marker/in.json create mode 100644 testdata/yaml-test-suite/document-end-marker/in.yaml create mode 100644 testdata/yaml-test-suite/document-end-marker/out.yaml create mode 100644 testdata/yaml-test-suite/document-start-on-last-line/in.json create mode 100644 testdata/yaml-test-suite/document-start-on-last-line/in.yaml create mode 100644 testdata/yaml-test-suite/document-start-on-last-line/out.yaml create mode 100644 testdata/yaml-test-suite/document-with-footer/in.json create mode 100644 testdata/yaml-test-suite/document-with-footer/in.yaml create mode 100644 testdata/yaml-test-suite/double-quoted-scalar-with-escaped-single-quote/error create mode 100644 testdata/yaml-test-suite/double-quoted-scalar-with-escaped-single-quote/in.yaml create mode 100644 testdata/yaml-test-suite/double-quoted-string-without-closing-quote/error create mode 100644 testdata/yaml-test-suite/double-quoted-string-without-closing-quote/in.yaml create mode 100644 testdata/yaml-test-suite/doublequoted-scalar-starting-with-a-tab/in.json create mode 100644 testdata/yaml-test-suite/doublequoted-scalar-starting-with-a-tab/in.yaml create mode 100644 testdata/yaml-test-suite/doublequoted-scalar-starting-with-a-tab/out.yaml create mode 100644 testdata/yaml-test-suite/duplicate-yaml-directive/error create mode 100644 testdata/yaml-test-suite/duplicate-yaml-directive/in.yaml create mode 100644 testdata/yaml-test-suite/empty-flow-collections/in.json create mode 100644 testdata/yaml-test-suite/empty-flow-collections/in.yaml create mode 100644 testdata/yaml-test-suite/empty-flow-collections/out.yaml create mode 100644 testdata/yaml-test-suite/empty-implicit-key-in-single-pair-flow-sequences/in.yaml create mode 100644 testdata/yaml-test-suite/empty-implicit-key-in-single-pair-flow-sequences/out.yaml create mode 100644 testdata/yaml-test-suite/empty-keys-in-block-and-flow-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/empty-lines-at-end-of-document/in.yaml create mode 100644 testdata/yaml-test-suite/empty-lines-between-mapping-elements/in.json create mode 100644 testdata/yaml-test-suite/empty-lines-between-mapping-elements/in.yaml create mode 100644 testdata/yaml-test-suite/empty-lines-between-mapping-elements/out.yaml create mode 100644 testdata/yaml-test-suite/empty-stream/in.json create mode 100644 testdata/yaml-test-suite/empty-stream/in.yaml create mode 100644 testdata/yaml-test-suite/escaped-slash-in-double-quotes/in.json create mode 100644 testdata/yaml-test-suite/escaped-slash-in-double-quotes/in.yaml create mode 100644 testdata/yaml-test-suite/escaped-slash-in-double-quotes/out.yaml create mode 100644 testdata/yaml-test-suite/explicit-key-and-value-seperated-by-comment/in.json create mode 100644 testdata/yaml-test-suite/explicit-key-and-value-seperated-by-comment/in.yaml create mode 100644 testdata/yaml-test-suite/explicit-key-and-value-seperated-by-comment/out.yaml create mode 100644 testdata/yaml-test-suite/explicit-non-specific-tag-1-3/in.json create mode 100644 testdata/yaml-test-suite/explicit-non-specific-tag-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/explicit-non-specific-tag-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/explicit-non-specific-tag/in.json create mode 100644 testdata/yaml-test-suite/explicit-non-specific-tag/in.yaml create mode 100644 testdata/yaml-test-suite/extra-words-on-yaml-directive/error create mode 100644 testdata/yaml-test-suite/extra-words-on-yaml-directive/in.yaml create mode 100644 testdata/yaml-test-suite/flow-collections-over-many-lines/00/error create mode 100644 testdata/yaml-test-suite/flow-collections-over-many-lines/00/in.yaml create mode 100644 testdata/yaml-test-suite/flow-collections-over-many-lines/01/in.json create mode 100644 testdata/yaml-test-suite/flow-collections-over-many-lines/01/in.yaml create mode 100644 testdata/yaml-test-suite/flow-collections-over-many-lines/01/out.yaml create mode 100644 testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/00/in.json create mode 100644 testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/00/in.yaml create mode 100644 testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/01/in.json create mode 100644 testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/01/in.yaml create mode 100644 testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/02/in.json create mode 100644 testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/02/in.yaml create mode 100644 testdata/yaml-test-suite/flow-mapping-edge-cases/in.json create mode 100644 testdata/yaml-test-suite/flow-mapping-edge-cases/in.yaml create mode 100644 testdata/yaml-test-suite/flow-mapping-edge-cases/out.yaml create mode 100644 testdata/yaml-test-suite/flow-mapping-in-block-sequence/in.json create mode 100644 testdata/yaml-test-suite/flow-mapping-in-block-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/flow-mapping-in-block-sequence/out.yaml create mode 100644 testdata/yaml-test-suite/flow-mapping-key-on-two-lines/error create mode 100644 testdata/yaml-test-suite/flow-mapping-key-on-two-lines/in.yaml create mode 100644 testdata/yaml-test-suite/flow-mapping-missing-a-separating-comma/error create mode 100644 testdata/yaml-test-suite/flow-mapping-missing-a-separating-comma/in.yaml create mode 100644 testdata/yaml-test-suite/flow-mapping-separate-values/in.yaml create mode 100644 testdata/yaml-test-suite/flow-mapping-separate-values/out.yaml create mode 100644 testdata/yaml-test-suite/flow-mapping/in.json create mode 100644 testdata/yaml-test-suite/flow-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/flow-mapping/out.yaml create mode 100644 testdata/yaml-test-suite/flow-sequence-in-block-mapping/in.json create mode 100644 testdata/yaml-test-suite/flow-sequence-in-block-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/flow-sequence-in-block-mapping/out.yaml create mode 100644 testdata/yaml-test-suite/flow-sequence-in-flow-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/flow-sequence-in-flow-mapping/out.yaml create mode 100644 testdata/yaml-test-suite/flow-sequence-in-flow-sequence/in.json create mode 100644 testdata/yaml-test-suite/flow-sequence-in-flow-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/flow-sequence-in-flow-sequence/out.yaml create mode 100644 testdata/yaml-test-suite/flow-sequence-with-invalid-comma-at-the-beginning/error create mode 100644 testdata/yaml-test-suite/flow-sequence-with-invalid-comma-at-the-beginning/in.yaml create mode 100644 testdata/yaml-test-suite/flow-sequence-with-invalid-extra-closing-bracket/error create mode 100644 testdata/yaml-test-suite/flow-sequence-with-invalid-extra-closing-bracket/in.yaml create mode 100644 testdata/yaml-test-suite/flow-sequence-with-invalid-extra-comma/error create mode 100644 testdata/yaml-test-suite/flow-sequence-with-invalid-extra-comma/in.yaml create mode 100644 testdata/yaml-test-suite/flow-sequence-without-closing-bracket/error create mode 100644 testdata/yaml-test-suite/flow-sequence-without-closing-bracket/in.yaml create mode 100644 testdata/yaml-test-suite/flow-sequence/in.json create mode 100644 testdata/yaml-test-suite/flow-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/flow-sequence/out.yaml create mode 100644 testdata/yaml-test-suite/folded-block-scalar-1-3/in.json create mode 100644 testdata/yaml-test-suite/folded-block-scalar-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/folded-block-scalar-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/folded-block-scalar/in.json create mode 100644 testdata/yaml-test-suite/folded-block-scalar/in.yaml create mode 100644 testdata/yaml-test-suite/folded-block-scalar/out.yaml create mode 100644 testdata/yaml-test-suite/implicit-flow-mapping-key-on-one-line/in.yaml create mode 100644 testdata/yaml-test-suite/implicit-flow-mapping-key-on-one-line/out.yaml create mode 100644 testdata/yaml-test-suite/implicit-key-followed-by-newline-and-adjacent-value/error create mode 100644 testdata/yaml-test-suite/implicit-key-followed-by-newline-and-adjacent-value/in.yaml create mode 100644 testdata/yaml-test-suite/implicit-key-followed-by-newline/error create mode 100644 testdata/yaml-test-suite/implicit-key-followed-by-newline/in.yaml create mode 100644 testdata/yaml-test-suite/inline-tabs-in-double-quoted/00/in.json create mode 100644 testdata/yaml-test-suite/inline-tabs-in-double-quoted/00/in.yaml create mode 100644 testdata/yaml-test-suite/inline-tabs-in-double-quoted/01/in.json create mode 100644 testdata/yaml-test-suite/inline-tabs-in-double-quoted/01/in.yaml create mode 100644 testdata/yaml-test-suite/inline-tabs-in-double-quoted/01/out.yaml create mode 100644 testdata/yaml-test-suite/inline-tabs-in-double-quoted/02/in.json create mode 100644 testdata/yaml-test-suite/inline-tabs-in-double-quoted/02/in.yaml create mode 100644 testdata/yaml-test-suite/inline-tabs-in-double-quoted/02/out.yaml create mode 100644 testdata/yaml-test-suite/invalid-anchor-in-zero-indented-sequence/error create mode 100644 testdata/yaml-test-suite/invalid-anchor-in-zero-indented-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-block-mapping-key-on-same-line-as-previous-key/error create mode 100644 testdata/yaml-test-suite/invalid-block-mapping-key-on-same-line-as-previous-key/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-comma-in-tag/error create mode 100644 testdata/yaml-test-suite/invalid-comma-in-tag/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-comment-after-comma/error create mode 100644 testdata/yaml-test-suite/invalid-comment-after-comma/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-comment-after-end-of-flow-sequence/error create mode 100644 testdata/yaml-test-suite/invalid-comment-after-end-of-flow-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-content-after-document-end-marker/error create mode 100644 testdata/yaml-test-suite/invalid-content-after-document-end-marker/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-document-end-marker-in-single-quoted-string/error create mode 100644 testdata/yaml-test-suite/invalid-document-end-marker-in-single-quoted-string/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-document-markers-in-flow-style/error create mode 100644 testdata/yaml-test-suite/invalid-document-markers-in-flow-style/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-document-start-marker-in-doublequoted-tring/error create mode 100644 testdata/yaml-test-suite/invalid-document-start-marker-in-doublequoted-tring/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-escape-in-double-quoted-string/error create mode 100644 testdata/yaml-test-suite/invalid-escape-in-double-quoted-string/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-item-after-end-of-flow-sequence/error create mode 100644 testdata/yaml-test-suite/invalid-item-after-end-of-flow-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-mapping-after-sequence/error create mode 100644 testdata/yaml-test-suite/invalid-mapping-after-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-mapping-in-plain-multiline/error create mode 100644 testdata/yaml-test-suite/invalid-mapping-in-plain-multiline/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-mapping-in-plain-scalar/error create mode 100644 testdata/yaml-test-suite/invalid-mapping-in-plain-scalar/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-mapping-in-plain-single-line-value/error create mode 100644 testdata/yaml-test-suite/invalid-mapping-in-plain-single-line-value/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-nested-mapping/error create mode 100644 testdata/yaml-test-suite/invalid-nested-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-scalar-after-sequence/error create mode 100644 testdata/yaml-test-suite/invalid-scalar-after-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-scalar-at-the-end-of-mapping/error create mode 100644 testdata/yaml-test-suite/invalid-scalar-at-the-end-of-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-scalar-at-the-end-of-sequence/error create mode 100644 testdata/yaml-test-suite/invalid-scalar-at-the-end-of-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-sequene-item-on-same-line-as-previous-item/error create mode 100644 testdata/yaml-test-suite/invalid-sequene-item-on-same-line-as-previous-item/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-tabs-as-indendation-in-a-mapping/error create mode 100644 testdata/yaml-test-suite/invalid-tabs-as-indendation-in-a-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-tag/error create mode 100644 testdata/yaml-test-suite/invalid-tag/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-text-after-block-scalar-indicator/error create mode 100644 testdata/yaml-test-suite/invalid-text-after-block-scalar-indicator/in.yaml create mode 100644 testdata/yaml-test-suite/invalid-value-after-mapping/error create mode 100644 testdata/yaml-test-suite/invalid-value-after-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/key-with-anchor-after-missing-explicit-mapping-value/in.json create mode 100644 testdata/yaml-test-suite/key-with-anchor-after-missing-explicit-mapping-value/in.yaml create mode 100644 testdata/yaml-test-suite/key-with-anchor-after-missing-explicit-mapping-value/out.yaml create mode 100644 testdata/yaml-test-suite/leading-tab-content-in-literals/00/in.json create mode 100644 testdata/yaml-test-suite/leading-tab-content-in-literals/00/in.yaml create mode 100644 testdata/yaml-test-suite/leading-tab-content-in-literals/00/out.yaml create mode 100644 testdata/yaml-test-suite/leading-tab-content-in-literals/01/in.json create mode 100644 testdata/yaml-test-suite/leading-tab-content-in-literals/01/in.yaml create mode 100644 testdata/yaml-test-suite/leading-tab-content-in-literals/01/out.yaml create mode 100644 testdata/yaml-test-suite/leading-tabs-in-double-quoted/00/in.json create mode 100644 testdata/yaml-test-suite/leading-tabs-in-double-quoted/00/in.yaml create mode 100644 testdata/yaml-test-suite/leading-tabs-in-double-quoted/01/in.json create mode 100644 testdata/yaml-test-suite/leading-tabs-in-double-quoted/01/in.yaml create mode 100644 testdata/yaml-test-suite/leading-tabs-in-double-quoted/02/in.json create mode 100644 testdata/yaml-test-suite/leading-tabs-in-double-quoted/02/in.yaml create mode 100644 testdata/yaml-test-suite/leading-tabs-in-double-quoted/03/in.json create mode 100644 testdata/yaml-test-suite/leading-tabs-in-double-quoted/03/in.yaml create mode 100644 testdata/yaml-test-suite/leading-tabs-in-double-quoted/04/in.json create mode 100644 testdata/yaml-test-suite/leading-tabs-in-double-quoted/04/in.yaml create mode 100644 testdata/yaml-test-suite/leading-tabs-in-double-quoted/05/in.json create mode 100644 testdata/yaml-test-suite/leading-tabs-in-double-quoted/05/in.yaml create mode 100644 testdata/yaml-test-suite/legal-tab-after-indentation/in.json create mode 100644 testdata/yaml-test-suite/legal-tab-after-indentation/in.yaml create mode 100644 testdata/yaml-test-suite/legal-tab-after-indentation/out.yaml create mode 100644 testdata/yaml-test-suite/literal-block-scalar-with-more-spaces-in-first-line/error create mode 100644 testdata/yaml-test-suite/literal-block-scalar-with-more-spaces-in-first-line/in.yaml create mode 100644 testdata/yaml-test-suite/literal-block-scalar/in.json create mode 100644 testdata/yaml-test-suite/literal-block-scalar/in.yaml create mode 100644 testdata/yaml-test-suite/literal-block-scalar/out.yaml create mode 100644 testdata/yaml-test-suite/literal-modifers/00/error create mode 100644 testdata/yaml-test-suite/literal-modifers/00/in.yaml create mode 100644 testdata/yaml-test-suite/literal-modifers/01/error create mode 100644 testdata/yaml-test-suite/literal-modifers/01/in.yaml create mode 100644 testdata/yaml-test-suite/literal-modifers/02/in.json create mode 100644 testdata/yaml-test-suite/literal-modifers/02/in.yaml create mode 100644 testdata/yaml-test-suite/literal-modifers/03/in.json create mode 100644 testdata/yaml-test-suite/literal-modifers/03/in.yaml create mode 100644 testdata/yaml-test-suite/literal-scalars/in.json create mode 100644 testdata/yaml-test-suite/literal-scalars/in.yaml create mode 100644 testdata/yaml-test-suite/literal-scalars/out.yaml create mode 100644 testdata/yaml-test-suite/literal-unicode/in.json create mode 100644 testdata/yaml-test-suite/literal-unicode/in.yaml create mode 100644 testdata/yaml-test-suite/literal-unicode/out.yaml create mode 100644 testdata/yaml-test-suite/lookahead-test-cases/in.json create mode 100644 testdata/yaml-test-suite/lookahead-test-cases/in.yaml create mode 100644 testdata/yaml-test-suite/mapping-key-and-flow-sequence-item-anchors/in.yaml create mode 100644 testdata/yaml-test-suite/mapping-key-and-flow-sequence-item-anchors/out.yaml create mode 100644 testdata/yaml-test-suite/mapping-starting-at-line/error create mode 100644 testdata/yaml-test-suite/mapping-starting-at-line/in.yaml create mode 100644 testdata/yaml-test-suite/mapping-with-anchor-on-document-start-line/error create mode 100644 testdata/yaml-test-suite/mapping-with-anchor-on-document-start-line/in.yaml create mode 100644 testdata/yaml-test-suite/missing-colon/error create mode 100644 testdata/yaml-test-suite/missing-colon/in.yaml create mode 100644 testdata/yaml-test-suite/missing-comma-in-flow/error create mode 100644 testdata/yaml-test-suite/missing-comma-in-flow/in.yaml create mode 100644 testdata/yaml-test-suite/missing-document-end-marker-before-directive/error create mode 100644 testdata/yaml-test-suite/missing-document-end-marker-before-directive/in.yaml create mode 100644 testdata/yaml-test-suite/mixed-block-mapping-explicit-to-implicit/in.json create mode 100644 testdata/yaml-test-suite/mixed-block-mapping-explicit-to-implicit/in.yaml create mode 100644 testdata/yaml-test-suite/mixed-block-mapping-explicit-to-implicit/out.yaml create mode 100644 testdata/yaml-test-suite/mixed-block-mapping-implicit-to-explicit/in.json create mode 100644 testdata/yaml-test-suite/mixed-block-mapping-implicit-to-explicit/in.yaml create mode 100644 testdata/yaml-test-suite/mixed-block-mapping-implicit-to-explicit/out.yaml create mode 100644 testdata/yaml-test-suite/more-indented-lines-at-the-beginning-of-folded-block-scalars/in.json create mode 100644 testdata/yaml-test-suite/more-indented-lines-at-the-beginning-of-folded-block-scalars/in.yaml create mode 100644 testdata/yaml-test-suite/multi-level-mapping-indent/in.json create mode 100644 testdata/yaml-test-suite/multi-level-mapping-indent/in.yaml create mode 100644 testdata/yaml-test-suite/multiline-double-quoted-flow-mapping-key/in.json create mode 100644 testdata/yaml-test-suite/multiline-double-quoted-flow-mapping-key/in.yaml create mode 100644 testdata/yaml-test-suite/multiline-double-quoted-flow-mapping-key/out.yaml create mode 100644 testdata/yaml-test-suite/multiline-double-quoted-implicit-keys/error create mode 100644 testdata/yaml-test-suite/multiline-double-quoted-implicit-keys/in.yaml create mode 100644 testdata/yaml-test-suite/multiline-doublequoted-flow-mapping-key-without-value/in.json create mode 100644 testdata/yaml-test-suite/multiline-doublequoted-flow-mapping-key-without-value/in.yaml create mode 100644 testdata/yaml-test-suite/multiline-doublequoted-flow-mapping-key-without-value/out.yaml create mode 100644 testdata/yaml-test-suite/multiline-implicit-keys/error create mode 100644 testdata/yaml-test-suite/multiline-implicit-keys/in.yaml create mode 100644 testdata/yaml-test-suite/multiline-plain-flow-mapping-key-without-value/in.json create mode 100644 testdata/yaml-test-suite/multiline-plain-flow-mapping-key-without-value/in.yaml create mode 100644 testdata/yaml-test-suite/multiline-plain-flow-mapping-key-without-value/out.yaml create mode 100644 testdata/yaml-test-suite/multiline-plain-flow-mapping-key/in.json create mode 100644 testdata/yaml-test-suite/multiline-plain-flow-mapping-key/in.yaml create mode 100644 testdata/yaml-test-suite/multiline-plain-flow-mapping-key/out.yaml create mode 100644 testdata/yaml-test-suite/multiline-plain-scalar-with-empty-line/in.json create mode 100644 testdata/yaml-test-suite/multiline-plain-scalar-with-empty-line/in.yaml create mode 100644 testdata/yaml-test-suite/multiline-plain-scalar-with-empty-line/out.yaml create mode 100644 testdata/yaml-test-suite/multiline-plain-value-with-tabs-on-empty-lines/in.json create mode 100644 testdata/yaml-test-suite/multiline-plain-value-with-tabs-on-empty-lines/in.yaml create mode 100644 testdata/yaml-test-suite/multiline-plain-value-with-tabs-on-empty-lines/out.yaml create mode 100644 testdata/yaml-test-suite/multiline-scalar-at-top-level-1-3/in.json create mode 100644 testdata/yaml-test-suite/multiline-scalar-at-top-level-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/multiline-scalar-at-top-level-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/multiline-scalar-at-top-level/in.json create mode 100644 testdata/yaml-test-suite/multiline-scalar-at-top-level/in.yaml create mode 100644 testdata/yaml-test-suite/multiline-scalar-at-top-level/out.yaml create mode 100644 testdata/yaml-test-suite/multiline-scalar-in-mapping/in.json create mode 100644 testdata/yaml-test-suite/multiline-scalar-in-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/multiline-scalar-in-mapping/out.yaml create mode 100644 testdata/yaml-test-suite/multiline-scalar-that-looks-like-a-yaml-directive/in.json create mode 100644 testdata/yaml-test-suite/multiline-scalar-that-looks-like-a-yaml-directive/in.yaml create mode 100644 testdata/yaml-test-suite/multiline-scalar-that-looks-like-a-yaml-directive/out.yaml create mode 100644 testdata/yaml-test-suite/multiline-single-quoted-implicit-keys/error create mode 100644 testdata/yaml-test-suite/multiline-single-quoted-implicit-keys/in.yaml create mode 100644 testdata/yaml-test-suite/multiline-unidented-double-quoted-block-key/error create mode 100644 testdata/yaml-test-suite/multiline-unidented-double-quoted-block-key/in.yaml create mode 100644 testdata/yaml-test-suite/multiple-entry-block-sequence/in.json create mode 100644 testdata/yaml-test-suite/multiple-entry-block-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/multiple-pair-block-mapping/in.json create mode 100644 testdata/yaml-test-suite/multiple-pair-block-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/need-document-footer-before-directives/error create mode 100644 testdata/yaml-test-suite/need-document-footer-before-directives/in.yaml create mode 100644 testdata/yaml-test-suite/nested-flow-collections-on-one-line/in.json create mode 100644 testdata/yaml-test-suite/nested-flow-collections-on-one-line/in.yaml create mode 100644 testdata/yaml-test-suite/nested-flow-collections-on-one-line/out.yaml create mode 100644 testdata/yaml-test-suite/nested-flow-collections/in.json create mode 100644 testdata/yaml-test-suite/nested-flow-collections/in.yaml create mode 100644 testdata/yaml-test-suite/nested-flow-collections/out.yaml create mode 100644 testdata/yaml-test-suite/nested-flow-mapping-sequence-and-mappings/in.json create mode 100644 testdata/yaml-test-suite/nested-flow-mapping-sequence-and-mappings/in.yaml create mode 100644 testdata/yaml-test-suite/nested-flow-mapping-sequence-and-mappings/out.yaml create mode 100644 testdata/yaml-test-suite/nested-implicit-complex-keys/in.yaml create mode 100644 testdata/yaml-test-suite/nested-implicit-complex-keys/out.yaml create mode 100644 testdata/yaml-test-suite/nested-top-level-flow-mapping/in.json create mode 100644 testdata/yaml-test-suite/nested-top-level-flow-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/nested-top-level-flow-mapping/out.yaml create mode 100644 testdata/yaml-test-suite/node-anchor-and-tag-on-seperate-lines/in.json create mode 100644 testdata/yaml-test-suite/node-anchor-and-tag-on-seperate-lines/in.yaml create mode 100644 testdata/yaml-test-suite/node-anchor-and-tag-on-seperate-lines/out.yaml create mode 100644 testdata/yaml-test-suite/node-anchor-in-sequence/error create mode 100644 testdata/yaml-test-suite/node-anchor-in-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/node-anchor-not-indented/error create mode 100644 testdata/yaml-test-suite/node-anchor-not-indented/in.yaml create mode 100644 testdata/yaml-test-suite/node-and-mapping-key-anchors-1-3/in.json create mode 100644 testdata/yaml-test-suite/node-and-mapping-key-anchors-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/node-and-mapping-key-anchors-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/node-and-mapping-key-anchors/in.json create mode 100644 testdata/yaml-test-suite/node-and-mapping-key-anchors/in.yaml create mode 100644 testdata/yaml-test-suite/node-and-mapping-key-anchors/out.yaml create mode 100644 testdata/yaml-test-suite/non-specific-tags-on-scalars/in.json create mode 100644 testdata/yaml-test-suite/non-specific-tags-on-scalars/in.yaml create mode 100644 testdata/yaml-test-suite/plain-dashes-in-flow-sequence/error create mode 100644 testdata/yaml-test-suite/plain-dashes-in-flow-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/plain-mapping-key-ending-with-colon/in.json create mode 100644 testdata/yaml-test-suite/plain-mapping-key-ending-with-colon/in.yaml create mode 100644 testdata/yaml-test-suite/plain-mapping-key-ending-with-colon/out.yaml create mode 100644 testdata/yaml-test-suite/plain-scalar-looking-like-key-comment-anchor-and-tag/in.json create mode 100644 testdata/yaml-test-suite/plain-scalar-looking-like-key-comment-anchor-and-tag/in.yaml create mode 100644 testdata/yaml-test-suite/plain-scalar-looking-like-key-comment-anchor-and-tag/out.yaml create mode 100644 testdata/yaml-test-suite/plain-scalar-with-backslashes/in.json create mode 100644 testdata/yaml-test-suite/plain-scalar-with-backslashes/in.yaml create mode 100644 testdata/yaml-test-suite/plain-scalar-with-backslashes/out.yaml create mode 100644 testdata/yaml-test-suite/plain-url-in-flow-mapping/in.json create mode 100644 testdata/yaml-test-suite/plain-url-in-flow-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/plain-url-in-flow-mapping/out.yaml create mode 100644 testdata/yaml-test-suite/question-mark-at-start-of-flow-key/in.json create mode 100644 testdata/yaml-test-suite/question-mark-at-start-of-flow-key/in.yaml create mode 100644 testdata/yaml-test-suite/question-mark-at-start-of-flow-key/out.yaml create mode 100644 testdata/yaml-test-suite/question-mark-edge-cases/00/in.yaml create mode 100644 testdata/yaml-test-suite/question-mark-edge-cases/00/out.yaml create mode 100644 testdata/yaml-test-suite/question-mark-edge-cases/01/in.yaml create mode 100644 testdata/yaml-test-suite/question-mark-edge-cases/01/out.yaml create mode 100644 testdata/yaml-test-suite/question-marks-in-scalars/in.json create mode 100644 testdata/yaml-test-suite/question-marks-in-scalars/in.yaml create mode 100644 testdata/yaml-test-suite/question-marks-in-scalars/out.yaml create mode 100644 testdata/yaml-test-suite/scalar-doc-with-in-content/00/in.json create mode 100644 testdata/yaml-test-suite/scalar-doc-with-in-content/00/in.yaml create mode 100644 testdata/yaml-test-suite/scalar-doc-with-in-content/00/out.yaml create mode 100644 testdata/yaml-test-suite/scalar-doc-with-in-content/01/error create mode 100644 testdata/yaml-test-suite/scalar-doc-with-in-content/01/in.json create mode 100644 testdata/yaml-test-suite/scalar-doc-with-in-content/01/in.yaml create mode 100644 testdata/yaml-test-suite/scalar-value-with-two-anchors/error create mode 100644 testdata/yaml-test-suite/scalar-value-with-two-anchors/in.yaml create mode 100644 testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/00/in.json create mode 100644 testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/00/in.yaml create mode 100644 testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/00/out.yaml create mode 100644 testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/01/in.json create mode 100644 testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/01/in.yaml create mode 100644 testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/01/out.yaml create mode 100644 testdata/yaml-test-suite/scalars-on-line/in.json create mode 100644 testdata/yaml-test-suite/scalars-on-line/in.yaml create mode 100644 testdata/yaml-test-suite/scalars-on-line/out.yaml create mode 100644 testdata/yaml-test-suite/sequence-entry-that-looks-like-two-with-wrong-indentation/in.json create mode 100644 testdata/yaml-test-suite/sequence-entry-that-looks-like-two-with-wrong-indentation/in.yaml create mode 100644 testdata/yaml-test-suite/sequence-entry-that-looks-like-two-with-wrong-indentation/out.yaml create mode 100644 testdata/yaml-test-suite/sequence-indent/in.json create mode 100644 testdata/yaml-test-suite/sequence-indent/in.yaml create mode 100644 testdata/yaml-test-suite/sequence-indent/out.yaml create mode 100644 testdata/yaml-test-suite/sequence-on-same-line-as-mapping-key/error create mode 100644 testdata/yaml-test-suite/sequence-on-same-line-as-mapping-key/in.yaml create mode 100644 testdata/yaml-test-suite/sequence-with-same-indentation-as-parent-mapping/in.json create mode 100644 testdata/yaml-test-suite/sequence-with-same-indentation-as-parent-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/simple-mapping-indent/in.json create mode 100644 testdata/yaml-test-suite/simple-mapping-indent/in.yaml create mode 100644 testdata/yaml-test-suite/single-block-sequence-with-anchor-and-explicit-document-start/in.json create mode 100644 testdata/yaml-test-suite/single-block-sequence-with-anchor-and-explicit-document-start/in.yaml create mode 100644 testdata/yaml-test-suite/single-block-sequence-with-anchor-and-explicit-document-start/out.yaml create mode 100644 testdata/yaml-test-suite/single-block-sequence-with-anchor/in.json create mode 100644 testdata/yaml-test-suite/single-block-sequence-with-anchor/in.yaml create mode 100644 testdata/yaml-test-suite/single-block-sequence-with-anchor/out.yaml create mode 100644 testdata/yaml-test-suite/single-character-streams/00/in.json create mode 100644 testdata/yaml-test-suite/single-character-streams/00/in.yaml create mode 100644 testdata/yaml-test-suite/single-character-streams/00/out.yaml create mode 100644 testdata/yaml-test-suite/single-character-streams/01/in.yaml create mode 100644 testdata/yaml-test-suite/single-character-streams/01/out.yaml create mode 100644 testdata/yaml-test-suite/single-entry-block-sequence/in.json create mode 100644 testdata/yaml-test-suite/single-entry-block-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/single-pair-block-mapping/in.json create mode 100644 testdata/yaml-test-suite/single-pair-block-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/single-pair-implicit-entries/in.yaml create mode 100644 testdata/yaml-test-suite/single-pair-implicit-entries/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-1-sequence-of-scalars/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-1-sequence-of-scalars/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-1-sequence-of-scalars/lex.token create mode 100644 testdata/yaml-test-suite/spec-example-2-10-node-for-sammy-sosa-appears-twice-in-this-document/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-10-node-for-sammy-sosa-appears-twice-in-this-document/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-10-node-for-sammy-sosa-appears-twice-in-this-document/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-11-mapping-between-sequences/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-11-mapping-between-sequences/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-12-compact-nested-mapping/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-12-compact-nested-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-12-compact-nested-mapping/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-13-in-literals-newlines-are-preserved/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-13-in-literals-newlines-are-preserved/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-13-in-literals-newlines-are-preserved/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-14-in-the-folded-scalars-newlines-become-spaces/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-14-in-the-folded-scalars-newlines-become-spaces/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-14-in-the-folded-scalars-newlines-become-spaces/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-15-folded-newlines-are-preserved-for-more-indented-and-blank-lines/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-15-folded-newlines-are-preserved-for-more-indented-and-blank-lines/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-15-folded-newlines-are-preserved-for-more-indented-and-blank-lines/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-16-indentation-determines-scope/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-16-indentation-determines-scope/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-16-indentation-determines-scope/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-17-quoted-scalars/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-17-quoted-scalars/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-17-quoted-scalars/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-18-multi-line-flow-scalars/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-18-multi-line-flow-scalars/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-18-multi-line-flow-scalars/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-2-mapping-scalars-to-scalars/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-2-mapping-scalars-to-scalars/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-2-mapping-scalars-to-scalars/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-24-global-tags/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-24-global-tags/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-24-global-tags/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-25-unordered-sets/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-25-unordered-sets/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-25-unordered-sets/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-26-ordered-mappings/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-26-ordered-mappings/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-26-ordered-mappings/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-27-invoice/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-27-invoice/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-27-invoice/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-28-log-file/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-28-log-file/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-28-log-file/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-3-mapping-scalars-to-sequences/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-3-mapping-scalars-to-sequences/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-3-mapping-scalars-to-sequences/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-4-sequence-of-mappings/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-4-sequence-of-mappings/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-4-sequence-of-mappings/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-5-sequence-of-sequences/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-5-sequence-of-sequences/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-5-sequence-of-sequences/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-6-mapping-of-mappings/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-6-mapping-of-mappings/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-6-mapping-of-mappings/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-7-two-documents-in-a-stream/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-7-two-documents-in-a-stream/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-7-two-documents-in-a-stream/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-8-play-by-play-feed-from-a-game/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-8-play-by-play-feed-from-a-game/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-9-single-document-with-two-comments/in.json create mode 100644 testdata/yaml-test-suite/spec-example-2-9-single-document-with-two-comments/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-2-9-single-document-with-two-comments/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-5-12-tabs-and-spaces/in.json create mode 100644 testdata/yaml-test-suite/spec-example-5-12-tabs-and-spaces/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-5-12-tabs-and-spaces/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-5-3-block-structure-indicators/in.json create mode 100644 testdata/yaml-test-suite/spec-example-5-3-block-structure-indicators/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-5-3-block-structure-indicators/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-5-4-flow-collection-indicators/in.json create mode 100644 testdata/yaml-test-suite/spec-example-5-4-flow-collection-indicators/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-5-4-flow-collection-indicators/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-5-5-comment-indicator/in.json create mode 100644 testdata/yaml-test-suite/spec-example-5-5-comment-indicator/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-5-5-comment-indicator/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-5-6-node-property-indicators/in.json create mode 100644 testdata/yaml-test-suite/spec-example-5-6-node-property-indicators/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-5-6-node-property-indicators/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-5-7-block-scalar-indicators/in.json create mode 100644 testdata/yaml-test-suite/spec-example-5-7-block-scalar-indicators/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-5-7-block-scalar-indicators/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-5-8-quoted-scalar-indicators/in.json create mode 100644 testdata/yaml-test-suite/spec-example-5-8-quoted-scalar-indicators/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-5-9-directive-indicator/in.json create mode 100644 testdata/yaml-test-suite/spec-example-5-9-directive-indicator/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-5-9-directive-indicator/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-1-indentation-spaces/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-1-indentation-spaces/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-1-indentation-spaces/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-10-comment-lines/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-10-comment-lines/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-10-comment-lines/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-11-multi-line-comments/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-11-multi-line-comments/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-11-multi-line-comments/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-12-separation-spaces/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-12-separation-spaces/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-13-reserved-directives-1-3/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-13-reserved-directives-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-13-reserved-directives-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-13-reserved-directives/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-13-reserved-directives/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-13-reserved-directives/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-14-yaml-directive/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-14-yaml-directive/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-14-yaml-directive/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-16-tag-directive/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-16-tag-directive/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-16-tag-directive/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle-1-3/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-19-secondary-tag-handle/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-19-secondary-tag-handle/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-19-secondary-tag-handle/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-2-indentation-indicators/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-2-indentation-indicators/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-2-indentation-indicators/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-20-tag-handles/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-20-tag-handles/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-20-tag-handles/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-21-local-tag-prefix/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-21-local-tag-prefix/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-22-global-tag-prefix/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-22-global-tag-prefix/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-22-global-tag-prefix/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-23-node-properties/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-23-node-properties/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-23-node-properties/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-24-verbatim-tags/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-24-verbatim-tags/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-24-verbatim-tags/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-26-tag-shorthands/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-26-tag-shorthands/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-28-non-specific-tags/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-28-non-specific-tags/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-28-non-specific-tags/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-29-node-anchors/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-29-node-anchors/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-3-separation-spaces/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-3-separation-spaces/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-3-separation-spaces/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-4-line-prefixes/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-4-line-prefixes/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-4-line-prefixes/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-5-empty-lines-1-3/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-5-empty-lines-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-5-empty-lines-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-5-empty-lines/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-5-empty-lines/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-5-empty-lines/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-6-line-folding-1-3/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-6-line-folding-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-6-line-folding-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-6-line-folding/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-6-line-folding/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-6-line-folding/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-7-block-folding/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-7-block-folding/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-7-block-folding/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-8-flow-folding-1-3/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-8-flow-folding-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-8-flow-folding-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-8-flow-folding/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-8-flow-folding/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-8-flow-folding/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-9-separated-comment/in.json create mode 100644 testdata/yaml-test-suite/spec-example-6-9-separated-comment/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-6-9-separated-comment/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-1-alias-nodes/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-1-alias-nodes/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-10-plain-characters/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-10-plain-characters/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-10-plain-characters/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-11-plain-implicit-keys/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-11-plain-implicit-keys/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-11-plain-implicit-keys/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-12-plain-lines/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-12-plain-lines/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-12-plain-lines/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-13-flow-sequence/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-13-flow-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-13-flow-sequence/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-14-flow-sequence-entries/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-14-flow-sequence-entries/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-14-flow-sequence-entries/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-15-flow-mappings/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-15-flow-mappings/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-15-flow-mappings/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-16-flow-mapping-entries/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-16-flow-mapping-entries/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-18-flow-mapping-adjacent-values/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-18-flow-mapping-adjacent-values/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-18-flow-mapping-adjacent-values/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-19-single-pair-flow-mappings/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-19-single-pair-flow-mappings/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-19-single-pair-flow-mappings/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-2-empty-content/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-2-empty-content/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-2-empty-content/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-20-single-pair-explicit-entry/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-20-single-pair-explicit-entry/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-20-single-pair-explicit-entry/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-23-flow-content/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-23-flow-content/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-23-flow-content/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-24-flow-nodes/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-24-flow-nodes/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-3-completely-empty-flow-nodes/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-4-double-quoted-implicit-keys/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-4-double-quoted-implicit-keys/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-4-double-quoted-implicit-keys/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks-1-3/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines-1-3/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters-1-3/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-8-single-quoted-implicit-keys/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-8-single-quoted-implicit-keys/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-8-single-quoted-implicit-keys/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines-1-3/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines/in.json create mode 100644 testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-1-block-scalar-header/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-1-block-scalar-header/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-1-block-scalar-header/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-10-folded-lines-8-13-final-empty-lines/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-10-folded-lines-8-13-final-empty-lines/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-10-folded-lines-8-13-final-empty-lines/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-14-block-sequence/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-14-block-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-14-block-sequence/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-15-block-sequence-entry-types/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-15-block-sequence-entry-types/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-15-block-sequence-entry-types/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-16-block-mappings/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-16-block-mappings/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-16-block-mappings/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-17-explicit-block-mapping-entries/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-17-explicit-block-mapping-entries/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-17-explicit-block-mapping-entries/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-18-implicit-block-mapping-entries/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-19-compact-block-mappings/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator-1-3/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-20-block-node-types/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-20-block-node-types/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-20-block-node-types/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes-1-3/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-22-block-collection-nodes/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-22-block-collection-nodes/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-22-block-collection-nodes/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-4-chomping-final-line-break/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-4-chomping-final-line-break/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-4-chomping-final-line-break/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-5-chomping-trailing-lines/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-5-chomping-trailing-lines/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-5-chomping-trailing-lines/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-6-empty-scalar-chomping/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-6-empty-scalar-chomping/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-6-empty-scalar-chomping/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-7-literal-scalar-1-3/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-7-literal-scalar-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-7-literal-scalar-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-7-literal-scalar/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-7-literal-scalar/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-7-literal-scalar/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-8-literal-content-1-3/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-8-literal-content-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-8-literal-content-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-8-literal-content/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-8-literal-content/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-8-literal-content/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-9-folded-scalar-1-3/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-9-folded-scalar-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-9-folded-scalar-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-9-folded-scalar/in.json create mode 100644 testdata/yaml-test-suite/spec-example-8-9-folded-scalar/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-8-9-folded-scalar/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-9-2-document-markers/in.json create mode 100644 testdata/yaml-test-suite/spec-example-9-2-document-markers/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-9-2-document-markers/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-9-3-bare-documents/in.json create mode 100644 testdata/yaml-test-suite/spec-example-9-3-bare-documents/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-9-4-explicit-documents/in.json create mode 100644 testdata/yaml-test-suite/spec-example-9-4-explicit-documents/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-9-4-explicit-documents/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-9-5-directives-documents/in.json create mode 100644 testdata/yaml-test-suite/spec-example-9-5-directives-documents/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-9-5-directives-documents/out.yaml create mode 100644 testdata/yaml-test-suite/spec-example-9-6-stream-1-3/in.json create mode 100644 testdata/yaml-test-suite/spec-example-9-6-stream-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/spec-example-9-6-stream/in.json create mode 100644 testdata/yaml-test-suite/spec-example-9-6-stream/in.yaml create mode 100644 testdata/yaml-test-suite/syntax-character-edge-cases/00/in.yaml create mode 100644 testdata/yaml-test-suite/syntax-character-edge-cases/01/in.json create mode 100644 testdata/yaml-test-suite/syntax-character-edge-cases/01/in.yaml create mode 100644 testdata/yaml-test-suite/syntax-character-edge-cases/02/in.yaml create mode 100644 testdata/yaml-test-suite/tab-after-document-header/in.json create mode 100644 testdata/yaml-test-suite/tab-after-document-header/in.yaml create mode 100644 testdata/yaml-test-suite/tab-after-document-header/out.yaml create mode 100644 testdata/yaml-test-suite/tab-at-beginning-of-line-followed-by-a-flow-mapping/in.json create mode 100644 testdata/yaml-test-suite/tab-at-beginning-of-line-followed-by-a-flow-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/tab-at-beginning-of-line-followed-by-a-flow-mapping/out.yaml create mode 100644 testdata/yaml-test-suite/tab-indented-top-flow/in.json create mode 100644 testdata/yaml-test-suite/tab-indented-top-flow/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/000/error create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/000/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/001/in.json create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/001/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/001/out.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/002/in.json create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/002/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/002/out.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/003/error create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/003/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/003/out.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/004/error create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/004/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/004/out.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/005/error create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/005/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/005/out.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/006/error create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/006/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/006/out.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/007/error create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/007/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/007/out.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/008/error create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/008/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/008/out.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/009/error create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/009/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/009/out.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/010/in.json create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/010/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-in-various-contexts/010/out.yaml create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/00/in.json create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/00/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/01/error create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/01/in.json create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/01/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/02/in.json create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/02/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/03/in.json create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/03/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/04/in.json create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/04/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/05/in.json create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/05/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/06/error create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/06/in.json create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/06/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/07/in.json create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/07/in.yaml create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/08/in.json create mode 100644 testdata/yaml-test-suite/tabs-that-look-like-indentation/08/in.yaml create mode 100644 testdata/yaml-test-suite/tag-shorthand-used-in-documents-but-only-defined-in-the-first/error create mode 100644 testdata/yaml-test-suite/tag-shorthand-used-in-documents-but-only-defined-in-the-first/in.yaml create mode 100644 testdata/yaml-test-suite/tags-for-block-objects/in.json create mode 100644 testdata/yaml-test-suite/tags-for-block-objects/in.yaml create mode 100644 testdata/yaml-test-suite/tags-for-block-objects/out.yaml create mode 100644 testdata/yaml-test-suite/tags-for-flow-objects/in.json create mode 100644 testdata/yaml-test-suite/tags-for-flow-objects/in.yaml create mode 100644 testdata/yaml-test-suite/tags-for-flow-objects/out.yaml create mode 100644 testdata/yaml-test-suite/tags-for-root-objects/in.json create mode 100644 testdata/yaml-test-suite/tags-for-root-objects/in.yaml create mode 100644 testdata/yaml-test-suite/tags-for-root-objects/out.yaml create mode 100644 testdata/yaml-test-suite/tags-in-block-sequence/in.json create mode 100644 testdata/yaml-test-suite/tags-in-block-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/tags-in-block-sequence/out.yaml create mode 100644 testdata/yaml-test-suite/tags-in-explicit-mapping/in.json create mode 100644 testdata/yaml-test-suite/tags-in-explicit-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/tags-in-explicit-mapping/out.yaml create mode 100644 testdata/yaml-test-suite/tags-in-implicit-mapping/in.json create mode 100644 testdata/yaml-test-suite/tags-in-implicit-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/tags-in-implicit-mapping/out.yaml create mode 100644 testdata/yaml-test-suite/tags-on-empty-scalars/in.yaml create mode 100644 testdata/yaml-test-suite/tags-on-empty-scalars/out.yaml create mode 100644 testdata/yaml-test-suite/three-dashes-and-content-without-space-1-3/in.json create mode 100644 testdata/yaml-test-suite/three-dashes-and-content-without-space-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/three-dashes-and-content-without-space-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/three-dashes-and-content-without-space/in.json create mode 100644 testdata/yaml-test-suite/three-dashes-and-content-without-space/in.yaml create mode 100644 testdata/yaml-test-suite/three-dashes-and-content-without-space/out.yaml create mode 100644 testdata/yaml-test-suite/three-explicit-integers-in-a-block-sequence/in.json create mode 100644 testdata/yaml-test-suite/three-explicit-integers-in-a-block-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/three-explicit-integers-in-a-block-sequence/out.yaml create mode 100644 testdata/yaml-test-suite/trailing-comment-in-multiline-plain-scalar/error create mode 100644 testdata/yaml-test-suite/trailing-comment-in-multiline-plain-scalar/in.yaml create mode 100644 testdata/yaml-test-suite/trailing-content-after-quoted-value/error create mode 100644 testdata/yaml-test-suite/trailing-content-after-quoted-value/in.yaml create mode 100644 testdata/yaml-test-suite/trailing-content-that-looks-like-a-mapping/error create mode 100644 testdata/yaml-test-suite/trailing-content-that-looks-like-a-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/trailing-line-of-spaces/00/in.json create mode 100644 testdata/yaml-test-suite/trailing-line-of-spaces/00/in.yaml create mode 100644 testdata/yaml-test-suite/trailing-line-of-spaces/01/in.json create mode 100644 testdata/yaml-test-suite/trailing-line-of-spaces/01/in.yaml create mode 100644 testdata/yaml-test-suite/trailing-spaces-after-flow-collection/in.json create mode 100644 testdata/yaml-test-suite/trailing-spaces-after-flow-collection/in.yaml create mode 100644 testdata/yaml-test-suite/trailing-spaces-after-flow-collection/out.yaml create mode 100644 testdata/yaml-test-suite/trailing-tabs-in-double-quoted/00/in.json create mode 100644 testdata/yaml-test-suite/trailing-tabs-in-double-quoted/00/in.yaml create mode 100644 testdata/yaml-test-suite/trailing-tabs-in-double-quoted/00/out.yaml create mode 100644 testdata/yaml-test-suite/trailing-tabs-in-double-quoted/01/in.json create mode 100644 testdata/yaml-test-suite/trailing-tabs-in-double-quoted/01/in.yaml create mode 100644 testdata/yaml-test-suite/trailing-tabs-in-double-quoted/01/out.yaml create mode 100644 testdata/yaml-test-suite/trailing-tabs-in-double-quoted/02/in.json create mode 100644 testdata/yaml-test-suite/trailing-tabs-in-double-quoted/02/in.yaml create mode 100644 testdata/yaml-test-suite/trailing-tabs-in-double-quoted/02/out.yaml create mode 100644 testdata/yaml-test-suite/trailing-tabs-in-double-quoted/03/in.json create mode 100644 testdata/yaml-test-suite/trailing-tabs-in-double-quoted/03/in.yaml create mode 100644 testdata/yaml-test-suite/trailing-tabs-in-double-quoted/03/out.yaml create mode 100644 testdata/yaml-test-suite/trailing-tabs-in-double-quoted/04/in.json create mode 100644 testdata/yaml-test-suite/trailing-tabs-in-double-quoted/04/in.yaml create mode 100644 testdata/yaml-test-suite/trailing-tabs-in-double-quoted/04/out.yaml create mode 100644 testdata/yaml-test-suite/trailing-tabs-in-double-quoted/05/in.json create mode 100644 testdata/yaml-test-suite/trailing-tabs-in-double-quoted/05/in.yaml create mode 100644 testdata/yaml-test-suite/trailing-tabs-in-double-quoted/05/out.yaml create mode 100644 testdata/yaml-test-suite/trailing-whitespace-in-streams/00/in.json create mode 100644 testdata/yaml-test-suite/trailing-whitespace-in-streams/00/in.yaml create mode 100644 testdata/yaml-test-suite/trailing-whitespace-in-streams/00/out.yaml create mode 100644 testdata/yaml-test-suite/trailing-whitespace-in-streams/01/in.json create mode 100644 testdata/yaml-test-suite/trailing-whitespace-in-streams/01/in.yaml create mode 100644 testdata/yaml-test-suite/trailing-whitespace-in-streams/01/out.yaml create mode 100644 testdata/yaml-test-suite/trailing-whitespace-in-streams/02/in.json create mode 100644 testdata/yaml-test-suite/trailing-whitespace-in-streams/02/in.yaml create mode 100644 testdata/yaml-test-suite/trailing-whitespace-in-streams/02/out.yaml create mode 100644 testdata/yaml-test-suite/two-document-start-markers/in.json create mode 100644 testdata/yaml-test-suite/two-document-start-markers/in.yaml create mode 100644 testdata/yaml-test-suite/two-document-start-markers/out.yaml create mode 100644 testdata/yaml-test-suite/two-scalar-docs-with-trailing-comments/in.json create mode 100644 testdata/yaml-test-suite/two-scalar-docs-with-trailing-comments/in.yaml create mode 100644 testdata/yaml-test-suite/two-scalar-docs-with-trailing-comments/out.yaml create mode 100644 testdata/yaml-test-suite/various-combinations-of-explicit-block-mappings/in.yaml create mode 100644 testdata/yaml-test-suite/various-combinations-of-explicit-block-mappings/out.yaml create mode 100644 testdata/yaml-test-suite/various-combinations-of-tags-and-anchors/in.json create mode 100644 testdata/yaml-test-suite/various-combinations-of-tags-and-anchors/in.yaml create mode 100644 testdata/yaml-test-suite/various-combinations-of-tags-and-anchors/out.yaml create mode 100644 testdata/yaml-test-suite/various-empty-or-newline-only-quoted-strings/in.json create mode 100644 testdata/yaml-test-suite/various-empty-or-newline-only-quoted-strings/in.yaml create mode 100644 testdata/yaml-test-suite/various-location-of-anchors-in-flow-sequence/in.json create mode 100644 testdata/yaml-test-suite/various-location-of-anchors-in-flow-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/various-location-of-anchors-in-flow-sequence/out.yaml create mode 100644 testdata/yaml-test-suite/various-trailing-comments-1-3/in.yaml create mode 100644 testdata/yaml-test-suite/various-trailing-comments-1-3/out.yaml create mode 100644 testdata/yaml-test-suite/various-trailing-comments/in.yaml create mode 100644 testdata/yaml-test-suite/various-trailing-comments/out.yaml create mode 100644 testdata/yaml-test-suite/various-trailing-tabs/in.json create mode 100644 testdata/yaml-test-suite/various-trailing-tabs/in.yaml create mode 100644 testdata/yaml-test-suite/various-trailing-tabs/out.yaml create mode 100644 testdata/yaml-test-suite/whitespace-after-scalars-in-flow/in.json create mode 100644 testdata/yaml-test-suite/whitespace-after-scalars-in-flow/in.yaml create mode 100644 testdata/yaml-test-suite/whitespace-after-scalars-in-flow/out.yaml create mode 100644 testdata/yaml-test-suite/whitespace-around-colon-in-mappings/in.json create mode 100644 testdata/yaml-test-suite/whitespace-around-colon-in-mappings/in.yaml create mode 100644 testdata/yaml-test-suite/whitespace-around-colon-in-mappings/out.yaml create mode 100644 testdata/yaml-test-suite/wrong-indendation-in-map/error create mode 100644 testdata/yaml-test-suite/wrong-indendation-in-map/in.yaml create mode 100644 testdata/yaml-test-suite/wrong-indendation-in-mapping/error create mode 100644 testdata/yaml-test-suite/wrong-indendation-in-mapping/in.yaml create mode 100644 testdata/yaml-test-suite/wrong-indendation-in-sequence/error create mode 100644 testdata/yaml-test-suite/wrong-indendation-in-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/wrong-indented-flow-sequence/error create mode 100644 testdata/yaml-test-suite/wrong-indented-flow-sequence/in.yaml create mode 100644 testdata/yaml-test-suite/wrong-indented-multiline-quoted-scalar/error create mode 100644 testdata/yaml-test-suite/wrong-indented-multiline-quoted-scalar/in.yaml create mode 100644 testdata/yaml-test-suite/wrong-indented-sequence-item/error create mode 100644 testdata/yaml-test-suite/wrong-indented-sequence-item/in.yaml create mode 100644 testdata/yaml-test-suite/yaml-directive-without-document-end-marker/error create mode 100644 testdata/yaml-test-suite/yaml-directive-without-document-end-marker/in.yaml create mode 100644 testdata/yaml-test-suite/yaml.go create mode 100644 testdata/yaml-test-suite/zero-indented-block-scalar-with-line-that-looks-like-a-comment/in.json create mode 100644 testdata/yaml-test-suite/zero-indented-block-scalar-with-line-that-looks-like-a-comment/in.yaml create mode 100644 testdata/yaml-test-suite/zero-indented-block-scalar-with-line-that-looks-like-a-comment/out.yaml create mode 100644 testdata/yaml-test-suite/zero-indented-block-scalar/in.json create mode 100644 testdata/yaml-test-suite/zero-indented-block-scalar/in.yaml create mode 100644 testdata/yaml-test-suite/zero-indented-block-scalar/out.yaml create mode 100644 testdata/yaml-test-suite/zero-indented-sequences-in-explicit-mapping-keys/in.yaml create mode 100644 testdata/yamltestsuite_test.go diff --git a/testdata/yaml-test-suite/aliases-in-block-sequence/in.json b/testdata/yaml-test-suite/aliases-in-block-sequence/in.json new file mode 100644 index 00000000..b2810bca --- /dev/null +++ b/testdata/yaml-test-suite/aliases-in-block-sequence/in.json @@ -0,0 +1,6 @@ +[ + "a", + "b", + "a", + "b" +] diff --git a/testdata/yaml-test-suite/aliases-in-block-sequence/in.yaml b/testdata/yaml-test-suite/aliases-in-block-sequence/in.yaml new file mode 100644 index 00000000..b3c45b5c --- /dev/null +++ b/testdata/yaml-test-suite/aliases-in-block-sequence/in.yaml @@ -0,0 +1,4 @@ +- &a a +- &b b +- *a +- *b diff --git a/testdata/yaml-test-suite/aliases-in-explicit-block-mapping/in.yaml b/testdata/yaml-test-suite/aliases-in-explicit-block-mapping/in.yaml new file mode 100644 index 00000000..b1490a67 --- /dev/null +++ b/testdata/yaml-test-suite/aliases-in-explicit-block-mapping/in.yaml @@ -0,0 +1,3 @@ +? &a a +: &b b +: *a diff --git a/testdata/yaml-test-suite/aliases-in-explicit-block-mapping/out.yaml b/testdata/yaml-test-suite/aliases-in-explicit-block-mapping/out.yaml new file mode 100644 index 00000000..52db425e --- /dev/null +++ b/testdata/yaml-test-suite/aliases-in-explicit-block-mapping/out.yaml @@ -0,0 +1,2 @@ +&a a: &b b +: *a diff --git a/testdata/yaml-test-suite/aliases-in-flow-objects/in.yaml b/testdata/yaml-test-suite/aliases-in-flow-objects/in.yaml new file mode 100644 index 00000000..4772110b --- /dev/null +++ b/testdata/yaml-test-suite/aliases-in-flow-objects/in.yaml @@ -0,0 +1 @@ +{ &a [a, &b b]: *b, *a : [c, *b, d]} diff --git a/testdata/yaml-test-suite/aliases-in-flow-objects/out.yaml b/testdata/yaml-test-suite/aliases-in-flow-objects/out.yaml new file mode 100644 index 00000000..f540cfe0 --- /dev/null +++ b/testdata/yaml-test-suite/aliases-in-flow-objects/out.yaml @@ -0,0 +1,8 @@ +? &a +- a +- &b b +: *b +*a : +- c +- *b +- d diff --git a/testdata/yaml-test-suite/aliases-in-implicit-block-mapping/in.json b/testdata/yaml-test-suite/aliases-in-implicit-block-mapping/in.json new file mode 100644 index 00000000..a9b2dde2 --- /dev/null +++ b/testdata/yaml-test-suite/aliases-in-implicit-block-mapping/in.json @@ -0,0 +1,4 @@ +{ + "a": "b", + "b": "a" +} diff --git a/testdata/yaml-test-suite/aliases-in-implicit-block-mapping/in.yaml b/testdata/yaml-test-suite/aliases-in-implicit-block-mapping/in.yaml new file mode 100644 index 00000000..756ff717 --- /dev/null +++ b/testdata/yaml-test-suite/aliases-in-implicit-block-mapping/in.yaml @@ -0,0 +1,2 @@ +&a a: &b b +*b : *a diff --git a/testdata/yaml-test-suite/aliases-in-implicit-block-mapping/out.yaml b/testdata/yaml-test-suite/aliases-in-implicit-block-mapping/out.yaml new file mode 100644 index 00000000..756ff717 --- /dev/null +++ b/testdata/yaml-test-suite/aliases-in-implicit-block-mapping/out.yaml @@ -0,0 +1,2 @@ +&a a: &b b +*b : *a diff --git a/testdata/yaml-test-suite/allowed-characters-in-alias/in.json b/testdata/yaml-test-suite/allowed-characters-in-alias/in.json new file mode 100644 index 00000000..d2a0de44 --- /dev/null +++ b/testdata/yaml-test-suite/allowed-characters-in-alias/in.json @@ -0,0 +1,4 @@ +{ + "a": "scalar a", + "b": "scalar a" +} diff --git a/testdata/yaml-test-suite/allowed-characters-in-alias/in.yaml b/testdata/yaml-test-suite/allowed-characters-in-alias/in.yaml new file mode 100644 index 00000000..43c7a151 --- /dev/null +++ b/testdata/yaml-test-suite/allowed-characters-in-alias/in.yaml @@ -0,0 +1,2 @@ +a: &:@*!$": scalar a +b: *:@*!$": diff --git a/testdata/yaml-test-suite/allowed-characters-in-keys/in.json b/testdata/yaml-test-suite/allowed-characters-in-keys/in.json new file mode 100644 index 00000000..91f8dbf2 --- /dev/null +++ b/testdata/yaml-test-suite/allowed-characters-in-keys/in.json @@ -0,0 +1,7 @@ +{ + "a!\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~": "safe", + "?foo": "safe question mark", + ":foo": "safe colon", + "-foo": "safe dash", + "this is#not": "a comment" +} diff --git a/testdata/yaml-test-suite/allowed-characters-in-keys/in.yaml b/testdata/yaml-test-suite/allowed-characters-in-keys/in.yaml new file mode 100644 index 00000000..3a5b0a3f --- /dev/null +++ b/testdata/yaml-test-suite/allowed-characters-in-keys/in.yaml @@ -0,0 +1,5 @@ +a!"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~: safe +?foo: safe question mark +:foo: safe colon +-foo: safe dash +this is#not: a comment diff --git a/testdata/yaml-test-suite/allowed-characters-in-keys/out.yaml b/testdata/yaml-test-suite/allowed-characters-in-keys/out.yaml new file mode 100644 index 00000000..3a5b0a3f --- /dev/null +++ b/testdata/yaml-test-suite/allowed-characters-in-keys/out.yaml @@ -0,0 +1,5 @@ +a!"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~: safe +?foo: safe question mark +:foo: safe colon +-foo: safe dash +this is#not: a comment diff --git a/testdata/yaml-test-suite/allowed-characters-in-plain-scalars/in.json b/testdata/yaml-test-suite/allowed-characters-in-plain-scalars/in.json new file mode 100644 index 00000000..bb25484a --- /dev/null +++ b/testdata/yaml-test-suite/allowed-characters-in-plain-scalars/in.json @@ -0,0 +1,6 @@ +{ + "safe": "a!\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~ !\"#$%&'()*+,-./09:;<=>?@AZ[\\]^_`az{|}~", + "safe question mark": "?foo", + "safe colon": ":foo", + "safe dash": "-foo" +} diff --git a/testdata/yaml-test-suite/allowed-characters-in-plain-scalars/in.yaml b/testdata/yaml-test-suite/allowed-characters-in-plain-scalars/in.yaml new file mode 100644 index 00000000..ed2516d5 --- /dev/null +++ b/testdata/yaml-test-suite/allowed-characters-in-plain-scalars/in.yaml @@ -0,0 +1,5 @@ +safe: a!"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~ + !"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~ +safe question mark: ?foo +safe colon: :foo +safe dash: -foo diff --git a/testdata/yaml-test-suite/allowed-characters-in-plain-scalars/out.yaml b/testdata/yaml-test-suite/allowed-characters-in-plain-scalars/out.yaml new file mode 100644 index 00000000..0b2fa410 --- /dev/null +++ b/testdata/yaml-test-suite/allowed-characters-in-plain-scalars/out.yaml @@ -0,0 +1,4 @@ +safe: a!"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~ !"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~ +safe question mark: ?foo +safe colon: :foo +safe dash: -foo diff --git a/testdata/yaml-test-suite/allowed-characters-in-quoted-mapping-key/in.json b/testdata/yaml-test-suite/allowed-characters-in-quoted-mapping-key/in.json new file mode 100644 index 00000000..b76510ff --- /dev/null +++ b/testdata/yaml-test-suite/allowed-characters-in-quoted-mapping-key/in.json @@ -0,0 +1,4 @@ +{ + "foo\nbar:baz\tx \\$%^&*()x": 23, + "x\\ny:z\\tx $%^&*()x": 24 +} diff --git a/testdata/yaml-test-suite/allowed-characters-in-quoted-mapping-key/in.yaml b/testdata/yaml-test-suite/allowed-characters-in-quoted-mapping-key/in.yaml new file mode 100644 index 00000000..5b8cd26e --- /dev/null +++ b/testdata/yaml-test-suite/allowed-characters-in-quoted-mapping-key/in.yaml @@ -0,0 +1,2 @@ +"foo\nbar:baz\tx \\$%^&*()x": 23 +'x\ny:z\tx $%^&*()x': 24 diff --git a/testdata/yaml-test-suite/allowed-characters-in-quoted-mapping-key/out.yaml b/testdata/yaml-test-suite/allowed-characters-in-quoted-mapping-key/out.yaml new file mode 100644 index 00000000..c17c0b4d --- /dev/null +++ b/testdata/yaml-test-suite/allowed-characters-in-quoted-mapping-key/out.yaml @@ -0,0 +1,3 @@ +? "foo\nbar:baz\tx \\$%^&*()x" +: 23 +'x\ny:z\tx $%^&*()x': 24 diff --git a/testdata/yaml-test-suite/anchor-and-alias-as-mapping-key/error b/testdata/yaml-test-suite/anchor-and-alias-as-mapping-key/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/anchor-and-alias-as-mapping-key/in.yaml b/testdata/yaml-test-suite/anchor-and-alias-as-mapping-key/in.yaml new file mode 100644 index 00000000..14f338ee --- /dev/null +++ b/testdata/yaml-test-suite/anchor-and-alias-as-mapping-key/in.yaml @@ -0,0 +1,2 @@ +key1: &alias value1 +&b *alias : value2 diff --git a/testdata/yaml-test-suite/anchor-before-sequence-entry-on-same-line/error b/testdata/yaml-test-suite/anchor-before-sequence-entry-on-same-line/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/anchor-before-sequence-entry-on-same-line/in.yaml b/testdata/yaml-test-suite/anchor-before-sequence-entry-on-same-line/in.yaml new file mode 100644 index 00000000..9912e670 --- /dev/null +++ b/testdata/yaml-test-suite/anchor-before-sequence-entry-on-same-line/in.yaml @@ -0,0 +1 @@ +&anchor - sequence entry diff --git a/testdata/yaml-test-suite/anchor-before-zero-indented-sequence/in.json b/testdata/yaml-test-suite/anchor-before-zero-indented-sequence/in.json new file mode 100644 index 00000000..8c9471e7 --- /dev/null +++ b/testdata/yaml-test-suite/anchor-before-zero-indented-sequence/in.json @@ -0,0 +1,6 @@ +{ + "seq": [ + "a", + "b" + ] +} diff --git a/testdata/yaml-test-suite/anchor-before-zero-indented-sequence/in.yaml b/testdata/yaml-test-suite/anchor-before-zero-indented-sequence/in.yaml new file mode 100644 index 00000000..6a8937a9 --- /dev/null +++ b/testdata/yaml-test-suite/anchor-before-zero-indented-sequence/in.yaml @@ -0,0 +1,5 @@ +--- +seq: + &anchor +- a +- b diff --git a/testdata/yaml-test-suite/anchor-before-zero-indented-sequence/out.yaml b/testdata/yaml-test-suite/anchor-before-zero-indented-sequence/out.yaml new file mode 100644 index 00000000..b4f50d8e --- /dev/null +++ b/testdata/yaml-test-suite/anchor-before-zero-indented-sequence/out.yaml @@ -0,0 +1,4 @@ +--- +seq: &anchor +- a +- b diff --git a/testdata/yaml-test-suite/anchor-for-empty-node/in.json b/testdata/yaml-test-suite/anchor-for-empty-node/in.json new file mode 100644 index 00000000..32b9bb53 --- /dev/null +++ b/testdata/yaml-test-suite/anchor-for-empty-node/in.json @@ -0,0 +1,4 @@ +{ + "a": null, + "b": null +} diff --git a/testdata/yaml-test-suite/anchor-for-empty-node/in.yaml b/testdata/yaml-test-suite/anchor-for-empty-node/in.yaml new file mode 100644 index 00000000..dea985ee --- /dev/null +++ b/testdata/yaml-test-suite/anchor-for-empty-node/in.yaml @@ -0,0 +1,3 @@ +--- +a: &anchor +b: *anchor diff --git a/testdata/yaml-test-suite/anchor-for-empty-node/out.yaml b/testdata/yaml-test-suite/anchor-for-empty-node/out.yaml new file mode 100644 index 00000000..dea985ee --- /dev/null +++ b/testdata/yaml-test-suite/anchor-for-empty-node/out.yaml @@ -0,0 +1,3 @@ +--- +a: &anchor +b: *anchor diff --git a/testdata/yaml-test-suite/anchor-plus-alias/error b/testdata/yaml-test-suite/anchor-plus-alias/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/anchor-plus-alias/in.yaml b/testdata/yaml-test-suite/anchor-plus-alias/in.yaml new file mode 100644 index 00000000..09c37059 --- /dev/null +++ b/testdata/yaml-test-suite/anchor-plus-alias/in.yaml @@ -0,0 +1,2 @@ +key1: &a value +key2: &b *a diff --git a/testdata/yaml-test-suite/anchor-with-colon-in-the-middle/in.json b/testdata/yaml-test-suite/anchor-with-colon-in-the-middle/in.json new file mode 100644 index 00000000..7a9e8644 --- /dev/null +++ b/testdata/yaml-test-suite/anchor-with-colon-in-the-middle/in.json @@ -0,0 +1,3 @@ +{ + "key": "value" +} diff --git a/testdata/yaml-test-suite/anchor-with-colon-in-the-middle/in.yaml b/testdata/yaml-test-suite/anchor-with-colon-in-the-middle/in.yaml new file mode 100644 index 00000000..ec2bb92d --- /dev/null +++ b/testdata/yaml-test-suite/anchor-with-colon-in-the-middle/in.yaml @@ -0,0 +1,2 @@ +--- +key: &an:chor value diff --git a/testdata/yaml-test-suite/anchor-with-colon-in-the-middle/out.yaml b/testdata/yaml-test-suite/anchor-with-colon-in-the-middle/out.yaml new file mode 100644 index 00000000..ec2bb92d --- /dev/null +++ b/testdata/yaml-test-suite/anchor-with-colon-in-the-middle/out.yaml @@ -0,0 +1,2 @@ +--- +key: &an:chor value diff --git a/testdata/yaml-test-suite/anchor-with-unicode-character/in.json b/testdata/yaml-test-suite/anchor-with-unicode-character/in.json new file mode 100644 index 00000000..85f4c1a3 --- /dev/null +++ b/testdata/yaml-test-suite/anchor-with-unicode-character/in.json @@ -0,0 +1,3 @@ +[ + "unicode anchor" +] diff --git a/testdata/yaml-test-suite/anchor-with-unicode-character/in.yaml b/testdata/yaml-test-suite/anchor-with-unicode-character/in.yaml new file mode 100644 index 00000000..72c1c378 --- /dev/null +++ b/testdata/yaml-test-suite/anchor-with-unicode-character/in.yaml @@ -0,0 +1,2 @@ +--- +- &😁 unicode anchor diff --git a/testdata/yaml-test-suite/anchor-with-unicode-character/out.yaml b/testdata/yaml-test-suite/anchor-with-unicode-character/out.yaml new file mode 100644 index 00000000..72c1c378 --- /dev/null +++ b/testdata/yaml-test-suite/anchor-with-unicode-character/out.yaml @@ -0,0 +1,2 @@ +--- +- &😁 unicode anchor diff --git a/testdata/yaml-test-suite/anchors-and-tags/in.json b/testdata/yaml-test-suite/anchors-and-tags/in.json new file mode 100644 index 00000000..2c185ac4 --- /dev/null +++ b/testdata/yaml-test-suite/anchors-and-tags/in.json @@ -0,0 +1,6 @@ +[ + "a", + 2, + 4, + "d" +] diff --git a/testdata/yaml-test-suite/anchors-and-tags/in.yaml b/testdata/yaml-test-suite/anchors-and-tags/in.yaml new file mode 100644 index 00000000..8574f957 --- /dev/null +++ b/testdata/yaml-test-suite/anchors-and-tags/in.yaml @@ -0,0 +1,4 @@ + - &a !!str a + - !!int 2 + - !!int &c 4 + - &d d diff --git a/testdata/yaml-test-suite/anchors-and-tags/out.yaml b/testdata/yaml-test-suite/anchors-and-tags/out.yaml new file mode 100644 index 00000000..c1465d6c --- /dev/null +++ b/testdata/yaml-test-suite/anchors-and-tags/out.yaml @@ -0,0 +1,4 @@ +- &a !!str a +- !!int 2 +- &c !!int 4 +- &d d diff --git a/testdata/yaml-test-suite/anchors-in-mapping/in.json b/testdata/yaml-test-suite/anchors-in-mapping/in.json new file mode 100644 index 00000000..bc927642 --- /dev/null +++ b/testdata/yaml-test-suite/anchors-in-mapping/in.json @@ -0,0 +1,4 @@ +{ + "a": "b", + "c": "d" +} diff --git a/testdata/yaml-test-suite/anchors-in-mapping/in.yaml b/testdata/yaml-test-suite/anchors-in-mapping/in.yaml new file mode 100644 index 00000000..64d718fd --- /dev/null +++ b/testdata/yaml-test-suite/anchors-in-mapping/in.yaml @@ -0,0 +1,2 @@ +&a a: b +c: &d d diff --git a/testdata/yaml-test-suite/anchors-on-empty-scalars/in.yaml b/testdata/yaml-test-suite/anchors-on-empty-scalars/in.yaml new file mode 100644 index 00000000..23cbbb13 --- /dev/null +++ b/testdata/yaml-test-suite/anchors-on-empty-scalars/in.yaml @@ -0,0 +1,12 @@ +- &a +- a +- + &a : a + b: &b +- + &c : &a +- + ? &d +- + ? &e + : &a diff --git a/testdata/yaml-test-suite/anchors-on-empty-scalars/out.yaml b/testdata/yaml-test-suite/anchors-on-empty-scalars/out.yaml new file mode 100644 index 00000000..497eff10 --- /dev/null +++ b/testdata/yaml-test-suite/anchors-on-empty-scalars/out.yaml @@ -0,0 +1,7 @@ +- &a +- a +- &a : a + b: &b +- &c : &a +- &d : +- &e : &a diff --git a/testdata/yaml-test-suite/anchors-with-colon-in-name/in.json b/testdata/yaml-test-suite/anchors-with-colon-in-name/in.json new file mode 100644 index 00000000..d4470a64 --- /dev/null +++ b/testdata/yaml-test-suite/anchors-with-colon-in-name/in.json @@ -0,0 +1,4 @@ +{ + "key": "value", + "foo": "key" +} diff --git a/testdata/yaml-test-suite/anchors-with-colon-in-name/in.yaml b/testdata/yaml-test-suite/anchors-with-colon-in-name/in.yaml new file mode 100644 index 00000000..243c466a --- /dev/null +++ b/testdata/yaml-test-suite/anchors-with-colon-in-name/in.yaml @@ -0,0 +1,3 @@ +&a: key: &a value +foo: + *a: diff --git a/testdata/yaml-test-suite/anchors-with-colon-in-name/out.yaml b/testdata/yaml-test-suite/anchors-with-colon-in-name/out.yaml new file mode 100644 index 00000000..aa5cccdf --- /dev/null +++ b/testdata/yaml-test-suite/anchors-with-colon-in-name/out.yaml @@ -0,0 +1,2 @@ +&a: key: &a value +foo: *a: diff --git a/testdata/yaml-test-suite/backslashes-in-singlequotes/in.json b/testdata/yaml-test-suite/backslashes-in-singlequotes/in.json new file mode 100644 index 00000000..030ae9cc --- /dev/null +++ b/testdata/yaml-test-suite/backslashes-in-singlequotes/in.json @@ -0,0 +1,3 @@ +{ + "foo: bar\\": "baz'" +} diff --git a/testdata/yaml-test-suite/backslashes-in-singlequotes/in.yaml b/testdata/yaml-test-suite/backslashes-in-singlequotes/in.yaml new file mode 100644 index 00000000..33424c03 --- /dev/null +++ b/testdata/yaml-test-suite/backslashes-in-singlequotes/in.yaml @@ -0,0 +1 @@ +'foo: bar\': baz' diff --git a/testdata/yaml-test-suite/backslashes-in-singlequotes/out.yaml b/testdata/yaml-test-suite/backslashes-in-singlequotes/out.yaml new file mode 100644 index 00000000..33424c03 --- /dev/null +++ b/testdata/yaml-test-suite/backslashes-in-singlequotes/out.yaml @@ -0,0 +1 @@ +'foo: bar\': baz' diff --git a/testdata/yaml-test-suite/bad-indentation-in-mapping-2/error b/testdata/yaml-test-suite/bad-indentation-in-mapping-2/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/bad-indentation-in-mapping-2/in.yaml b/testdata/yaml-test-suite/bad-indentation-in-mapping-2/in.yaml new file mode 100644 index 00000000..de68a327 --- /dev/null +++ b/testdata/yaml-test-suite/bad-indentation-in-mapping-2/in.yaml @@ -0,0 +1,3 @@ +map: + key1: "quoted1" + key2: "bad indentation" diff --git a/testdata/yaml-test-suite/bad-indentation-in-mapping/error b/testdata/yaml-test-suite/bad-indentation-in-mapping/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/bad-indentation-in-mapping/in.yaml b/testdata/yaml-test-suite/bad-indentation-in-mapping/in.yaml new file mode 100644 index 00000000..55c30387 --- /dev/null +++ b/testdata/yaml-test-suite/bad-indentation-in-mapping/in.yaml @@ -0,0 +1,3 @@ +map: + key1: "quoted1" + key2: "bad indentation" diff --git a/testdata/yaml-test-suite/bare-document-after-document-end-marker/in.json b/testdata/yaml-test-suite/bare-document-after-document-end-marker/in.json new file mode 100644 index 00000000..ca729cd2 --- /dev/null +++ b/testdata/yaml-test-suite/bare-document-after-document-end-marker/in.json @@ -0,0 +1,4 @@ +"scalar1" +{ + "key": "value" +} diff --git a/testdata/yaml-test-suite/bare-document-after-document-end-marker/in.yaml b/testdata/yaml-test-suite/bare-document-after-document-end-marker/in.yaml new file mode 100644 index 00000000..69649446 --- /dev/null +++ b/testdata/yaml-test-suite/bare-document-after-document-end-marker/in.yaml @@ -0,0 +1,4 @@ +--- +scalar1 +... +key: value diff --git a/testdata/yaml-test-suite/bare-document-after-document-end-marker/out.yaml b/testdata/yaml-test-suite/bare-document-after-document-end-marker/out.yaml new file mode 100644 index 00000000..ce128ec9 --- /dev/null +++ b/testdata/yaml-test-suite/bare-document-after-document-end-marker/out.yaml @@ -0,0 +1,3 @@ +--- scalar1 +... +key: value diff --git a/testdata/yaml-test-suite/blank-lines/in.json b/testdata/yaml-test-suite/blank-lines/in.json new file mode 100644 index 00000000..6a308c5e --- /dev/null +++ b/testdata/yaml-test-suite/blank-lines/in.json @@ -0,0 +1,5 @@ +{ + "foo": 1, + "bar": 2, + "text": "a\n \nb\n\nc\n\nd\n" +} diff --git a/testdata/yaml-test-suite/blank-lines/in.yaml b/testdata/yaml-test-suite/blank-lines/in.yaml new file mode 100644 index 00000000..4987de22 --- /dev/null +++ b/testdata/yaml-test-suite/blank-lines/in.yaml @@ -0,0 +1,12 @@ +foo: 1 + +bar: 2 + +text: | + a + + b + + c + + d diff --git a/testdata/yaml-test-suite/blank-lines/out.yaml b/testdata/yaml-test-suite/blank-lines/out.yaml new file mode 100644 index 00000000..a0064145 --- /dev/null +++ b/testdata/yaml-test-suite/blank-lines/out.yaml @@ -0,0 +1,3 @@ +foo: 1 +bar: 2 +text: "a\n \nb\n\nc\n\nd\n" diff --git a/testdata/yaml-test-suite/block-mapping-with-missing-keys/in.yaml b/testdata/yaml-test-suite/block-mapping-with-missing-keys/in.yaml new file mode 100644 index 00000000..d0a086d0 --- /dev/null +++ b/testdata/yaml-test-suite/block-mapping-with-missing-keys/in.yaml @@ -0,0 +1,2 @@ +: a +: b diff --git a/testdata/yaml-test-suite/block-mapping-with-missing-values/in.json b/testdata/yaml-test-suite/block-mapping-with-missing-values/in.json new file mode 100644 index 00000000..a08ddaaa --- /dev/null +++ b/testdata/yaml-test-suite/block-mapping-with-missing-values/in.json @@ -0,0 +1,5 @@ +{ + "a": null, + "b": null, + "c": null +} diff --git a/testdata/yaml-test-suite/block-mapping-with-missing-values/in.yaml b/testdata/yaml-test-suite/block-mapping-with-missing-values/in.yaml new file mode 100644 index 00000000..e36dcc92 --- /dev/null +++ b/testdata/yaml-test-suite/block-mapping-with-missing-values/in.yaml @@ -0,0 +1,3 @@ +? a +? b +c: diff --git a/testdata/yaml-test-suite/block-mapping-with-missing-values/out.yaml b/testdata/yaml-test-suite/block-mapping-with-missing-values/out.yaml new file mode 100644 index 00000000..8dd099d2 --- /dev/null +++ b/testdata/yaml-test-suite/block-mapping-with-missing-values/out.yaml @@ -0,0 +1,3 @@ +a: +b: +c: diff --git a/testdata/yaml-test-suite/block-mapping-with-multiline-scalars/in.json b/testdata/yaml-test-suite/block-mapping-with-multiline-scalars/in.json new file mode 100644 index 00000000..fbccf11e --- /dev/null +++ b/testdata/yaml-test-suite/block-mapping-with-multiline-scalars/in.json @@ -0,0 +1,4 @@ +{ + "a true": "null d", + "e 42": null +} diff --git a/testdata/yaml-test-suite/block-mapping-with-multiline-scalars/in.yaml b/testdata/yaml-test-suite/block-mapping-with-multiline-scalars/in.yaml new file mode 100644 index 00000000..247a8cd5 --- /dev/null +++ b/testdata/yaml-test-suite/block-mapping-with-multiline-scalars/in.yaml @@ -0,0 +1,6 @@ +? a + true +: null + d +? e + 42 diff --git a/testdata/yaml-test-suite/block-mapping-with-multiline-scalars/out.yaml b/testdata/yaml-test-suite/block-mapping-with-multiline-scalars/out.yaml new file mode 100644 index 00000000..5c876b82 --- /dev/null +++ b/testdata/yaml-test-suite/block-mapping-with-multiline-scalars/out.yaml @@ -0,0 +1,2 @@ +a true: null d +e 42: diff --git a/testdata/yaml-test-suite/block-mappings-in-block-sequence/in.json b/testdata/yaml-test-suite/block-mappings-in-block-sequence/in.json new file mode 100644 index 00000000..ab22c393 --- /dev/null +++ b/testdata/yaml-test-suite/block-mappings-in-block-sequence/in.json @@ -0,0 +1,9 @@ +[ + { + "key": "value", + "key2": "value2" + }, + { + "key3": "value3" + } +] diff --git a/testdata/yaml-test-suite/block-mappings-in-block-sequence/in.yaml b/testdata/yaml-test-suite/block-mappings-in-block-sequence/in.yaml new file mode 100644 index 00000000..30c49a33 --- /dev/null +++ b/testdata/yaml-test-suite/block-mappings-in-block-sequence/in.yaml @@ -0,0 +1,4 @@ + - key: value + key2: value2 + - + key3: value3 diff --git a/testdata/yaml-test-suite/block-mappings-in-block-sequence/out.yaml b/testdata/yaml-test-suite/block-mappings-in-block-sequence/out.yaml new file mode 100644 index 00000000..62789bc0 --- /dev/null +++ b/testdata/yaml-test-suite/block-mappings-in-block-sequence/out.yaml @@ -0,0 +1,3 @@ +- key: value + key2: value2 +- key3: value3 diff --git a/testdata/yaml-test-suite/block-scalar-indicator-order/in.json b/testdata/yaml-test-suite/block-scalar-indicator-order/in.json new file mode 100644 index 00000000..179dcbdc --- /dev/null +++ b/testdata/yaml-test-suite/block-scalar-indicator-order/in.json @@ -0,0 +1,4 @@ +[ + "explicit indent and chomp", + "chomp and explicit indent" +] diff --git a/testdata/yaml-test-suite/block-scalar-indicator-order/in.yaml b/testdata/yaml-test-suite/block-scalar-indicator-order/in.yaml new file mode 100644 index 00000000..3d603d18 --- /dev/null +++ b/testdata/yaml-test-suite/block-scalar-indicator-order/in.yaml @@ -0,0 +1,4 @@ +- |2- + explicit indent and chomp +- |-2 + chomp and explicit indent diff --git a/testdata/yaml-test-suite/block-scalar-indicator-order/out.yaml b/testdata/yaml-test-suite/block-scalar-indicator-order/out.yaml new file mode 100644 index 00000000..3270084a --- /dev/null +++ b/testdata/yaml-test-suite/block-scalar-indicator-order/out.yaml @@ -0,0 +1,4 @@ +- |- + explicit indent and chomp +- |- + chomp and explicit indent diff --git a/testdata/yaml-test-suite/block-scalar-keep/in.json b/testdata/yaml-test-suite/block-scalar-keep/in.json new file mode 100644 index 00000000..7b0aa634 --- /dev/null +++ b/testdata/yaml-test-suite/block-scalar-keep/in.json @@ -0,0 +1 @@ +"ab\n\n \n" diff --git a/testdata/yaml-test-suite/block-scalar-keep/in.yaml b/testdata/yaml-test-suite/block-scalar-keep/in.yaml new file mode 100644 index 00000000..1ff9bfa3 --- /dev/null +++ b/testdata/yaml-test-suite/block-scalar-keep/in.yaml @@ -0,0 +1,5 @@ +--- |+ + ab + + +... diff --git a/testdata/yaml-test-suite/block-scalar-keep/out.yaml b/testdata/yaml-test-suite/block-scalar-keep/out.yaml new file mode 100644 index 00000000..d3074047 --- /dev/null +++ b/testdata/yaml-test-suite/block-scalar-keep/out.yaml @@ -0,0 +1,2 @@ +"ab\n\n \n" +... diff --git a/testdata/yaml-test-suite/block-scalar-strip-1-3/in.json b/testdata/yaml-test-suite/block-scalar-strip-1-3/in.json new file mode 100644 index 00000000..cb5537d5 --- /dev/null +++ b/testdata/yaml-test-suite/block-scalar-strip-1-3/in.json @@ -0,0 +1 @@ +"ab" diff --git a/testdata/yaml-test-suite/block-scalar-strip-1-3/in.yaml b/testdata/yaml-test-suite/block-scalar-strip-1-3/in.yaml new file mode 100644 index 00000000..33a65778 --- /dev/null +++ b/testdata/yaml-test-suite/block-scalar-strip-1-3/in.yaml @@ -0,0 +1,5 @@ +--- |- + ab + + +... diff --git a/testdata/yaml-test-suite/block-scalar-strip-1-3/out.yaml b/testdata/yaml-test-suite/block-scalar-strip-1-3/out.yaml new file mode 100644 index 00000000..eaf792b2 --- /dev/null +++ b/testdata/yaml-test-suite/block-scalar-strip-1-3/out.yaml @@ -0,0 +1,3 @@ +--- |- + ab +... diff --git a/testdata/yaml-test-suite/block-scalar-strip/in.json b/testdata/yaml-test-suite/block-scalar-strip/in.json new file mode 100644 index 00000000..cb5537d5 --- /dev/null +++ b/testdata/yaml-test-suite/block-scalar-strip/in.json @@ -0,0 +1 @@ +"ab" diff --git a/testdata/yaml-test-suite/block-scalar-strip/in.yaml b/testdata/yaml-test-suite/block-scalar-strip/in.yaml new file mode 100644 index 00000000..1056edd7 --- /dev/null +++ b/testdata/yaml-test-suite/block-scalar-strip/in.yaml @@ -0,0 +1,5 @@ +|- + ab + + +... diff --git a/testdata/yaml-test-suite/block-scalar-strip/out.yaml b/testdata/yaml-test-suite/block-scalar-strip/out.yaml new file mode 100644 index 00000000..b917b3af --- /dev/null +++ b/testdata/yaml-test-suite/block-scalar-strip/out.yaml @@ -0,0 +1,3 @@ +|- + ab +... diff --git a/testdata/yaml-test-suite/block-scalar-with-more-spaces-than-first-content-line/error b/testdata/yaml-test-suite/block-scalar-with-more-spaces-than-first-content-line/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/block-scalar-with-more-spaces-than-first-content-line/in.yaml b/testdata/yaml-test-suite/block-scalar-with-more-spaces-than-first-content-line/in.yaml new file mode 100644 index 00000000..3574e021 --- /dev/null +++ b/testdata/yaml-test-suite/block-scalar-with-more-spaces-than-first-content-line/in.yaml @@ -0,0 +1,5 @@ +empty block scalar: > + + + + # comment diff --git a/testdata/yaml-test-suite/block-scalar-with-wrong-indented-line-after-spaces-only/error b/testdata/yaml-test-suite/block-scalar-with-wrong-indented-line-after-spaces-only/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/block-scalar-with-wrong-indented-line-after-spaces-only/in.yaml b/testdata/yaml-test-suite/block-scalar-with-wrong-indented-line-after-spaces-only/in.yaml new file mode 100644 index 00000000..34d30b1b --- /dev/null +++ b/testdata/yaml-test-suite/block-scalar-with-wrong-indented-line-after-spaces-only/in.yaml @@ -0,0 +1,5 @@ +block scalar: > + + + + invalid diff --git a/testdata/yaml-test-suite/block-sequence-in-block-mapping/in.json b/testdata/yaml-test-suite/block-sequence-in-block-mapping/in.json new file mode 100644 index 00000000..53a26011 --- /dev/null +++ b/testdata/yaml-test-suite/block-sequence-in-block-mapping/in.json @@ -0,0 +1,6 @@ +{ + "key": [ + "item1", + "item2" + ] +} diff --git a/testdata/yaml-test-suite/block-sequence-in-block-mapping/in.yaml b/testdata/yaml-test-suite/block-sequence-in-block-mapping/in.yaml new file mode 100644 index 00000000..6b937f80 --- /dev/null +++ b/testdata/yaml-test-suite/block-sequence-in-block-mapping/in.yaml @@ -0,0 +1,3 @@ +key: + - item1 + - item2 diff --git a/testdata/yaml-test-suite/block-sequence-in-block-mapping/out.yaml b/testdata/yaml-test-suite/block-sequence-in-block-mapping/out.yaml new file mode 100644 index 00000000..3cd4578e --- /dev/null +++ b/testdata/yaml-test-suite/block-sequence-in-block-mapping/out.yaml @@ -0,0 +1,3 @@ +key: +- item1 +- item2 diff --git a/testdata/yaml-test-suite/block-sequence-in-block-sequence/in.json b/testdata/yaml-test-suite/block-sequence-in-block-sequence/in.json new file mode 100644 index 00000000..71ea9d47 --- /dev/null +++ b/testdata/yaml-test-suite/block-sequence-in-block-sequence/in.json @@ -0,0 +1,7 @@ +[ + [ + "s1_i1", + "s1_i2" + ], + "s2" +] diff --git a/testdata/yaml-test-suite/block-sequence-in-block-sequence/in.yaml b/testdata/yaml-test-suite/block-sequence-in-block-sequence/in.yaml new file mode 100644 index 00000000..4738eb10 --- /dev/null +++ b/testdata/yaml-test-suite/block-sequence-in-block-sequence/in.yaml @@ -0,0 +1,3 @@ +- - s1_i1 + - s1_i2 +- s2 diff --git a/testdata/yaml-test-suite/block-sequence-indentation/in.json b/testdata/yaml-test-suite/block-sequence-indentation/in.json new file mode 100644 index 00000000..8e9ddf64 --- /dev/null +++ b/testdata/yaml-test-suite/block-sequence-indentation/in.json @@ -0,0 +1,9 @@ +[ + "x\n", + { + "foo" : "bar" + }, + [ + 42 + ] +] diff --git a/testdata/yaml-test-suite/block-sequence-indentation/in.yaml b/testdata/yaml-test-suite/block-sequence-indentation/in.yaml new file mode 100644 index 00000000..d8468d79 --- /dev/null +++ b/testdata/yaml-test-suite/block-sequence-indentation/in.yaml @@ -0,0 +1,6 @@ +- | + x +- + foo: bar +- + - 42 diff --git a/testdata/yaml-test-suite/block-sequence-indentation/out.yaml b/testdata/yaml-test-suite/block-sequence-indentation/out.yaml new file mode 100644 index 00000000..5531ced8 --- /dev/null +++ b/testdata/yaml-test-suite/block-sequence-indentation/out.yaml @@ -0,0 +1,4 @@ +- | + x +- foo: bar +- - 42 diff --git a/testdata/yaml-test-suite/block-submapping/in.json b/testdata/yaml-test-suite/block-submapping/in.json new file mode 100644 index 00000000..b7cf07e9 --- /dev/null +++ b/testdata/yaml-test-suite/block-submapping/in.json @@ -0,0 +1,6 @@ +{ + "foo": { + "bar": 1 + }, + "baz": 2 +} diff --git a/testdata/yaml-test-suite/block-submapping/in.yaml b/testdata/yaml-test-suite/block-submapping/in.yaml new file mode 100644 index 00000000..32d21142 --- /dev/null +++ b/testdata/yaml-test-suite/block-submapping/in.yaml @@ -0,0 +1,3 @@ +foo: + bar: 1 +baz: 2 diff --git a/testdata/yaml-test-suite/colon-and-adjacent-value-after-comment-on-next-line/in.json b/testdata/yaml-test-suite/colon-and-adjacent-value-after-comment-on-next-line/in.json new file mode 100644 index 00000000..c8c4105e --- /dev/null +++ b/testdata/yaml-test-suite/colon-and-adjacent-value-after-comment-on-next-line/in.json @@ -0,0 +1,3 @@ +{ + "foo": "bar" +} diff --git a/testdata/yaml-test-suite/colon-and-adjacent-value-after-comment-on-next-line/in.yaml b/testdata/yaml-test-suite/colon-and-adjacent-value-after-comment-on-next-line/in.yaml new file mode 100644 index 00000000..14d27537 --- /dev/null +++ b/testdata/yaml-test-suite/colon-and-adjacent-value-after-comment-on-next-line/in.yaml @@ -0,0 +1,3 @@ +--- +{ "foo" # comment + :bar } diff --git a/testdata/yaml-test-suite/colon-and-adjacent-value-after-comment-on-next-line/out.yaml b/testdata/yaml-test-suite/colon-and-adjacent-value-after-comment-on-next-line/out.yaml new file mode 100644 index 00000000..46d4e8bb --- /dev/null +++ b/testdata/yaml-test-suite/colon-and-adjacent-value-after-comment-on-next-line/out.yaml @@ -0,0 +1,2 @@ +--- +"foo": bar diff --git a/testdata/yaml-test-suite/colon-and-adjacent-value-on-next-line/in.json b/testdata/yaml-test-suite/colon-and-adjacent-value-on-next-line/in.json new file mode 100644 index 00000000..c8c4105e --- /dev/null +++ b/testdata/yaml-test-suite/colon-and-adjacent-value-on-next-line/in.json @@ -0,0 +1,3 @@ +{ + "foo": "bar" +} diff --git a/testdata/yaml-test-suite/colon-and-adjacent-value-on-next-line/in.yaml b/testdata/yaml-test-suite/colon-and-adjacent-value-on-next-line/in.yaml new file mode 100644 index 00000000..f0a4e3e9 --- /dev/null +++ b/testdata/yaml-test-suite/colon-and-adjacent-value-on-next-line/in.yaml @@ -0,0 +1,3 @@ +--- +{ "foo" + :bar } diff --git a/testdata/yaml-test-suite/colon-and-adjacent-value-on-next-line/out.yaml b/testdata/yaml-test-suite/colon-and-adjacent-value-on-next-line/out.yaml new file mode 100644 index 00000000..46d4e8bb --- /dev/null +++ b/testdata/yaml-test-suite/colon-and-adjacent-value-on-next-line/out.yaml @@ -0,0 +1,2 @@ +--- +"foo": bar diff --git a/testdata/yaml-test-suite/colon-at-the-beginning-of-adjacent-flow-scalar/in.json b/testdata/yaml-test-suite/colon-at-the-beginning-of-adjacent-flow-scalar/in.json new file mode 100644 index 00000000..7eb5fce8 --- /dev/null +++ b/testdata/yaml-test-suite/colon-at-the-beginning-of-adjacent-flow-scalar/in.json @@ -0,0 +1,8 @@ +[ + { + "key": "value" + }, + { + "key": ":value" + } +] diff --git a/testdata/yaml-test-suite/colon-at-the-beginning-of-adjacent-flow-scalar/in.yaml b/testdata/yaml-test-suite/colon-at-the-beginning-of-adjacent-flow-scalar/in.yaml new file mode 100644 index 00000000..03936e6c --- /dev/null +++ b/testdata/yaml-test-suite/colon-at-the-beginning-of-adjacent-flow-scalar/in.yaml @@ -0,0 +1,2 @@ +- { "key":value } +- { "key"::value } diff --git a/testdata/yaml-test-suite/colon-at-the-beginning-of-adjacent-flow-scalar/out.yaml b/testdata/yaml-test-suite/colon-at-the-beginning-of-adjacent-flow-scalar/out.yaml new file mode 100644 index 00000000..0634b970 --- /dev/null +++ b/testdata/yaml-test-suite/colon-at-the-beginning-of-adjacent-flow-scalar/out.yaml @@ -0,0 +1,2 @@ +- key: value +- key: :value diff --git a/testdata/yaml-test-suite/colon-followed-by-comma/in.json b/testdata/yaml-test-suite/colon-followed-by-comma/in.json new file mode 100644 index 00000000..eadfbdc7 --- /dev/null +++ b/testdata/yaml-test-suite/colon-followed-by-comma/in.json @@ -0,0 +1,3 @@ +[ + ":," +] diff --git a/testdata/yaml-test-suite/colon-followed-by-comma/in.yaml b/testdata/yaml-test-suite/colon-followed-by-comma/in.yaml new file mode 100644 index 00000000..db7f2292 --- /dev/null +++ b/testdata/yaml-test-suite/colon-followed-by-comma/in.yaml @@ -0,0 +1,2 @@ +--- +- :, diff --git a/testdata/yaml-test-suite/colon-followed-by-comma/out.yaml b/testdata/yaml-test-suite/colon-followed-by-comma/out.yaml new file mode 100644 index 00000000..db7f2292 --- /dev/null +++ b/testdata/yaml-test-suite/colon-followed-by-comma/out.yaml @@ -0,0 +1,2 @@ +--- +- :, diff --git a/testdata/yaml-test-suite/colon-in-double-quoted-string/in.json b/testdata/yaml-test-suite/colon-in-double-quoted-string/in.json new file mode 100644 index 00000000..912727ef --- /dev/null +++ b/testdata/yaml-test-suite/colon-in-double-quoted-string/in.json @@ -0,0 +1 @@ +"foo: bar\": baz" diff --git a/testdata/yaml-test-suite/colon-in-double-quoted-string/in.yaml b/testdata/yaml-test-suite/colon-in-double-quoted-string/in.yaml new file mode 100644 index 00000000..912727ef --- /dev/null +++ b/testdata/yaml-test-suite/colon-in-double-quoted-string/in.yaml @@ -0,0 +1 @@ +"foo: bar\": baz" diff --git a/testdata/yaml-test-suite/comment-and-document-end-marker/in.json b/testdata/yaml-test-suite/comment-and-document-end-marker/in.json new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/comment-and-document-end-marker/in.yaml b/testdata/yaml-test-suite/comment-and-document-end-marker/in.yaml new file mode 100644 index 00000000..84cd22e5 --- /dev/null +++ b/testdata/yaml-test-suite/comment-and-document-end-marker/in.yaml @@ -0,0 +1,2 @@ +# comment +... diff --git a/testdata/yaml-test-suite/comment-and-document-end-marker/out.yaml b/testdata/yaml-test-suite/comment-and-document-end-marker/out.yaml new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/comment-between-plain-scalar-lines/error b/testdata/yaml-test-suite/comment-between-plain-scalar-lines/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/comment-between-plain-scalar-lines/in.yaml b/testdata/yaml-test-suite/comment-between-plain-scalar-lines/in.yaml new file mode 100644 index 00000000..5ddae76a --- /dev/null +++ b/testdata/yaml-test-suite/comment-between-plain-scalar-lines/in.yaml @@ -0,0 +1,2 @@ +word1 # comment +word2 diff --git a/testdata/yaml-test-suite/comment-in-flow-sequence-before-comma/in.json b/testdata/yaml-test-suite/comment-in-flow-sequence-before-comma/in.json new file mode 100644 index 00000000..064aca0a --- /dev/null +++ b/testdata/yaml-test-suite/comment-in-flow-sequence-before-comma/in.json @@ -0,0 +1,4 @@ +[ + "word1", + "word2" +] diff --git a/testdata/yaml-test-suite/comment-in-flow-sequence-before-comma/in.yaml b/testdata/yaml-test-suite/comment-in-flow-sequence-before-comma/in.yaml new file mode 100644 index 00000000..312847e5 --- /dev/null +++ b/testdata/yaml-test-suite/comment-in-flow-sequence-before-comma/in.yaml @@ -0,0 +1,4 @@ +--- +[ word1 +# comment +, word2] diff --git a/testdata/yaml-test-suite/comment-in-flow-sequence-before-comma/out.yaml b/testdata/yaml-test-suite/comment-in-flow-sequence-before-comma/out.yaml new file mode 100644 index 00000000..c3ac536b --- /dev/null +++ b/testdata/yaml-test-suite/comment-in-flow-sequence-before-comma/out.yaml @@ -0,0 +1,3 @@ +--- +- word1 +- word2 diff --git a/testdata/yaml-test-suite/comment-in-plain-multiline-value/error b/testdata/yaml-test-suite/comment-in-plain-multiline-value/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/comment-in-plain-multiline-value/in.yaml b/testdata/yaml-test-suite/comment-in-plain-multiline-value/in.yaml new file mode 100644 index 00000000..5045e77b --- /dev/null +++ b/testdata/yaml-test-suite/comment-in-plain-multiline-value/in.yaml @@ -0,0 +1,3 @@ +key: word1 +# xxx + word2 diff --git a/testdata/yaml-test-suite/comment-that-looks-like-a-mapping-key/error b/testdata/yaml-test-suite/comment-that-looks-like-a-mapping-key/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/comment-that-looks-like-a-mapping-key/in.yaml b/testdata/yaml-test-suite/comment-that-looks-like-a-mapping-key/in.yaml new file mode 100644 index 00000000..ac493b7f --- /dev/null +++ b/testdata/yaml-test-suite/comment-that-looks-like-a-mapping-key/in.yaml @@ -0,0 +1,2 @@ +key: value +this is #not a: key diff --git a/testdata/yaml-test-suite/comment-without-whitespace-after-block-scalar-indicator/error b/testdata/yaml-test-suite/comment-without-whitespace-after-block-scalar-indicator/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/comment-without-whitespace-after-block-scalar-indicator/in.yaml b/testdata/yaml-test-suite/comment-without-whitespace-after-block-scalar-indicator/in.yaml new file mode 100644 index 00000000..0444f189 --- /dev/null +++ b/testdata/yaml-test-suite/comment-without-whitespace-after-block-scalar-indicator/in.yaml @@ -0,0 +1,2 @@ +block: ># comment + scalar diff --git a/testdata/yaml-test-suite/comment-without-whitespace-after-doublequoted-scalar/error b/testdata/yaml-test-suite/comment-without-whitespace-after-doublequoted-scalar/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/comment-without-whitespace-after-doublequoted-scalar/in.yaml b/testdata/yaml-test-suite/comment-without-whitespace-after-doublequoted-scalar/in.yaml new file mode 100644 index 00000000..ec3e02ef --- /dev/null +++ b/testdata/yaml-test-suite/comment-without-whitespace-after-doublequoted-scalar/in.yaml @@ -0,0 +1 @@ +key: "value"# invalid comment diff --git a/testdata/yaml-test-suite/construct-binary/in.json b/testdata/yaml-test-suite/construct-binary/in.json new file mode 100644 index 00000000..4b6d8176 --- /dev/null +++ b/testdata/yaml-test-suite/construct-binary/in.json @@ -0,0 +1,5 @@ +{ + "canonical": "R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/++f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLCAgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=", + "generic": "R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\nOTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\n+f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\nAgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=\n", + "description": "The binary value above is a tiny arrow encoded as a gif image." +} diff --git a/testdata/yaml-test-suite/construct-binary/in.yaml b/testdata/yaml-test-suite/construct-binary/in.yaml new file mode 100644 index 00000000..dcdb16f3 --- /dev/null +++ b/testdata/yaml-test-suite/construct-binary/in.yaml @@ -0,0 +1,12 @@ +canonical: !!binary "\ + R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\ + OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\ + +f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\ + AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=" +generic: !!binary | + R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5 + OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+ + +f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC + AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs= +description: + The binary value above is a tiny arrow encoded as a gif image. diff --git a/testdata/yaml-test-suite/dash-in-flow-sequence/error b/testdata/yaml-test-suite/dash-in-flow-sequence/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/dash-in-flow-sequence/in.yaml b/testdata/yaml-test-suite/dash-in-flow-sequence/in.yaml new file mode 100644 index 00000000..4cce7dcd --- /dev/null +++ b/testdata/yaml-test-suite/dash-in-flow-sequence/in.yaml @@ -0,0 +1 @@ +[-] diff --git a/testdata/yaml-test-suite/directive-by-itself-with-no-document/error b/testdata/yaml-test-suite/directive-by-itself-with-no-document/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/directive-by-itself-with-no-document/in.yaml b/testdata/yaml-test-suite/directive-by-itself-with-no-document/in.yaml new file mode 100644 index 00000000..6e9a0bdc --- /dev/null +++ b/testdata/yaml-test-suite/directive-by-itself-with-no-document/in.yaml @@ -0,0 +1 @@ +%YAML 1.2 diff --git a/testdata/yaml-test-suite/directive-variants/00/error b/testdata/yaml-test-suite/directive-variants/00/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/directive-variants/00/in.yaml b/testdata/yaml-test-suite/directive-variants/00/in.yaml new file mode 100644 index 00000000..bb08497b --- /dev/null +++ b/testdata/yaml-test-suite/directive-variants/00/in.yaml @@ -0,0 +1,2 @@ +%YAML 1.1#... +--- diff --git a/testdata/yaml-test-suite/directive-variants/01/error b/testdata/yaml-test-suite/directive-variants/01/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/directive-variants/01/in.yaml b/testdata/yaml-test-suite/directive-variants/01/in.yaml new file mode 100644 index 00000000..a919837f --- /dev/null +++ b/testdata/yaml-test-suite/directive-variants/01/in.yaml @@ -0,0 +1,4 @@ +%YAML 1.2 +--- +%YAML 1.2 +--- diff --git a/testdata/yaml-test-suite/directive-variants/02/in.json b/testdata/yaml-test-suite/directive-variants/02/in.json new file mode 100644 index 00000000..19765bd5 --- /dev/null +++ b/testdata/yaml-test-suite/directive-variants/02/in.json @@ -0,0 +1 @@ +null diff --git a/testdata/yaml-test-suite/directive-variants/02/in.yaml b/testdata/yaml-test-suite/directive-variants/02/in.yaml new file mode 100644 index 00000000..168723f7 --- /dev/null +++ b/testdata/yaml-test-suite/directive-variants/02/in.yaml @@ -0,0 +1,2 @@ +%YAML 1.1 +--- diff --git a/testdata/yaml-test-suite/directive-variants/02/out.yaml b/testdata/yaml-test-suite/directive-variants/02/out.yaml new file mode 100644 index 00000000..ed97d539 --- /dev/null +++ b/testdata/yaml-test-suite/directive-variants/02/out.yaml @@ -0,0 +1 @@ +--- diff --git a/testdata/yaml-test-suite/directive-variants/03/in.json b/testdata/yaml-test-suite/directive-variants/03/in.json new file mode 100644 index 00000000..19765bd5 --- /dev/null +++ b/testdata/yaml-test-suite/directive-variants/03/in.json @@ -0,0 +1 @@ +null diff --git a/testdata/yaml-test-suite/directive-variants/03/in.yaml b/testdata/yaml-test-suite/directive-variants/03/in.yaml new file mode 100644 index 00000000..c05cfdf9 --- /dev/null +++ b/testdata/yaml-test-suite/directive-variants/03/in.yaml @@ -0,0 +1,2 @@ +%YAML 1.1 +--- diff --git a/testdata/yaml-test-suite/directive-variants/03/out.yaml b/testdata/yaml-test-suite/directive-variants/03/out.yaml new file mode 100644 index 00000000..ed97d539 --- /dev/null +++ b/testdata/yaml-test-suite/directive-variants/03/out.yaml @@ -0,0 +1 @@ +--- diff --git a/testdata/yaml-test-suite/directive-variants/04/in.json b/testdata/yaml-test-suite/directive-variants/04/in.json new file mode 100644 index 00000000..19765bd5 --- /dev/null +++ b/testdata/yaml-test-suite/directive-variants/04/in.json @@ -0,0 +1 @@ +null diff --git a/testdata/yaml-test-suite/directive-variants/04/in.yaml b/testdata/yaml-test-suite/directive-variants/04/in.yaml new file mode 100644 index 00000000..4fb8480f --- /dev/null +++ b/testdata/yaml-test-suite/directive-variants/04/in.yaml @@ -0,0 +1,2 @@ +%YAML 1.1 # comment +--- diff --git a/testdata/yaml-test-suite/directive-variants/04/out.yaml b/testdata/yaml-test-suite/directive-variants/04/out.yaml new file mode 100644 index 00000000..ed97d539 --- /dev/null +++ b/testdata/yaml-test-suite/directive-variants/04/out.yaml @@ -0,0 +1 @@ +--- diff --git a/testdata/yaml-test-suite/directive-variants/05/in.json b/testdata/yaml-test-suite/directive-variants/05/in.json new file mode 100644 index 00000000..19765bd5 --- /dev/null +++ b/testdata/yaml-test-suite/directive-variants/05/in.json @@ -0,0 +1 @@ +null diff --git a/testdata/yaml-test-suite/directive-variants/05/in.yaml b/testdata/yaml-test-suite/directive-variants/05/in.yaml new file mode 100644 index 00000000..134cd490 --- /dev/null +++ b/testdata/yaml-test-suite/directive-variants/05/in.yaml @@ -0,0 +1,2 @@ +%YAM 1.1 +--- diff --git a/testdata/yaml-test-suite/directive-variants/05/out.yaml b/testdata/yaml-test-suite/directive-variants/05/out.yaml new file mode 100644 index 00000000..ed97d539 --- /dev/null +++ b/testdata/yaml-test-suite/directive-variants/05/out.yaml @@ -0,0 +1 @@ +--- diff --git a/testdata/yaml-test-suite/directive-variants/06/in.json b/testdata/yaml-test-suite/directive-variants/06/in.json new file mode 100644 index 00000000..19765bd5 --- /dev/null +++ b/testdata/yaml-test-suite/directive-variants/06/in.json @@ -0,0 +1 @@ +null diff --git a/testdata/yaml-test-suite/directive-variants/06/in.yaml b/testdata/yaml-test-suite/directive-variants/06/in.yaml new file mode 100644 index 00000000..2ae8800f --- /dev/null +++ b/testdata/yaml-test-suite/directive-variants/06/in.yaml @@ -0,0 +1,2 @@ +%YAMLL 1.1 +--- diff --git a/testdata/yaml-test-suite/directive-variants/06/out.yaml b/testdata/yaml-test-suite/directive-variants/06/out.yaml new file mode 100644 index 00000000..ed97d539 --- /dev/null +++ b/testdata/yaml-test-suite/directive-variants/06/out.yaml @@ -0,0 +1 @@ +--- diff --git a/testdata/yaml-test-suite/directive-without-document/error b/testdata/yaml-test-suite/directive-without-document/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/directive-without-document/in.yaml b/testdata/yaml-test-suite/directive-without-document/in.yaml new file mode 100644 index 00000000..142134e0 --- /dev/null +++ b/testdata/yaml-test-suite/directive-without-document/in.yaml @@ -0,0 +1,2 @@ +%YAML 1.2 +... diff --git a/testdata/yaml-test-suite/document-end-marker/in.json b/testdata/yaml-test-suite/document-end-marker/in.json new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/document-end-marker/in.yaml b/testdata/yaml-test-suite/document-end-marker/in.yaml new file mode 100644 index 00000000..eb1ae458 --- /dev/null +++ b/testdata/yaml-test-suite/document-end-marker/in.yaml @@ -0,0 +1 @@ +... diff --git a/testdata/yaml-test-suite/document-end-marker/out.yaml b/testdata/yaml-test-suite/document-end-marker/out.yaml new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/document-start-on-last-line/in.json b/testdata/yaml-test-suite/document-start-on-last-line/in.json new file mode 100644 index 00000000..88bf67fe --- /dev/null +++ b/testdata/yaml-test-suite/document-start-on-last-line/in.json @@ -0,0 +1,4 @@ +{ + "a": "b" +} +null diff --git a/testdata/yaml-test-suite/document-start-on-last-line/in.yaml b/testdata/yaml-test-suite/document-start-on-last-line/in.yaml new file mode 100644 index 00000000..6e88f36f --- /dev/null +++ b/testdata/yaml-test-suite/document-start-on-last-line/in.yaml @@ -0,0 +1,3 @@ +--- +a: b +--- diff --git a/testdata/yaml-test-suite/document-start-on-last-line/out.yaml b/testdata/yaml-test-suite/document-start-on-last-line/out.yaml new file mode 100644 index 00000000..a37d3209 --- /dev/null +++ b/testdata/yaml-test-suite/document-start-on-last-line/out.yaml @@ -0,0 +1,4 @@ +--- +a: b +--- +... diff --git a/testdata/yaml-test-suite/document-with-footer/in.json b/testdata/yaml-test-suite/document-with-footer/in.json new file mode 100644 index 00000000..049aa9e9 --- /dev/null +++ b/testdata/yaml-test-suite/document-with-footer/in.json @@ -0,0 +1,3 @@ +{ + "aaa": "bbb" +} diff --git a/testdata/yaml-test-suite/document-with-footer/in.yaml b/testdata/yaml-test-suite/document-with-footer/in.yaml new file mode 100644 index 00000000..4fc70de5 --- /dev/null +++ b/testdata/yaml-test-suite/document-with-footer/in.yaml @@ -0,0 +1,2 @@ +aaa: bbb +... diff --git a/testdata/yaml-test-suite/double-quoted-scalar-with-escaped-single-quote/error b/testdata/yaml-test-suite/double-quoted-scalar-with-escaped-single-quote/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/double-quoted-scalar-with-escaped-single-quote/in.yaml b/testdata/yaml-test-suite/double-quoted-scalar-with-escaped-single-quote/in.yaml new file mode 100644 index 00000000..bee64c15 --- /dev/null +++ b/testdata/yaml-test-suite/double-quoted-scalar-with-escaped-single-quote/in.yaml @@ -0,0 +1,2 @@ +--- +double: "quoted \' scalar" diff --git a/testdata/yaml-test-suite/double-quoted-string-without-closing-quote/error b/testdata/yaml-test-suite/double-quoted-string-without-closing-quote/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/double-quoted-string-without-closing-quote/in.yaml b/testdata/yaml-test-suite/double-quoted-string-without-closing-quote/in.yaml new file mode 100644 index 00000000..c8d7e45e --- /dev/null +++ b/testdata/yaml-test-suite/double-quoted-string-without-closing-quote/in.yaml @@ -0,0 +1,2 @@ +--- +key: "missing closing quote diff --git a/testdata/yaml-test-suite/doublequoted-scalar-starting-with-a-tab/in.json b/testdata/yaml-test-suite/doublequoted-scalar-starting-with-a-tab/in.json new file mode 100644 index 00000000..977fcebf --- /dev/null +++ b/testdata/yaml-test-suite/doublequoted-scalar-starting-with-a-tab/in.json @@ -0,0 +1,3 @@ +{ + "tab": "\tstring" +} diff --git a/testdata/yaml-test-suite/doublequoted-scalar-starting-with-a-tab/in.yaml b/testdata/yaml-test-suite/doublequoted-scalar-starting-with-a-tab/in.yaml new file mode 100644 index 00000000..082400bf --- /dev/null +++ b/testdata/yaml-test-suite/doublequoted-scalar-starting-with-a-tab/in.yaml @@ -0,0 +1,2 @@ +--- +tab: "\tstring" diff --git a/testdata/yaml-test-suite/doublequoted-scalar-starting-with-a-tab/out.yaml b/testdata/yaml-test-suite/doublequoted-scalar-starting-with-a-tab/out.yaml new file mode 100644 index 00000000..082400bf --- /dev/null +++ b/testdata/yaml-test-suite/doublequoted-scalar-starting-with-a-tab/out.yaml @@ -0,0 +1,2 @@ +--- +tab: "\tstring" diff --git a/testdata/yaml-test-suite/duplicate-yaml-directive/error b/testdata/yaml-test-suite/duplicate-yaml-directive/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/duplicate-yaml-directive/in.yaml b/testdata/yaml-test-suite/duplicate-yaml-directive/in.yaml new file mode 100644 index 00000000..cb5488f8 --- /dev/null +++ b/testdata/yaml-test-suite/duplicate-yaml-directive/in.yaml @@ -0,0 +1,3 @@ +%YAML 1.2 +%YAML 1.2 +--- diff --git a/testdata/yaml-test-suite/empty-flow-collections/in.json b/testdata/yaml-test-suite/empty-flow-collections/in.json new file mode 100644 index 00000000..ab441799 --- /dev/null +++ b/testdata/yaml-test-suite/empty-flow-collections/in.json @@ -0,0 +1,16 @@ +{ + "nested sequences": [ + [ + [ + [] + ] + ], + [ + [ + {} + ] + ] + ], + "key1": [], + "key2": {} +} diff --git a/testdata/yaml-test-suite/empty-flow-collections/in.yaml b/testdata/yaml-test-suite/empty-flow-collections/in.yaml new file mode 100644 index 00000000..9f12ef22 --- /dev/null +++ b/testdata/yaml-test-suite/empty-flow-collections/in.yaml @@ -0,0 +1,6 @@ +--- +nested sequences: +- - - [] +- - - {} +key1: [] +key2: {} diff --git a/testdata/yaml-test-suite/empty-flow-collections/out.yaml b/testdata/yaml-test-suite/empty-flow-collections/out.yaml new file mode 100644 index 00000000..9f12ef22 --- /dev/null +++ b/testdata/yaml-test-suite/empty-flow-collections/out.yaml @@ -0,0 +1,6 @@ +--- +nested sequences: +- - - [] +- - - {} +key1: [] +key2: {} diff --git a/testdata/yaml-test-suite/empty-implicit-key-in-single-pair-flow-sequences/in.yaml b/testdata/yaml-test-suite/empty-implicit-key-in-single-pair-flow-sequences/in.yaml new file mode 100644 index 00000000..503d73a8 --- /dev/null +++ b/testdata/yaml-test-suite/empty-implicit-key-in-single-pair-flow-sequences/in.yaml @@ -0,0 +1,2 @@ +- [ : empty key ] +- [: another empty key] diff --git a/testdata/yaml-test-suite/empty-implicit-key-in-single-pair-flow-sequences/out.yaml b/testdata/yaml-test-suite/empty-implicit-key-in-single-pair-flow-sequences/out.yaml new file mode 100644 index 00000000..b89a0184 --- /dev/null +++ b/testdata/yaml-test-suite/empty-implicit-key-in-single-pair-flow-sequences/out.yaml @@ -0,0 +1,2 @@ +- - : empty key +- - : another empty key diff --git a/testdata/yaml-test-suite/empty-keys-in-block-and-flow-mapping/in.yaml b/testdata/yaml-test-suite/empty-keys-in-block-and-flow-mapping/in.yaml new file mode 100644 index 00000000..30c07c24 --- /dev/null +++ b/testdata/yaml-test-suite/empty-keys-in-block-and-flow-mapping/in.yaml @@ -0,0 +1,13 @@ +--- +key: value +: empty key +--- +{ + key: value, : empty key +} +--- +# empty key and value +: +--- +# empty key and value +{ : } diff --git a/testdata/yaml-test-suite/empty-lines-at-end-of-document/in.yaml b/testdata/yaml-test-suite/empty-lines-at-end-of-document/in.yaml new file mode 100644 index 00000000..2c0664b3 --- /dev/null +++ b/testdata/yaml-test-suite/empty-lines-at-end-of-document/in.yaml @@ -0,0 +1,3 @@ +: + + diff --git a/testdata/yaml-test-suite/empty-lines-between-mapping-elements/in.json b/testdata/yaml-test-suite/empty-lines-between-mapping-elements/in.json new file mode 100644 index 00000000..d880c335 --- /dev/null +++ b/testdata/yaml-test-suite/empty-lines-between-mapping-elements/in.json @@ -0,0 +1,4 @@ +{ + "one": 2, + "three": 4 +} diff --git a/testdata/yaml-test-suite/empty-lines-between-mapping-elements/in.yaml b/testdata/yaml-test-suite/empty-lines-between-mapping-elements/in.yaml new file mode 100644 index 00000000..47956a81 --- /dev/null +++ b/testdata/yaml-test-suite/empty-lines-between-mapping-elements/in.yaml @@ -0,0 +1,4 @@ +one: 2 + + +three: 4 diff --git a/testdata/yaml-test-suite/empty-lines-between-mapping-elements/out.yaml b/testdata/yaml-test-suite/empty-lines-between-mapping-elements/out.yaml new file mode 100644 index 00000000..56544023 --- /dev/null +++ b/testdata/yaml-test-suite/empty-lines-between-mapping-elements/out.yaml @@ -0,0 +1,2 @@ +one: 2 +three: 4 diff --git a/testdata/yaml-test-suite/empty-stream/in.json b/testdata/yaml-test-suite/empty-stream/in.json new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/empty-stream/in.yaml b/testdata/yaml-test-suite/empty-stream/in.yaml new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/escaped-slash-in-double-quotes/in.json b/testdata/yaml-test-suite/escaped-slash-in-double-quotes/in.json new file mode 100644 index 00000000..6119ed94 --- /dev/null +++ b/testdata/yaml-test-suite/escaped-slash-in-double-quotes/in.json @@ -0,0 +1,3 @@ +{ + "escaped slash": "a/b" +} diff --git a/testdata/yaml-test-suite/escaped-slash-in-double-quotes/in.yaml b/testdata/yaml-test-suite/escaped-slash-in-double-quotes/in.yaml new file mode 100644 index 00000000..e47bf723 --- /dev/null +++ b/testdata/yaml-test-suite/escaped-slash-in-double-quotes/in.yaml @@ -0,0 +1 @@ +escaped slash: "a\/b" diff --git a/testdata/yaml-test-suite/escaped-slash-in-double-quotes/out.yaml b/testdata/yaml-test-suite/escaped-slash-in-double-quotes/out.yaml new file mode 100644 index 00000000..fccadcfc --- /dev/null +++ b/testdata/yaml-test-suite/escaped-slash-in-double-quotes/out.yaml @@ -0,0 +1 @@ +escaped slash: "a/b" diff --git a/testdata/yaml-test-suite/explicit-key-and-value-seperated-by-comment/in.json b/testdata/yaml-test-suite/explicit-key-and-value-seperated-by-comment/in.json new file mode 100644 index 00000000..7a9e8644 --- /dev/null +++ b/testdata/yaml-test-suite/explicit-key-and-value-seperated-by-comment/in.json @@ -0,0 +1,3 @@ +{ + "key": "value" +} diff --git a/testdata/yaml-test-suite/explicit-key-and-value-seperated-by-comment/in.yaml b/testdata/yaml-test-suite/explicit-key-and-value-seperated-by-comment/in.yaml new file mode 100644 index 00000000..22911fca --- /dev/null +++ b/testdata/yaml-test-suite/explicit-key-and-value-seperated-by-comment/in.yaml @@ -0,0 +1,4 @@ +--- +? key +# comment +: value diff --git a/testdata/yaml-test-suite/explicit-key-and-value-seperated-by-comment/out.yaml b/testdata/yaml-test-suite/explicit-key-and-value-seperated-by-comment/out.yaml new file mode 100644 index 00000000..25a2fe47 --- /dev/null +++ b/testdata/yaml-test-suite/explicit-key-and-value-seperated-by-comment/out.yaml @@ -0,0 +1,2 @@ +--- +key: value diff --git a/testdata/yaml-test-suite/explicit-non-specific-tag-1-3/in.json b/testdata/yaml-test-suite/explicit-non-specific-tag-1-3/in.json new file mode 100644 index 00000000..231f150c --- /dev/null +++ b/testdata/yaml-test-suite/explicit-non-specific-tag-1-3/in.json @@ -0,0 +1 @@ +"a" diff --git a/testdata/yaml-test-suite/explicit-non-specific-tag-1-3/in.yaml b/testdata/yaml-test-suite/explicit-non-specific-tag-1-3/in.yaml new file mode 100644 index 00000000..ed7ee4e4 --- /dev/null +++ b/testdata/yaml-test-suite/explicit-non-specific-tag-1-3/in.yaml @@ -0,0 +1,2 @@ +--- +! a diff --git a/testdata/yaml-test-suite/explicit-non-specific-tag-1-3/out.yaml b/testdata/yaml-test-suite/explicit-non-specific-tag-1-3/out.yaml new file mode 100644 index 00000000..aafbbc1c --- /dev/null +++ b/testdata/yaml-test-suite/explicit-non-specific-tag-1-3/out.yaml @@ -0,0 +1 @@ +--- ! a diff --git a/testdata/yaml-test-suite/explicit-non-specific-tag/in.json b/testdata/yaml-test-suite/explicit-non-specific-tag/in.json new file mode 100644 index 00000000..231f150c --- /dev/null +++ b/testdata/yaml-test-suite/explicit-non-specific-tag/in.json @@ -0,0 +1 @@ +"a" diff --git a/testdata/yaml-test-suite/explicit-non-specific-tag/in.yaml b/testdata/yaml-test-suite/explicit-non-specific-tag/in.yaml new file mode 100644 index 00000000..eae54f78 --- /dev/null +++ b/testdata/yaml-test-suite/explicit-non-specific-tag/in.yaml @@ -0,0 +1 @@ +! a diff --git a/testdata/yaml-test-suite/extra-words-on-yaml-directive/error b/testdata/yaml-test-suite/extra-words-on-yaml-directive/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/extra-words-on-yaml-directive/in.yaml b/testdata/yaml-test-suite/extra-words-on-yaml-directive/in.yaml new file mode 100644 index 00000000..79aadcd6 --- /dev/null +++ b/testdata/yaml-test-suite/extra-words-on-yaml-directive/in.yaml @@ -0,0 +1,2 @@ +%YAML 1.2 foo +--- diff --git a/testdata/yaml-test-suite/flow-collections-over-many-lines/00/error b/testdata/yaml-test-suite/flow-collections-over-many-lines/00/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/flow-collections-over-many-lines/00/in.yaml b/testdata/yaml-test-suite/flow-collections-over-many-lines/00/in.yaml new file mode 100644 index 00000000..79c6eda6 --- /dev/null +++ b/testdata/yaml-test-suite/flow-collections-over-many-lines/00/in.yaml @@ -0,0 +1,5 @@ +k: { +k +: +v +} diff --git a/testdata/yaml-test-suite/flow-collections-over-many-lines/01/in.json b/testdata/yaml-test-suite/flow-collections-over-many-lines/01/in.json new file mode 100644 index 00000000..ebcd68c1 --- /dev/null +++ b/testdata/yaml-test-suite/flow-collections-over-many-lines/01/in.json @@ -0,0 +1,5 @@ +{ + "k" : { + "k" : "v" + } +} diff --git a/testdata/yaml-test-suite/flow-collections-over-many-lines/01/in.yaml b/testdata/yaml-test-suite/flow-collections-over-many-lines/01/in.yaml new file mode 100644 index 00000000..1d71c2ac --- /dev/null +++ b/testdata/yaml-test-suite/flow-collections-over-many-lines/01/in.yaml @@ -0,0 +1,5 @@ +k: { + k + : + v + } diff --git a/testdata/yaml-test-suite/flow-collections-over-many-lines/01/out.yaml b/testdata/yaml-test-suite/flow-collections-over-many-lines/01/out.yaml new file mode 100644 index 00000000..a9cc2d38 --- /dev/null +++ b/testdata/yaml-test-suite/flow-collections-over-many-lines/01/out.yaml @@ -0,0 +1,3 @@ +--- +k: + k: v diff --git a/testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/00/in.json b/testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/00/in.json new file mode 100644 index 00000000..c8c4105e --- /dev/null +++ b/testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/00/in.json @@ -0,0 +1,3 @@ +{ + "foo": "bar" +} diff --git a/testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/00/in.yaml b/testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/00/in.yaml new file mode 100644 index 00000000..d80f7981 --- /dev/null +++ b/testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/00/in.yaml @@ -0,0 +1,2 @@ +{"foo" +: "bar"} diff --git a/testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/01/in.json b/testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/01/in.json new file mode 100644 index 00000000..c8c4105e --- /dev/null +++ b/testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/01/in.json @@ -0,0 +1,3 @@ +{ + "foo": "bar" +} diff --git a/testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/01/in.yaml b/testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/01/in.yaml new file mode 100644 index 00000000..0ad38e80 --- /dev/null +++ b/testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/01/in.yaml @@ -0,0 +1,2 @@ +{"foo" +: bar} diff --git a/testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/02/in.json b/testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/02/in.json new file mode 100644 index 00000000..c8c4105e --- /dev/null +++ b/testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/02/in.json @@ -0,0 +1,3 @@ +{ + "foo": "bar" +} diff --git a/testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/02/in.yaml b/testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/02/in.yaml new file mode 100644 index 00000000..f3b4057b --- /dev/null +++ b/testdata/yaml-test-suite/flow-mapping-colon-on-line-after-key/02/in.yaml @@ -0,0 +1,2 @@ +{foo +: bar} diff --git a/testdata/yaml-test-suite/flow-mapping-edge-cases/in.json b/testdata/yaml-test-suite/flow-mapping-edge-cases/in.json new file mode 100644 index 00000000..a6ef1038 --- /dev/null +++ b/testdata/yaml-test-suite/flow-mapping-edge-cases/in.json @@ -0,0 +1,3 @@ +{ + "x": ":x" +} diff --git a/testdata/yaml-test-suite/flow-mapping-edge-cases/in.yaml b/testdata/yaml-test-suite/flow-mapping-edge-cases/in.yaml new file mode 100644 index 00000000..21d0ff94 --- /dev/null +++ b/testdata/yaml-test-suite/flow-mapping-edge-cases/in.yaml @@ -0,0 +1 @@ +{x: :x} diff --git a/testdata/yaml-test-suite/flow-mapping-edge-cases/out.yaml b/testdata/yaml-test-suite/flow-mapping-edge-cases/out.yaml new file mode 100644 index 00000000..9f7fc9a5 --- /dev/null +++ b/testdata/yaml-test-suite/flow-mapping-edge-cases/out.yaml @@ -0,0 +1 @@ +x: :x diff --git a/testdata/yaml-test-suite/flow-mapping-in-block-sequence/in.json b/testdata/yaml-test-suite/flow-mapping-in-block-sequence/in.json new file mode 100644 index 00000000..d1075175 --- /dev/null +++ b/testdata/yaml-test-suite/flow-mapping-in-block-sequence/in.json @@ -0,0 +1,5 @@ +[ + { + "a": "b" + } +] diff --git a/testdata/yaml-test-suite/flow-mapping-in-block-sequence/in.yaml b/testdata/yaml-test-suite/flow-mapping-in-block-sequence/in.yaml new file mode 100644 index 00000000..9d8ba51e --- /dev/null +++ b/testdata/yaml-test-suite/flow-mapping-in-block-sequence/in.yaml @@ -0,0 +1 @@ +- {a: b} diff --git a/testdata/yaml-test-suite/flow-mapping-in-block-sequence/out.yaml b/testdata/yaml-test-suite/flow-mapping-in-block-sequence/out.yaml new file mode 100644 index 00000000..dcd59ebe --- /dev/null +++ b/testdata/yaml-test-suite/flow-mapping-in-block-sequence/out.yaml @@ -0,0 +1 @@ +- a: b diff --git a/testdata/yaml-test-suite/flow-mapping-key-on-two-lines/error b/testdata/yaml-test-suite/flow-mapping-key-on-two-lines/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/flow-mapping-key-on-two-lines/in.yaml b/testdata/yaml-test-suite/flow-mapping-key-on-two-lines/in.yaml new file mode 100644 index 00000000..bb88dde3 --- /dev/null +++ b/testdata/yaml-test-suite/flow-mapping-key-on-two-lines/in.yaml @@ -0,0 +1,2 @@ +[23 +]: 42 diff --git a/testdata/yaml-test-suite/flow-mapping-missing-a-separating-comma/error b/testdata/yaml-test-suite/flow-mapping-missing-a-separating-comma/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/flow-mapping-missing-a-separating-comma/in.yaml b/testdata/yaml-test-suite/flow-mapping-missing-a-separating-comma/in.yaml new file mode 100644 index 00000000..d35e395e --- /dev/null +++ b/testdata/yaml-test-suite/flow-mapping-missing-a-separating-comma/in.yaml @@ -0,0 +1,4 @@ +--- +{ + foo: 1 + bar: 2 } diff --git a/testdata/yaml-test-suite/flow-mapping-separate-values/in.yaml b/testdata/yaml-test-suite/flow-mapping-separate-values/in.yaml new file mode 100644 index 00000000..c80379bb --- /dev/null +++ b/testdata/yaml-test-suite/flow-mapping-separate-values/in.yaml @@ -0,0 +1,5 @@ +{ +unquoted : "separate", +http://foo.com, +omitted value:, +} diff --git a/testdata/yaml-test-suite/flow-mapping-separate-values/out.yaml b/testdata/yaml-test-suite/flow-mapping-separate-values/out.yaml new file mode 100644 index 00000000..3734c116 --- /dev/null +++ b/testdata/yaml-test-suite/flow-mapping-separate-values/out.yaml @@ -0,0 +1,3 @@ +unquoted: "separate" +http://foo.com: null +omitted value: null diff --git a/testdata/yaml-test-suite/flow-mapping/in.json b/testdata/yaml-test-suite/flow-mapping/in.json new file mode 100644 index 00000000..639f0149 --- /dev/null +++ b/testdata/yaml-test-suite/flow-mapping/in.json @@ -0,0 +1,4 @@ +{ + "foo": "you", + "bar": "far" +} diff --git a/testdata/yaml-test-suite/flow-mapping/in.yaml b/testdata/yaml-test-suite/flow-mapping/in.yaml new file mode 100644 index 00000000..fc448be7 --- /dev/null +++ b/testdata/yaml-test-suite/flow-mapping/in.yaml @@ -0,0 +1 @@ +{foo: you, bar: far} diff --git a/testdata/yaml-test-suite/flow-mapping/out.yaml b/testdata/yaml-test-suite/flow-mapping/out.yaml new file mode 100644 index 00000000..d2ec29c4 --- /dev/null +++ b/testdata/yaml-test-suite/flow-mapping/out.yaml @@ -0,0 +1,2 @@ +foo: you +bar: far diff --git a/testdata/yaml-test-suite/flow-sequence-in-block-mapping/in.json b/testdata/yaml-test-suite/flow-sequence-in-block-mapping/in.json new file mode 100644 index 00000000..93f21311 --- /dev/null +++ b/testdata/yaml-test-suite/flow-sequence-in-block-mapping/in.json @@ -0,0 +1,6 @@ +{ + "a": [ + "b", + "c" + ] +} diff --git a/testdata/yaml-test-suite/flow-sequence-in-block-mapping/in.yaml b/testdata/yaml-test-suite/flow-sequence-in-block-mapping/in.yaml new file mode 100644 index 00000000..8238fdf5 --- /dev/null +++ b/testdata/yaml-test-suite/flow-sequence-in-block-mapping/in.yaml @@ -0,0 +1 @@ +a: [b, c] diff --git a/testdata/yaml-test-suite/flow-sequence-in-block-mapping/out.yaml b/testdata/yaml-test-suite/flow-sequence-in-block-mapping/out.yaml new file mode 100644 index 00000000..f1b822c2 --- /dev/null +++ b/testdata/yaml-test-suite/flow-sequence-in-block-mapping/out.yaml @@ -0,0 +1,3 @@ +a: +- b +- c diff --git a/testdata/yaml-test-suite/flow-sequence-in-flow-mapping/in.yaml b/testdata/yaml-test-suite/flow-sequence-in-flow-mapping/in.yaml new file mode 100644 index 00000000..e6e30e2a --- /dev/null +++ b/testdata/yaml-test-suite/flow-sequence-in-flow-mapping/in.yaml @@ -0,0 +1 @@ +{a: [b, c], [d, e]: f} diff --git a/testdata/yaml-test-suite/flow-sequence-in-flow-mapping/out.yaml b/testdata/yaml-test-suite/flow-sequence-in-flow-mapping/out.yaml new file mode 100644 index 00000000..c933a474 --- /dev/null +++ b/testdata/yaml-test-suite/flow-sequence-in-flow-mapping/out.yaml @@ -0,0 +1,6 @@ +a: +- b +- c +? - d + - e +: f diff --git a/testdata/yaml-test-suite/flow-sequence-in-flow-sequence/in.json b/testdata/yaml-test-suite/flow-sequence-in-flow-sequence/in.json new file mode 100644 index 00000000..8b0e4ac4 --- /dev/null +++ b/testdata/yaml-test-suite/flow-sequence-in-flow-sequence/in.json @@ -0,0 +1,7 @@ +[ + "a", + [ + "b", + "c" + ] +] diff --git a/testdata/yaml-test-suite/flow-sequence-in-flow-sequence/in.yaml b/testdata/yaml-test-suite/flow-sequence-in-flow-sequence/in.yaml new file mode 100644 index 00000000..5f76a2e4 --- /dev/null +++ b/testdata/yaml-test-suite/flow-sequence-in-flow-sequence/in.yaml @@ -0,0 +1 @@ +[a, [b, c]] diff --git a/testdata/yaml-test-suite/flow-sequence-in-flow-sequence/out.yaml b/testdata/yaml-test-suite/flow-sequence-in-flow-sequence/out.yaml new file mode 100644 index 00000000..3e0f6211 --- /dev/null +++ b/testdata/yaml-test-suite/flow-sequence-in-flow-sequence/out.yaml @@ -0,0 +1,3 @@ +- a +- - b + - c diff --git a/testdata/yaml-test-suite/flow-sequence-with-invalid-comma-at-the-beginning/error b/testdata/yaml-test-suite/flow-sequence-with-invalid-comma-at-the-beginning/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/flow-sequence-with-invalid-comma-at-the-beginning/in.yaml b/testdata/yaml-test-suite/flow-sequence-with-invalid-comma-at-the-beginning/in.yaml new file mode 100644 index 00000000..868f6c67 --- /dev/null +++ b/testdata/yaml-test-suite/flow-sequence-with-invalid-comma-at-the-beginning/in.yaml @@ -0,0 +1,2 @@ +--- +[ , a, b, c ] diff --git a/testdata/yaml-test-suite/flow-sequence-with-invalid-extra-closing-bracket/error b/testdata/yaml-test-suite/flow-sequence-with-invalid-extra-closing-bracket/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/flow-sequence-with-invalid-extra-closing-bracket/in.yaml b/testdata/yaml-test-suite/flow-sequence-with-invalid-extra-closing-bracket/in.yaml new file mode 100644 index 00000000..686440d8 --- /dev/null +++ b/testdata/yaml-test-suite/flow-sequence-with-invalid-extra-closing-bracket/in.yaml @@ -0,0 +1,2 @@ +--- +[ a, b, c ] ] diff --git a/testdata/yaml-test-suite/flow-sequence-with-invalid-extra-comma/error b/testdata/yaml-test-suite/flow-sequence-with-invalid-extra-comma/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/flow-sequence-with-invalid-extra-comma/in.yaml b/testdata/yaml-test-suite/flow-sequence-with-invalid-extra-comma/in.yaml new file mode 100644 index 00000000..001f8364 --- /dev/null +++ b/testdata/yaml-test-suite/flow-sequence-with-invalid-extra-comma/in.yaml @@ -0,0 +1,2 @@ +--- +[ a, b, c, , ] diff --git a/testdata/yaml-test-suite/flow-sequence-without-closing-bracket/error b/testdata/yaml-test-suite/flow-sequence-without-closing-bracket/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/flow-sequence-without-closing-bracket/in.yaml b/testdata/yaml-test-suite/flow-sequence-without-closing-bracket/in.yaml new file mode 100644 index 00000000..939a0714 --- /dev/null +++ b/testdata/yaml-test-suite/flow-sequence-without-closing-bracket/in.yaml @@ -0,0 +1,2 @@ +--- +[ [ a, b, c ] diff --git a/testdata/yaml-test-suite/flow-sequence/in.json b/testdata/yaml-test-suite/flow-sequence/in.json new file mode 100644 index 00000000..1866413f --- /dev/null +++ b/testdata/yaml-test-suite/flow-sequence/in.json @@ -0,0 +1,5 @@ +[ + "foo", + "bar", + 42 +] diff --git a/testdata/yaml-test-suite/flow-sequence/in.yaml b/testdata/yaml-test-suite/flow-sequence/in.yaml new file mode 100644 index 00000000..bf341586 --- /dev/null +++ b/testdata/yaml-test-suite/flow-sequence/in.yaml @@ -0,0 +1 @@ +[foo, bar, 42] diff --git a/testdata/yaml-test-suite/flow-sequence/out.yaml b/testdata/yaml-test-suite/flow-sequence/out.yaml new file mode 100644 index 00000000..5fae9f4f --- /dev/null +++ b/testdata/yaml-test-suite/flow-sequence/out.yaml @@ -0,0 +1,3 @@ +- foo +- bar +- 42 diff --git a/testdata/yaml-test-suite/folded-block-scalar-1-3/in.json b/testdata/yaml-test-suite/folded-block-scalar-1-3/in.json new file mode 100644 index 00000000..c63e7ba8 --- /dev/null +++ b/testdata/yaml-test-suite/folded-block-scalar-1-3/in.json @@ -0,0 +1 @@ +"ab cd\nef\n\ngh\n" diff --git a/testdata/yaml-test-suite/folded-block-scalar-1-3/in.yaml b/testdata/yaml-test-suite/folded-block-scalar-1-3/in.yaml new file mode 100644 index 00000000..63a62abb --- /dev/null +++ b/testdata/yaml-test-suite/folded-block-scalar-1-3/in.yaml @@ -0,0 +1,8 @@ +--- > + ab + cd + + ef + + + gh diff --git a/testdata/yaml-test-suite/folded-block-scalar-1-3/out.yaml b/testdata/yaml-test-suite/folded-block-scalar-1-3/out.yaml new file mode 100644 index 00000000..c6857380 --- /dev/null +++ b/testdata/yaml-test-suite/folded-block-scalar-1-3/out.yaml @@ -0,0 +1,7 @@ +--- > + ab cd + + ef + + + gh diff --git a/testdata/yaml-test-suite/folded-block-scalar/in.json b/testdata/yaml-test-suite/folded-block-scalar/in.json new file mode 100644 index 00000000..c63e7ba8 --- /dev/null +++ b/testdata/yaml-test-suite/folded-block-scalar/in.json @@ -0,0 +1 @@ +"ab cd\nef\n\ngh\n" diff --git a/testdata/yaml-test-suite/folded-block-scalar/in.yaml b/testdata/yaml-test-suite/folded-block-scalar/in.yaml new file mode 100644 index 00000000..f63944e2 --- /dev/null +++ b/testdata/yaml-test-suite/folded-block-scalar/in.yaml @@ -0,0 +1,8 @@ +> + ab + cd + + ef + + + gh diff --git a/testdata/yaml-test-suite/folded-block-scalar/out.yaml b/testdata/yaml-test-suite/folded-block-scalar/out.yaml new file mode 100644 index 00000000..ded1d10b --- /dev/null +++ b/testdata/yaml-test-suite/folded-block-scalar/out.yaml @@ -0,0 +1,7 @@ +> + ab cd + + ef + + + gh diff --git a/testdata/yaml-test-suite/implicit-flow-mapping-key-on-one-line/in.yaml b/testdata/yaml-test-suite/implicit-flow-mapping-key-on-one-line/in.yaml new file mode 100644 index 00000000..b13c841c --- /dev/null +++ b/testdata/yaml-test-suite/implicit-flow-mapping-key-on-one-line/in.yaml @@ -0,0 +1 @@ +[flow]: block diff --git a/testdata/yaml-test-suite/implicit-flow-mapping-key-on-one-line/out.yaml b/testdata/yaml-test-suite/implicit-flow-mapping-key-on-one-line/out.yaml new file mode 100644 index 00000000..3a8f8f50 --- /dev/null +++ b/testdata/yaml-test-suite/implicit-flow-mapping-key-on-one-line/out.yaml @@ -0,0 +1,2 @@ +? - flow +: block diff --git a/testdata/yaml-test-suite/implicit-key-followed-by-newline-and-adjacent-value/error b/testdata/yaml-test-suite/implicit-key-followed-by-newline-and-adjacent-value/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/implicit-key-followed-by-newline-and-adjacent-value/in.yaml b/testdata/yaml-test-suite/implicit-key-followed-by-newline-and-adjacent-value/in.yaml new file mode 100644 index 00000000..be1ccf22 --- /dev/null +++ b/testdata/yaml-test-suite/implicit-key-followed-by-newline-and-adjacent-value/in.yaml @@ -0,0 +1,2 @@ +[ "key" + :value ] diff --git a/testdata/yaml-test-suite/implicit-key-followed-by-newline/error b/testdata/yaml-test-suite/implicit-key-followed-by-newline/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/implicit-key-followed-by-newline/in.yaml b/testdata/yaml-test-suite/implicit-key-followed-by-newline/in.yaml new file mode 100644 index 00000000..c7a31c92 --- /dev/null +++ b/testdata/yaml-test-suite/implicit-key-followed-by-newline/in.yaml @@ -0,0 +1,3 @@ +--- +[ key + : value ] diff --git a/testdata/yaml-test-suite/inline-tabs-in-double-quoted/00/in.json b/testdata/yaml-test-suite/inline-tabs-in-double-quoted/00/in.json new file mode 100644 index 00000000..f0458e78 --- /dev/null +++ b/testdata/yaml-test-suite/inline-tabs-in-double-quoted/00/in.json @@ -0,0 +1 @@ +"1 inline\ttab" diff --git a/testdata/yaml-test-suite/inline-tabs-in-double-quoted/00/in.yaml b/testdata/yaml-test-suite/inline-tabs-in-double-quoted/00/in.yaml new file mode 100644 index 00000000..f0458e78 --- /dev/null +++ b/testdata/yaml-test-suite/inline-tabs-in-double-quoted/00/in.yaml @@ -0,0 +1 @@ +"1 inline\ttab" diff --git a/testdata/yaml-test-suite/inline-tabs-in-double-quoted/01/in.json b/testdata/yaml-test-suite/inline-tabs-in-double-quoted/01/in.json new file mode 100644 index 00000000..0bd18c38 --- /dev/null +++ b/testdata/yaml-test-suite/inline-tabs-in-double-quoted/01/in.json @@ -0,0 +1 @@ +"2 inline\ttab" diff --git a/testdata/yaml-test-suite/inline-tabs-in-double-quoted/01/in.yaml b/testdata/yaml-test-suite/inline-tabs-in-double-quoted/01/in.yaml new file mode 100644 index 00000000..e32b715e --- /dev/null +++ b/testdata/yaml-test-suite/inline-tabs-in-double-quoted/01/in.yaml @@ -0,0 +1 @@ +"2 inline\ tab" diff --git a/testdata/yaml-test-suite/inline-tabs-in-double-quoted/01/out.yaml b/testdata/yaml-test-suite/inline-tabs-in-double-quoted/01/out.yaml new file mode 100644 index 00000000..0bd18c38 --- /dev/null +++ b/testdata/yaml-test-suite/inline-tabs-in-double-quoted/01/out.yaml @@ -0,0 +1 @@ +"2 inline\ttab" diff --git a/testdata/yaml-test-suite/inline-tabs-in-double-quoted/02/in.json b/testdata/yaml-test-suite/inline-tabs-in-double-quoted/02/in.json new file mode 100644 index 00000000..a7a0e0ff --- /dev/null +++ b/testdata/yaml-test-suite/inline-tabs-in-double-quoted/02/in.json @@ -0,0 +1 @@ +"3 inline\ttab" diff --git a/testdata/yaml-test-suite/inline-tabs-in-double-quoted/02/in.yaml b/testdata/yaml-test-suite/inline-tabs-in-double-quoted/02/in.yaml new file mode 100644 index 00000000..ef3075f4 --- /dev/null +++ b/testdata/yaml-test-suite/inline-tabs-in-double-quoted/02/in.yaml @@ -0,0 +1 @@ +"3 inline tab" diff --git a/testdata/yaml-test-suite/inline-tabs-in-double-quoted/02/out.yaml b/testdata/yaml-test-suite/inline-tabs-in-double-quoted/02/out.yaml new file mode 100644 index 00000000..a7a0e0ff --- /dev/null +++ b/testdata/yaml-test-suite/inline-tabs-in-double-quoted/02/out.yaml @@ -0,0 +1 @@ +"3 inline\ttab" diff --git a/testdata/yaml-test-suite/invalid-anchor-in-zero-indented-sequence/error b/testdata/yaml-test-suite/invalid-anchor-in-zero-indented-sequence/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-anchor-in-zero-indented-sequence/in.yaml b/testdata/yaml-test-suite/invalid-anchor-in-zero-indented-sequence/in.yaml new file mode 100644 index 00000000..85259927 --- /dev/null +++ b/testdata/yaml-test-suite/invalid-anchor-in-zero-indented-sequence/in.yaml @@ -0,0 +1,5 @@ +--- +seq: +&anchor +- a +- b diff --git a/testdata/yaml-test-suite/invalid-block-mapping-key-on-same-line-as-previous-key/error b/testdata/yaml-test-suite/invalid-block-mapping-key-on-same-line-as-previous-key/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-block-mapping-key-on-same-line-as-previous-key/in.yaml b/testdata/yaml-test-suite/invalid-block-mapping-key-on-same-line-as-previous-key/in.yaml new file mode 100644 index 00000000..c3bd6ba6 --- /dev/null +++ b/testdata/yaml-test-suite/invalid-block-mapping-key-on-same-line-as-previous-key/in.yaml @@ -0,0 +1,2 @@ +--- +x: { y: z }in: valid diff --git a/testdata/yaml-test-suite/invalid-comma-in-tag/error b/testdata/yaml-test-suite/invalid-comma-in-tag/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-comma-in-tag/in.yaml b/testdata/yaml-test-suite/invalid-comma-in-tag/in.yaml new file mode 100644 index 00000000..ba0c5371 --- /dev/null +++ b/testdata/yaml-test-suite/invalid-comma-in-tag/in.yaml @@ -0,0 +1 @@ +- !!str, xxx diff --git a/testdata/yaml-test-suite/invalid-comment-after-comma/error b/testdata/yaml-test-suite/invalid-comment-after-comma/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-comment-after-comma/in.yaml b/testdata/yaml-test-suite/invalid-comment-after-comma/in.yaml new file mode 100644 index 00000000..0f185f0a --- /dev/null +++ b/testdata/yaml-test-suite/invalid-comment-after-comma/in.yaml @@ -0,0 +1,3 @@ +--- +[ a, b, c,#invalid +] diff --git a/testdata/yaml-test-suite/invalid-comment-after-end-of-flow-sequence/error b/testdata/yaml-test-suite/invalid-comment-after-end-of-flow-sequence/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-comment-after-end-of-flow-sequence/in.yaml b/testdata/yaml-test-suite/invalid-comment-after-end-of-flow-sequence/in.yaml new file mode 100644 index 00000000..0242202d --- /dev/null +++ b/testdata/yaml-test-suite/invalid-comment-after-end-of-flow-sequence/in.yaml @@ -0,0 +1,2 @@ +--- +[ a, b, c, ]#invalid diff --git a/testdata/yaml-test-suite/invalid-content-after-document-end-marker/error b/testdata/yaml-test-suite/invalid-content-after-document-end-marker/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-content-after-document-end-marker/in.yaml b/testdata/yaml-test-suite/invalid-content-after-document-end-marker/in.yaml new file mode 100644 index 00000000..7d304224 --- /dev/null +++ b/testdata/yaml-test-suite/invalid-content-after-document-end-marker/in.yaml @@ -0,0 +1,3 @@ +--- +key: value +... invalid diff --git a/testdata/yaml-test-suite/invalid-document-end-marker-in-single-quoted-string/error b/testdata/yaml-test-suite/invalid-document-end-marker-in-single-quoted-string/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-document-end-marker-in-single-quoted-string/in.yaml b/testdata/yaml-test-suite/invalid-document-end-marker-in-single-quoted-string/in.yaml new file mode 100644 index 00000000..5c9530ed --- /dev/null +++ b/testdata/yaml-test-suite/invalid-document-end-marker-in-single-quoted-string/in.yaml @@ -0,0 +1,4 @@ +--- +' +... +' diff --git a/testdata/yaml-test-suite/invalid-document-markers-in-flow-style/error b/testdata/yaml-test-suite/invalid-document-markers-in-flow-style/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-document-markers-in-flow-style/in.yaml b/testdata/yaml-test-suite/invalid-document-markers-in-flow-style/in.yaml new file mode 100644 index 00000000..ef7d8c45 --- /dev/null +++ b/testdata/yaml-test-suite/invalid-document-markers-in-flow-style/in.yaml @@ -0,0 +1,4 @@ +[ +--- , +... +] diff --git a/testdata/yaml-test-suite/invalid-document-start-marker-in-doublequoted-tring/error b/testdata/yaml-test-suite/invalid-document-start-marker-in-doublequoted-tring/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-document-start-marker-in-doublequoted-tring/in.yaml b/testdata/yaml-test-suite/invalid-document-start-marker-in-doublequoted-tring/in.yaml new file mode 100644 index 00000000..8f75f6c7 --- /dev/null +++ b/testdata/yaml-test-suite/invalid-document-start-marker-in-doublequoted-tring/in.yaml @@ -0,0 +1,4 @@ +--- +" +--- +" diff --git a/testdata/yaml-test-suite/invalid-escape-in-double-quoted-string/error b/testdata/yaml-test-suite/invalid-escape-in-double-quoted-string/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-escape-in-double-quoted-string/in.yaml b/testdata/yaml-test-suite/invalid-escape-in-double-quoted-string/in.yaml new file mode 100644 index 00000000..73ef8bcd --- /dev/null +++ b/testdata/yaml-test-suite/invalid-escape-in-double-quoted-string/in.yaml @@ -0,0 +1,2 @@ +--- +"\." diff --git a/testdata/yaml-test-suite/invalid-item-after-end-of-flow-sequence/error b/testdata/yaml-test-suite/invalid-item-after-end-of-flow-sequence/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-item-after-end-of-flow-sequence/in.yaml b/testdata/yaml-test-suite/invalid-item-after-end-of-flow-sequence/in.yaml new file mode 100644 index 00000000..a77ca09c --- /dev/null +++ b/testdata/yaml-test-suite/invalid-item-after-end-of-flow-sequence/in.yaml @@ -0,0 +1,5 @@ +--- +[ +sequence item +] +invalid item diff --git a/testdata/yaml-test-suite/invalid-mapping-after-sequence/error b/testdata/yaml-test-suite/invalid-mapping-after-sequence/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-mapping-after-sequence/in.yaml b/testdata/yaml-test-suite/invalid-mapping-after-sequence/in.yaml new file mode 100644 index 00000000..30799d96 --- /dev/null +++ b/testdata/yaml-test-suite/invalid-mapping-after-sequence/in.yaml @@ -0,0 +1,3 @@ +- item1 +- item2 +invalid: x diff --git a/testdata/yaml-test-suite/invalid-mapping-in-plain-multiline/error b/testdata/yaml-test-suite/invalid-mapping-in-plain-multiline/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-mapping-in-plain-multiline/in.yaml b/testdata/yaml-test-suite/invalid-mapping-in-plain-multiline/in.yaml new file mode 100644 index 00000000..72d31b10 --- /dev/null +++ b/testdata/yaml-test-suite/invalid-mapping-in-plain-multiline/in.yaml @@ -0,0 +1,3 @@ +this + is + invalid: x diff --git a/testdata/yaml-test-suite/invalid-mapping-in-plain-scalar/error b/testdata/yaml-test-suite/invalid-mapping-in-plain-scalar/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-mapping-in-plain-scalar/in.yaml b/testdata/yaml-test-suite/invalid-mapping-in-plain-scalar/in.yaml new file mode 100644 index 00000000..d5121207 --- /dev/null +++ b/testdata/yaml-test-suite/invalid-mapping-in-plain-scalar/in.yaml @@ -0,0 +1,3 @@ +key: + word1 word2 + no: key diff --git a/testdata/yaml-test-suite/invalid-mapping-in-plain-single-line-value/error b/testdata/yaml-test-suite/invalid-mapping-in-plain-single-line-value/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-mapping-in-plain-single-line-value/in.yaml b/testdata/yaml-test-suite/invalid-mapping-in-plain-single-line-value/in.yaml new file mode 100644 index 00000000..c47fb7cc --- /dev/null +++ b/testdata/yaml-test-suite/invalid-mapping-in-plain-single-line-value/in.yaml @@ -0,0 +1 @@ +a: b: c: d diff --git a/testdata/yaml-test-suite/invalid-nested-mapping/error b/testdata/yaml-test-suite/invalid-nested-mapping/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-nested-mapping/in.yaml b/testdata/yaml-test-suite/invalid-nested-mapping/in.yaml new file mode 100644 index 00000000..798dbbbe --- /dev/null +++ b/testdata/yaml-test-suite/invalid-nested-mapping/in.yaml @@ -0,0 +1,2 @@ +--- +a: 'b': c diff --git a/testdata/yaml-test-suite/invalid-scalar-after-sequence/error b/testdata/yaml-test-suite/invalid-scalar-after-sequence/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-scalar-after-sequence/in.yaml b/testdata/yaml-test-suite/invalid-scalar-after-sequence/in.yaml new file mode 100644 index 00000000..bc6ccbbe --- /dev/null +++ b/testdata/yaml-test-suite/invalid-scalar-after-sequence/in.yaml @@ -0,0 +1,3 @@ +- item1 +- item2 +invalid diff --git a/testdata/yaml-test-suite/invalid-scalar-at-the-end-of-mapping/error b/testdata/yaml-test-suite/invalid-scalar-at-the-end-of-mapping/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-scalar-at-the-end-of-mapping/in.yaml b/testdata/yaml-test-suite/invalid-scalar-at-the-end-of-mapping/in.yaml new file mode 100644 index 00000000..b84657b4 --- /dev/null +++ b/testdata/yaml-test-suite/invalid-scalar-at-the-end-of-mapping/in.yaml @@ -0,0 +1,4 @@ +key: + - item1 + - item2 +invalid diff --git a/testdata/yaml-test-suite/invalid-scalar-at-the-end-of-sequence/error b/testdata/yaml-test-suite/invalid-scalar-at-the-end-of-sequence/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-scalar-at-the-end-of-sequence/in.yaml b/testdata/yaml-test-suite/invalid-scalar-at-the-end-of-sequence/in.yaml new file mode 100644 index 00000000..0b067d62 --- /dev/null +++ b/testdata/yaml-test-suite/invalid-scalar-at-the-end-of-sequence/in.yaml @@ -0,0 +1,4 @@ +key: + - bar + - baz + invalid diff --git a/testdata/yaml-test-suite/invalid-sequene-item-on-same-line-as-previous-item/error b/testdata/yaml-test-suite/invalid-sequene-item-on-same-line-as-previous-item/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-sequene-item-on-same-line-as-previous-item/in.yaml b/testdata/yaml-test-suite/invalid-sequene-item-on-same-line-as-previous-item/in.yaml new file mode 100644 index 00000000..a12dd552 --- /dev/null +++ b/testdata/yaml-test-suite/invalid-sequene-item-on-same-line-as-previous-item/in.yaml @@ -0,0 +1,2 @@ +--- +- { y: z }- invalid diff --git a/testdata/yaml-test-suite/invalid-tabs-as-indendation-in-a-mapping/error b/testdata/yaml-test-suite/invalid-tabs-as-indendation-in-a-mapping/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-tabs-as-indendation-in-a-mapping/in.yaml b/testdata/yaml-test-suite/invalid-tabs-as-indendation-in-a-mapping/in.yaml new file mode 100644 index 00000000..b507e207 --- /dev/null +++ b/testdata/yaml-test-suite/invalid-tabs-as-indendation-in-a-mapping/in.yaml @@ -0,0 +1,4 @@ +--- +a: + b: + c: value diff --git a/testdata/yaml-test-suite/invalid-tag/error b/testdata/yaml-test-suite/invalid-tag/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-tag/in.yaml b/testdata/yaml-test-suite/invalid-tag/in.yaml new file mode 100644 index 00000000..3d0ecf28 --- /dev/null +++ b/testdata/yaml-test-suite/invalid-tag/in.yaml @@ -0,0 +1,2 @@ +--- +!invalid{}tag scalar diff --git a/testdata/yaml-test-suite/invalid-text-after-block-scalar-indicator/error b/testdata/yaml-test-suite/invalid-text-after-block-scalar-indicator/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-text-after-block-scalar-indicator/in.yaml b/testdata/yaml-test-suite/invalid-text-after-block-scalar-indicator/in.yaml new file mode 100644 index 00000000..a5555076 --- /dev/null +++ b/testdata/yaml-test-suite/invalid-text-after-block-scalar-indicator/in.yaml @@ -0,0 +1,3 @@ +--- +folded: > first line + second line diff --git a/testdata/yaml-test-suite/invalid-value-after-mapping/error b/testdata/yaml-test-suite/invalid-value-after-mapping/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/invalid-value-after-mapping/in.yaml b/testdata/yaml-test-suite/invalid-value-after-mapping/in.yaml new file mode 100644 index 00000000..254e6fc4 --- /dev/null +++ b/testdata/yaml-test-suite/invalid-value-after-mapping/in.yaml @@ -0,0 +1,3 @@ +foo: + bar +invalid diff --git a/testdata/yaml-test-suite/key-with-anchor-after-missing-explicit-mapping-value/in.json b/testdata/yaml-test-suite/key-with-anchor-after-missing-explicit-mapping-value/in.json new file mode 100644 index 00000000..ede92b9c --- /dev/null +++ b/testdata/yaml-test-suite/key-with-anchor-after-missing-explicit-mapping-value/in.json @@ -0,0 +1,5 @@ +{ + "a": 1, + "b": null, + "c": 3 +} diff --git a/testdata/yaml-test-suite/key-with-anchor-after-missing-explicit-mapping-value/in.yaml b/testdata/yaml-test-suite/key-with-anchor-after-missing-explicit-mapping-value/in.yaml new file mode 100644 index 00000000..b6fca2a3 --- /dev/null +++ b/testdata/yaml-test-suite/key-with-anchor-after-missing-explicit-mapping-value/in.yaml @@ -0,0 +1,4 @@ +--- +a: 1 +? b +&anchor c: 3 diff --git a/testdata/yaml-test-suite/key-with-anchor-after-missing-explicit-mapping-value/out.yaml b/testdata/yaml-test-suite/key-with-anchor-after-missing-explicit-mapping-value/out.yaml new file mode 100644 index 00000000..8c72d033 --- /dev/null +++ b/testdata/yaml-test-suite/key-with-anchor-after-missing-explicit-mapping-value/out.yaml @@ -0,0 +1,4 @@ +--- +a: 1 +b: +&anchor c: 3 diff --git a/testdata/yaml-test-suite/leading-tab-content-in-literals/00/in.json b/testdata/yaml-test-suite/leading-tab-content-in-literals/00/in.json new file mode 100644 index 00000000..0adc1e53 --- /dev/null +++ b/testdata/yaml-test-suite/leading-tab-content-in-literals/00/in.json @@ -0,0 +1 @@ +{"foo":"\tbar"} diff --git a/testdata/yaml-test-suite/leading-tab-content-in-literals/00/in.yaml b/testdata/yaml-test-suite/leading-tab-content-in-literals/00/in.yaml new file mode 100644 index 00000000..de7acab7 --- /dev/null +++ b/testdata/yaml-test-suite/leading-tab-content-in-literals/00/in.yaml @@ -0,0 +1,2 @@ +foo: |- + bar diff --git a/testdata/yaml-test-suite/leading-tab-content-in-literals/00/out.yaml b/testdata/yaml-test-suite/leading-tab-content-in-literals/00/out.yaml new file mode 100644 index 00000000..ee7535d4 --- /dev/null +++ b/testdata/yaml-test-suite/leading-tab-content-in-literals/00/out.yaml @@ -0,0 +1,2 @@ +foo: |- + bar diff --git a/testdata/yaml-test-suite/leading-tab-content-in-literals/01/in.json b/testdata/yaml-test-suite/leading-tab-content-in-literals/01/in.json new file mode 100644 index 00000000..0adc1e53 --- /dev/null +++ b/testdata/yaml-test-suite/leading-tab-content-in-literals/01/in.json @@ -0,0 +1 @@ +{"foo":"\tbar"} diff --git a/testdata/yaml-test-suite/leading-tab-content-in-literals/01/in.yaml b/testdata/yaml-test-suite/leading-tab-content-in-literals/01/in.yaml new file mode 100644 index 00000000..28703eaa --- /dev/null +++ b/testdata/yaml-test-suite/leading-tab-content-in-literals/01/in.yaml @@ -0,0 +1,2 @@ +foo: |- + bar \ No newline at end of file diff --git a/testdata/yaml-test-suite/leading-tab-content-in-literals/01/out.yaml b/testdata/yaml-test-suite/leading-tab-content-in-literals/01/out.yaml new file mode 100644 index 00000000..ee7535d4 --- /dev/null +++ b/testdata/yaml-test-suite/leading-tab-content-in-literals/01/out.yaml @@ -0,0 +1,2 @@ +foo: |- + bar diff --git a/testdata/yaml-test-suite/leading-tabs-in-double-quoted/00/in.json b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/00/in.json new file mode 100644 index 00000000..821166a1 --- /dev/null +++ b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/00/in.json @@ -0,0 +1 @@ +"1 leading \ttab" diff --git a/testdata/yaml-test-suite/leading-tabs-in-double-quoted/00/in.yaml b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/00/in.yaml new file mode 100644 index 00000000..a6a23a80 --- /dev/null +++ b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/00/in.yaml @@ -0,0 +1,2 @@ +"1 leading + \ttab" diff --git a/testdata/yaml-test-suite/leading-tabs-in-double-quoted/01/in.json b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/01/in.json new file mode 100644 index 00000000..29133b17 --- /dev/null +++ b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/01/in.json @@ -0,0 +1 @@ +"2 leading \ttab" diff --git a/testdata/yaml-test-suite/leading-tabs-in-double-quoted/01/in.yaml b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/01/in.yaml new file mode 100644 index 00000000..64057a8a --- /dev/null +++ b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/01/in.yaml @@ -0,0 +1,2 @@ +"2 leading + \ tab" diff --git a/testdata/yaml-test-suite/leading-tabs-in-double-quoted/02/in.json b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/02/in.json new file mode 100644 index 00000000..9f23c059 --- /dev/null +++ b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/02/in.json @@ -0,0 +1 @@ +"3 leading tab" diff --git a/testdata/yaml-test-suite/leading-tabs-in-double-quoted/02/in.yaml b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/02/in.yaml new file mode 100644 index 00000000..3b18adc9 --- /dev/null +++ b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/02/in.yaml @@ -0,0 +1,2 @@ +"3 leading + tab" diff --git a/testdata/yaml-test-suite/leading-tabs-in-double-quoted/03/in.json b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/03/in.json new file mode 100644 index 00000000..75b57d99 --- /dev/null +++ b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/03/in.json @@ -0,0 +1 @@ +"4 leading \t tab" diff --git a/testdata/yaml-test-suite/leading-tabs-in-double-quoted/03/in.yaml b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/03/in.yaml new file mode 100644 index 00000000..815c713a --- /dev/null +++ b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/03/in.yaml @@ -0,0 +1,2 @@ +"4 leading + \t tab" diff --git a/testdata/yaml-test-suite/leading-tabs-in-double-quoted/04/in.json b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/04/in.json new file mode 100644 index 00000000..f73076a3 --- /dev/null +++ b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/04/in.json @@ -0,0 +1 @@ +"5 leading \t tab" diff --git a/testdata/yaml-test-suite/leading-tabs-in-double-quoted/04/in.yaml b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/04/in.yaml new file mode 100644 index 00000000..07e14f57 --- /dev/null +++ b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/04/in.yaml @@ -0,0 +1,2 @@ +"5 leading + \ tab" diff --git a/testdata/yaml-test-suite/leading-tabs-in-double-quoted/05/in.json b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/05/in.json new file mode 100644 index 00000000..46d1f8ca --- /dev/null +++ b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/05/in.json @@ -0,0 +1 @@ +"6 leading tab" diff --git a/testdata/yaml-test-suite/leading-tabs-in-double-quoted/05/in.yaml b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/05/in.yaml new file mode 100644 index 00000000..75222d3e --- /dev/null +++ b/testdata/yaml-test-suite/leading-tabs-in-double-quoted/05/in.yaml @@ -0,0 +1,2 @@ +"6 leading + tab" diff --git a/testdata/yaml-test-suite/legal-tab-after-indentation/in.json b/testdata/yaml-test-suite/legal-tab-after-indentation/in.json new file mode 100644 index 00000000..571dd361 --- /dev/null +++ b/testdata/yaml-test-suite/legal-tab-after-indentation/in.json @@ -0,0 +1,5 @@ +{ + "x": [ + "x x" + ] +} diff --git a/testdata/yaml-test-suite/legal-tab-after-indentation/in.yaml b/testdata/yaml-test-suite/legal-tab-after-indentation/in.yaml new file mode 100644 index 00000000..7daa0a62 --- /dev/null +++ b/testdata/yaml-test-suite/legal-tab-after-indentation/in.yaml @@ -0,0 +1,3 @@ +x: + - x + x diff --git a/testdata/yaml-test-suite/legal-tab-after-indentation/out.yaml b/testdata/yaml-test-suite/legal-tab-after-indentation/out.yaml new file mode 100644 index 00000000..80abc43f --- /dev/null +++ b/testdata/yaml-test-suite/legal-tab-after-indentation/out.yaml @@ -0,0 +1,2 @@ +x: +- x x diff --git a/testdata/yaml-test-suite/literal-block-scalar-with-more-spaces-in-first-line/error b/testdata/yaml-test-suite/literal-block-scalar-with-more-spaces-in-first-line/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/literal-block-scalar-with-more-spaces-in-first-line/in.yaml b/testdata/yaml-test-suite/literal-block-scalar-with-more-spaces-in-first-line/in.yaml new file mode 100644 index 00000000..7b15d0ca --- /dev/null +++ b/testdata/yaml-test-suite/literal-block-scalar-with-more-spaces-in-first-line/in.yaml @@ -0,0 +1,5 @@ +--- +block scalar: | + + more spaces at the beginning + are invalid diff --git a/testdata/yaml-test-suite/literal-block-scalar/in.json b/testdata/yaml-test-suite/literal-block-scalar/in.json new file mode 100644 index 00000000..093e6e2c --- /dev/null +++ b/testdata/yaml-test-suite/literal-block-scalar/in.json @@ -0,0 +1,3 @@ +{ + "a": "ab\n\ncd\nef\n" +} diff --git a/testdata/yaml-test-suite/literal-block-scalar/in.yaml b/testdata/yaml-test-suite/literal-block-scalar/in.yaml new file mode 100644 index 00000000..d472650e --- /dev/null +++ b/testdata/yaml-test-suite/literal-block-scalar/in.yaml @@ -0,0 +1,8 @@ +a: | + ab + + cd + ef + + +... diff --git a/testdata/yaml-test-suite/literal-block-scalar/out.yaml b/testdata/yaml-test-suite/literal-block-scalar/out.yaml new file mode 100644 index 00000000..f86936bb --- /dev/null +++ b/testdata/yaml-test-suite/literal-block-scalar/out.yaml @@ -0,0 +1,6 @@ +a: | + ab + + cd + ef +... diff --git a/testdata/yaml-test-suite/literal-modifers/00/error b/testdata/yaml-test-suite/literal-modifers/00/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/literal-modifers/00/in.yaml b/testdata/yaml-test-suite/literal-modifers/00/in.yaml new file mode 100644 index 00000000..56974da8 --- /dev/null +++ b/testdata/yaml-test-suite/literal-modifers/00/in.yaml @@ -0,0 +1 @@ +--- |0 diff --git a/testdata/yaml-test-suite/literal-modifers/01/error b/testdata/yaml-test-suite/literal-modifers/01/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/literal-modifers/01/in.yaml b/testdata/yaml-test-suite/literal-modifers/01/in.yaml new file mode 100644 index 00000000..52ef8469 --- /dev/null +++ b/testdata/yaml-test-suite/literal-modifers/01/in.yaml @@ -0,0 +1 @@ +--- |10 diff --git a/testdata/yaml-test-suite/literal-modifers/02/in.json b/testdata/yaml-test-suite/literal-modifers/02/in.json new file mode 100644 index 00000000..e16c76df --- /dev/null +++ b/testdata/yaml-test-suite/literal-modifers/02/in.json @@ -0,0 +1 @@ +"" diff --git a/testdata/yaml-test-suite/literal-modifers/02/in.yaml b/testdata/yaml-test-suite/literal-modifers/02/in.yaml new file mode 100644 index 00000000..9d094887 --- /dev/null +++ b/testdata/yaml-test-suite/literal-modifers/02/in.yaml @@ -0,0 +1 @@ +--- |1- \ No newline at end of file diff --git a/testdata/yaml-test-suite/literal-modifers/03/in.json b/testdata/yaml-test-suite/literal-modifers/03/in.json new file mode 100644 index 00000000..e16c76df --- /dev/null +++ b/testdata/yaml-test-suite/literal-modifers/03/in.json @@ -0,0 +1 @@ +"" diff --git a/testdata/yaml-test-suite/literal-modifers/03/in.yaml b/testdata/yaml-test-suite/literal-modifers/03/in.yaml new file mode 100644 index 00000000..3220349b --- /dev/null +++ b/testdata/yaml-test-suite/literal-modifers/03/in.yaml @@ -0,0 +1 @@ +--- |1+ \ No newline at end of file diff --git a/testdata/yaml-test-suite/literal-scalars/in.json b/testdata/yaml-test-suite/literal-scalars/in.json new file mode 100644 index 00000000..bc81564d --- /dev/null +++ b/testdata/yaml-test-suite/literal-scalars/in.json @@ -0,0 +1,6 @@ +[ + { + "aaa" : "xxx\n", + "bbb" : "xxx\n" + } +] diff --git a/testdata/yaml-test-suite/literal-scalars/in.yaml b/testdata/yaml-test-suite/literal-scalars/in.yaml new file mode 100644 index 00000000..0d9917ee --- /dev/null +++ b/testdata/yaml-test-suite/literal-scalars/in.yaml @@ -0,0 +1,4 @@ +- aaa: |2 + xxx + bbb: | + xxx diff --git a/testdata/yaml-test-suite/literal-scalars/out.yaml b/testdata/yaml-test-suite/literal-scalars/out.yaml new file mode 100644 index 00000000..c5524891 --- /dev/null +++ b/testdata/yaml-test-suite/literal-scalars/out.yaml @@ -0,0 +1,5 @@ +--- +- aaa: | + xxx + bbb: | + xxx diff --git a/testdata/yaml-test-suite/literal-unicode/in.json b/testdata/yaml-test-suite/literal-unicode/in.json new file mode 100644 index 00000000..52e666b1 --- /dev/null +++ b/testdata/yaml-test-suite/literal-unicode/in.json @@ -0,0 +1,3 @@ +{ + "wanted": "love ♥ and peace ☮" +} diff --git a/testdata/yaml-test-suite/literal-unicode/in.yaml b/testdata/yaml-test-suite/literal-unicode/in.yaml new file mode 100644 index 00000000..3cf0d466 --- /dev/null +++ b/testdata/yaml-test-suite/literal-unicode/in.yaml @@ -0,0 +1,2 @@ +--- +wanted: love ♥ and peace ☮ diff --git a/testdata/yaml-test-suite/literal-unicode/out.yaml b/testdata/yaml-test-suite/literal-unicode/out.yaml new file mode 100644 index 00000000..6d1d8874 --- /dev/null +++ b/testdata/yaml-test-suite/literal-unicode/out.yaml @@ -0,0 +1,2 @@ +--- +wanted: "love \u2665 and peace \u262E" diff --git a/testdata/yaml-test-suite/lookahead-test-cases/in.json b/testdata/yaml-test-suite/lookahead-test-cases/in.json new file mode 100644 index 00000000..0e623014 --- /dev/null +++ b/testdata/yaml-test-suite/lookahead-test-cases/in.json @@ -0,0 +1,8 @@ +[ + { + "bla\"keks": "foo" + }, + { + "bla]keks": "foo" + } +] diff --git a/testdata/yaml-test-suite/lookahead-test-cases/in.yaml b/testdata/yaml-test-suite/lookahead-test-cases/in.yaml new file mode 100644 index 00000000..c9219e95 --- /dev/null +++ b/testdata/yaml-test-suite/lookahead-test-cases/in.yaml @@ -0,0 +1,2 @@ +- bla"keks: foo +- bla]keks: foo diff --git a/testdata/yaml-test-suite/mapping-key-and-flow-sequence-item-anchors/in.yaml b/testdata/yaml-test-suite/mapping-key-and-flow-sequence-item-anchors/in.yaml new file mode 100644 index 00000000..19d1e3ee --- /dev/null +++ b/testdata/yaml-test-suite/mapping-key-and-flow-sequence-item-anchors/in.yaml @@ -0,0 +1,3 @@ +--- +&mapping +&key [ &item a, b, c ]: value diff --git a/testdata/yaml-test-suite/mapping-key-and-flow-sequence-item-anchors/out.yaml b/testdata/yaml-test-suite/mapping-key-and-flow-sequence-item-anchors/out.yaml new file mode 100644 index 00000000..1e3d7bfc --- /dev/null +++ b/testdata/yaml-test-suite/mapping-key-and-flow-sequence-item-anchors/out.yaml @@ -0,0 +1,6 @@ +--- &mapping +? &key +- &item a +- b +- c +: value diff --git a/testdata/yaml-test-suite/mapping-starting-at-line/error b/testdata/yaml-test-suite/mapping-starting-at-line/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/mapping-starting-at-line/in.yaml b/testdata/yaml-test-suite/mapping-starting-at-line/in.yaml new file mode 100644 index 00000000..f2c16544 --- /dev/null +++ b/testdata/yaml-test-suite/mapping-starting-at-line/in.yaml @@ -0,0 +1,2 @@ +--- key1: value1 + key2: value2 diff --git a/testdata/yaml-test-suite/mapping-with-anchor-on-document-start-line/error b/testdata/yaml-test-suite/mapping-with-anchor-on-document-start-line/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/mapping-with-anchor-on-document-start-line/in.yaml b/testdata/yaml-test-suite/mapping-with-anchor-on-document-start-line/in.yaml new file mode 100644 index 00000000..9c001207 --- /dev/null +++ b/testdata/yaml-test-suite/mapping-with-anchor-on-document-start-line/in.yaml @@ -0,0 +1 @@ +--- &anchor a: b diff --git a/testdata/yaml-test-suite/missing-colon/error b/testdata/yaml-test-suite/missing-colon/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/missing-colon/in.yaml b/testdata/yaml-test-suite/missing-colon/in.yaml new file mode 100644 index 00000000..39bce100 --- /dev/null +++ b/testdata/yaml-test-suite/missing-colon/in.yaml @@ -0,0 +1,3 @@ +top1: + key1: val1 +top2 diff --git a/testdata/yaml-test-suite/missing-comma-in-flow/error b/testdata/yaml-test-suite/missing-comma-in-flow/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/missing-comma-in-flow/in.yaml b/testdata/yaml-test-suite/missing-comma-in-flow/in.yaml new file mode 100644 index 00000000..b2c39a58 --- /dev/null +++ b/testdata/yaml-test-suite/missing-comma-in-flow/in.yaml @@ -0,0 +1,3 @@ +key: [ word1 +# xxx + word2 ] diff --git a/testdata/yaml-test-suite/missing-document-end-marker-before-directive/error b/testdata/yaml-test-suite/missing-document-end-marker-before-directive/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/missing-document-end-marker-before-directive/in.yaml b/testdata/yaml-test-suite/missing-document-end-marker-before-directive/in.yaml new file mode 100644 index 00000000..2c7dd1d4 --- /dev/null +++ b/testdata/yaml-test-suite/missing-document-end-marker-before-directive/in.yaml @@ -0,0 +1,5 @@ +--- +scalar1 # comment +%YAML 1.2 +--- +scalar2 diff --git a/testdata/yaml-test-suite/mixed-block-mapping-explicit-to-implicit/in.json b/testdata/yaml-test-suite/mixed-block-mapping-explicit-to-implicit/in.json new file mode 100644 index 00000000..649f5e41 --- /dev/null +++ b/testdata/yaml-test-suite/mixed-block-mapping-explicit-to-implicit/in.json @@ -0,0 +1,4 @@ +{ + "a": 1.3, + "fifteen": "d" +} diff --git a/testdata/yaml-test-suite/mixed-block-mapping-explicit-to-implicit/in.yaml b/testdata/yaml-test-suite/mixed-block-mapping-explicit-to-implicit/in.yaml new file mode 100644 index 00000000..e54cd419 --- /dev/null +++ b/testdata/yaml-test-suite/mixed-block-mapping-explicit-to-implicit/in.yaml @@ -0,0 +1,3 @@ +? a +: 1.3 +fifteen: d diff --git a/testdata/yaml-test-suite/mixed-block-mapping-explicit-to-implicit/out.yaml b/testdata/yaml-test-suite/mixed-block-mapping-explicit-to-implicit/out.yaml new file mode 100644 index 00000000..b46ee8a2 --- /dev/null +++ b/testdata/yaml-test-suite/mixed-block-mapping-explicit-to-implicit/out.yaml @@ -0,0 +1,2 @@ +a: 1.3 +fifteen: d diff --git a/testdata/yaml-test-suite/mixed-block-mapping-implicit-to-explicit/in.json b/testdata/yaml-test-suite/mixed-block-mapping-implicit-to-explicit/in.json new file mode 100644 index 00000000..ee9c8bea --- /dev/null +++ b/testdata/yaml-test-suite/mixed-block-mapping-implicit-to-explicit/in.json @@ -0,0 +1,4 @@ +{ + "d": 23, + "a": 4.2 +} diff --git a/testdata/yaml-test-suite/mixed-block-mapping-implicit-to-explicit/in.yaml b/testdata/yaml-test-suite/mixed-block-mapping-implicit-to-explicit/in.yaml new file mode 100644 index 00000000..34ccc874 --- /dev/null +++ b/testdata/yaml-test-suite/mixed-block-mapping-implicit-to-explicit/in.yaml @@ -0,0 +1,3 @@ +a: 4.2 +? d +: 23 diff --git a/testdata/yaml-test-suite/mixed-block-mapping-implicit-to-explicit/out.yaml b/testdata/yaml-test-suite/mixed-block-mapping-implicit-to-explicit/out.yaml new file mode 100644 index 00000000..a18620f4 --- /dev/null +++ b/testdata/yaml-test-suite/mixed-block-mapping-implicit-to-explicit/out.yaml @@ -0,0 +1,2 @@ +a: 4.2 +d: 23 diff --git a/testdata/yaml-test-suite/more-indented-lines-at-the-beginning-of-folded-block-scalars/in.json b/testdata/yaml-test-suite/more-indented-lines-at-the-beginning-of-folded-block-scalars/in.json new file mode 100644 index 00000000..72be982c --- /dev/null +++ b/testdata/yaml-test-suite/more-indented-lines-at-the-beginning-of-folded-block-scalars/in.json @@ -0,0 +1,4 @@ +{ + "a": " more indented\nregular\n", + "b": "\n\n more indented\nregular\n" +} diff --git a/testdata/yaml-test-suite/more-indented-lines-at-the-beginning-of-folded-block-scalars/in.yaml b/testdata/yaml-test-suite/more-indented-lines-at-the-beginning-of-folded-block-scalars/in.yaml new file mode 100644 index 00000000..08c530d2 --- /dev/null +++ b/testdata/yaml-test-suite/more-indented-lines-at-the-beginning-of-folded-block-scalars/in.yaml @@ -0,0 +1,9 @@ +--- +a: >2 + more indented + regular +b: >2 + + + more indented + regular diff --git a/testdata/yaml-test-suite/multi-level-mapping-indent/in.json b/testdata/yaml-test-suite/multi-level-mapping-indent/in.json new file mode 100644 index 00000000..b521c7fe --- /dev/null +++ b/testdata/yaml-test-suite/multi-level-mapping-indent/in.json @@ -0,0 +1,11 @@ +{ + "a": { + "b": { + "c": "d" + }, + "e": { + "f": "g" + } + }, + "h": "i" +} diff --git a/testdata/yaml-test-suite/multi-level-mapping-indent/in.yaml b/testdata/yaml-test-suite/multi-level-mapping-indent/in.yaml new file mode 100644 index 00000000..25f0447c --- /dev/null +++ b/testdata/yaml-test-suite/multi-level-mapping-indent/in.yaml @@ -0,0 +1,6 @@ +a: + b: + c: d + e: + f: g +h: i diff --git a/testdata/yaml-test-suite/multiline-double-quoted-flow-mapping-key/in.json b/testdata/yaml-test-suite/multiline-double-quoted-flow-mapping-key/in.json new file mode 100644 index 00000000..d214d88c --- /dev/null +++ b/testdata/yaml-test-suite/multiline-double-quoted-flow-mapping-key/in.json @@ -0,0 +1,8 @@ +[ + { + "single line": "value" + }, + { + "multi line": "value" + } +] diff --git a/testdata/yaml-test-suite/multiline-double-quoted-flow-mapping-key/in.yaml b/testdata/yaml-test-suite/multiline-double-quoted-flow-mapping-key/in.yaml new file mode 100644 index 00000000..b79124b2 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-double-quoted-flow-mapping-key/in.yaml @@ -0,0 +1,4 @@ +--- +- { "single line": value} +- { "multi + line": value} diff --git a/testdata/yaml-test-suite/multiline-double-quoted-flow-mapping-key/out.yaml b/testdata/yaml-test-suite/multiline-double-quoted-flow-mapping-key/out.yaml new file mode 100644 index 00000000..15481f41 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-double-quoted-flow-mapping-key/out.yaml @@ -0,0 +1,3 @@ +--- +- "single line": value +- "multi line": value diff --git a/testdata/yaml-test-suite/multiline-double-quoted-implicit-keys/error b/testdata/yaml-test-suite/multiline-double-quoted-implicit-keys/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/multiline-double-quoted-implicit-keys/in.yaml b/testdata/yaml-test-suite/multiline-double-quoted-implicit-keys/in.yaml new file mode 100644 index 00000000..6953d402 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-double-quoted-implicit-keys/in.yaml @@ -0,0 +1,3 @@ +"a\nb": 1 +"c + d": 1 diff --git a/testdata/yaml-test-suite/multiline-doublequoted-flow-mapping-key-without-value/in.json b/testdata/yaml-test-suite/multiline-doublequoted-flow-mapping-key-without-value/in.json new file mode 100644 index 00000000..27162762 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-doublequoted-flow-mapping-key-without-value/in.json @@ -0,0 +1,10 @@ +[ + { + "single line": null, + "a": "b" + }, + { + "multi line": null, + "a": "b" + } +] diff --git a/testdata/yaml-test-suite/multiline-doublequoted-flow-mapping-key-without-value/in.yaml b/testdata/yaml-test-suite/multiline-doublequoted-flow-mapping-key-without-value/in.yaml new file mode 100644 index 00000000..c0078271 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-doublequoted-flow-mapping-key-without-value/in.yaml @@ -0,0 +1,4 @@ +--- +- { "single line", a: b} +- { "multi + line", a: b} diff --git a/testdata/yaml-test-suite/multiline-doublequoted-flow-mapping-key-without-value/out.yaml b/testdata/yaml-test-suite/multiline-doublequoted-flow-mapping-key-without-value/out.yaml new file mode 100644 index 00000000..07c3f72e --- /dev/null +++ b/testdata/yaml-test-suite/multiline-doublequoted-flow-mapping-key-without-value/out.yaml @@ -0,0 +1,5 @@ +--- +- "single line": + a: b +- "multi line": + a: b diff --git a/testdata/yaml-test-suite/multiline-implicit-keys/error b/testdata/yaml-test-suite/multiline-implicit-keys/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/multiline-implicit-keys/in.yaml b/testdata/yaml-test-suite/multiline-implicit-keys/in.yaml new file mode 100644 index 00000000..e0a85bf7 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-implicit-keys/in.yaml @@ -0,0 +1,3 @@ +a\nb: 1 +c + d: 1 diff --git a/testdata/yaml-test-suite/multiline-plain-flow-mapping-key-without-value/in.json b/testdata/yaml-test-suite/multiline-plain-flow-mapping-key-without-value/in.json new file mode 100644 index 00000000..27162762 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-plain-flow-mapping-key-without-value/in.json @@ -0,0 +1,10 @@ +[ + { + "single line": null, + "a": "b" + }, + { + "multi line": null, + "a": "b" + } +] diff --git a/testdata/yaml-test-suite/multiline-plain-flow-mapping-key-without-value/in.yaml b/testdata/yaml-test-suite/multiline-plain-flow-mapping-key-without-value/in.yaml new file mode 100644 index 00000000..9167fd68 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-plain-flow-mapping-key-without-value/in.yaml @@ -0,0 +1,4 @@ +--- +- { single line, a: b} +- { multi + line, a: b} diff --git a/testdata/yaml-test-suite/multiline-plain-flow-mapping-key-without-value/out.yaml b/testdata/yaml-test-suite/multiline-plain-flow-mapping-key-without-value/out.yaml new file mode 100644 index 00000000..a68f2078 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-plain-flow-mapping-key-without-value/out.yaml @@ -0,0 +1,5 @@ +--- +- single line: + a: b +- multi line: + a: b diff --git a/testdata/yaml-test-suite/multiline-plain-flow-mapping-key/in.json b/testdata/yaml-test-suite/multiline-plain-flow-mapping-key/in.json new file mode 100644 index 00000000..d214d88c --- /dev/null +++ b/testdata/yaml-test-suite/multiline-plain-flow-mapping-key/in.json @@ -0,0 +1,8 @@ +[ + { + "single line": "value" + }, + { + "multi line": "value" + } +] diff --git a/testdata/yaml-test-suite/multiline-plain-flow-mapping-key/in.yaml b/testdata/yaml-test-suite/multiline-plain-flow-mapping-key/in.yaml new file mode 100644 index 00000000..6ded532f --- /dev/null +++ b/testdata/yaml-test-suite/multiline-plain-flow-mapping-key/in.yaml @@ -0,0 +1,4 @@ +--- +- { single line: value} +- { multi + line: value} diff --git a/testdata/yaml-test-suite/multiline-plain-flow-mapping-key/out.yaml b/testdata/yaml-test-suite/multiline-plain-flow-mapping-key/out.yaml new file mode 100644 index 00000000..e15be7c5 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-plain-flow-mapping-key/out.yaml @@ -0,0 +1,3 @@ +--- +- single line: value +- multi line: value diff --git a/testdata/yaml-test-suite/multiline-plain-scalar-with-empty-line/in.json b/testdata/yaml-test-suite/multiline-plain-scalar-with-empty-line/in.json new file mode 100644 index 00000000..026d7b49 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-plain-scalar-with-empty-line/in.json @@ -0,0 +1,3 @@ +{ + "plain": "a b\nc" +} diff --git a/testdata/yaml-test-suite/multiline-plain-scalar-with-empty-line/in.yaml b/testdata/yaml-test-suite/multiline-plain-scalar-with-empty-line/in.yaml new file mode 100644 index 00000000..71600b85 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-plain-scalar-with-empty-line/in.yaml @@ -0,0 +1,5 @@ +--- +plain: a + b + + c diff --git a/testdata/yaml-test-suite/multiline-plain-scalar-with-empty-line/out.yaml b/testdata/yaml-test-suite/multiline-plain-scalar-with-empty-line/out.yaml new file mode 100644 index 00000000..c13ce1e5 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-plain-scalar-with-empty-line/out.yaml @@ -0,0 +1,4 @@ +--- +plain: 'a b + + c' diff --git a/testdata/yaml-test-suite/multiline-plain-value-with-tabs-on-empty-lines/in.json b/testdata/yaml-test-suite/multiline-plain-value-with-tabs-on-empty-lines/in.json new file mode 100644 index 00000000..99213fe3 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-plain-value-with-tabs-on-empty-lines/in.json @@ -0,0 +1,3 @@ +{ + "key": "value with\ntabs" +} diff --git a/testdata/yaml-test-suite/multiline-plain-value-with-tabs-on-empty-lines/in.yaml b/testdata/yaml-test-suite/multiline-plain-value-with-tabs-on-empty-lines/in.yaml new file mode 100644 index 00000000..b7cf4b1b --- /dev/null +++ b/testdata/yaml-test-suite/multiline-plain-value-with-tabs-on-empty-lines/in.yaml @@ -0,0 +1,5 @@ +key: + value + with + + tabs diff --git a/testdata/yaml-test-suite/multiline-plain-value-with-tabs-on-empty-lines/out.yaml b/testdata/yaml-test-suite/multiline-plain-value-with-tabs-on-empty-lines/out.yaml new file mode 100644 index 00000000..3c82c434 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-plain-value-with-tabs-on-empty-lines/out.yaml @@ -0,0 +1,3 @@ +key: 'value with + + tabs' diff --git a/testdata/yaml-test-suite/multiline-scalar-at-top-level-1-3/in.json b/testdata/yaml-test-suite/multiline-scalar-at-top-level-1-3/in.json new file mode 100644 index 00000000..a565abcf --- /dev/null +++ b/testdata/yaml-test-suite/multiline-scalar-at-top-level-1-3/in.json @@ -0,0 +1 @@ +"a b c d\ne" diff --git a/testdata/yaml-test-suite/multiline-scalar-at-top-level-1-3/in.yaml b/testdata/yaml-test-suite/multiline-scalar-at-top-level-1-3/in.yaml new file mode 100644 index 00000000..0e75a652 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-scalar-at-top-level-1-3/in.yaml @@ -0,0 +1,7 @@ +--- +a +b + c +d + +e diff --git a/testdata/yaml-test-suite/multiline-scalar-at-top-level-1-3/out.yaml b/testdata/yaml-test-suite/multiline-scalar-at-top-level-1-3/out.yaml new file mode 100644 index 00000000..38515a7f --- /dev/null +++ b/testdata/yaml-test-suite/multiline-scalar-at-top-level-1-3/out.yaml @@ -0,0 +1,3 @@ +'a b c d + + e' diff --git a/testdata/yaml-test-suite/multiline-scalar-at-top-level/in.json b/testdata/yaml-test-suite/multiline-scalar-at-top-level/in.json new file mode 100644 index 00000000..a565abcf --- /dev/null +++ b/testdata/yaml-test-suite/multiline-scalar-at-top-level/in.json @@ -0,0 +1 @@ +"a b c d\ne" diff --git a/testdata/yaml-test-suite/multiline-scalar-at-top-level/in.yaml b/testdata/yaml-test-suite/multiline-scalar-at-top-level/in.yaml new file mode 100644 index 00000000..8a21b02a --- /dev/null +++ b/testdata/yaml-test-suite/multiline-scalar-at-top-level/in.yaml @@ -0,0 +1,6 @@ +a +b + c +d + +e diff --git a/testdata/yaml-test-suite/multiline-scalar-at-top-level/out.yaml b/testdata/yaml-test-suite/multiline-scalar-at-top-level/out.yaml new file mode 100644 index 00000000..38515a7f --- /dev/null +++ b/testdata/yaml-test-suite/multiline-scalar-at-top-level/out.yaml @@ -0,0 +1,3 @@ +'a b c d + + e' diff --git a/testdata/yaml-test-suite/multiline-scalar-in-mapping/in.json b/testdata/yaml-test-suite/multiline-scalar-in-mapping/in.json new file mode 100644 index 00000000..50ad5bd8 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-scalar-in-mapping/in.json @@ -0,0 +1,4 @@ +{ + "a": "b c", + "d": "e f" +} diff --git a/testdata/yaml-test-suite/multiline-scalar-in-mapping/in.yaml b/testdata/yaml-test-suite/multiline-scalar-in-mapping/in.yaml new file mode 100644 index 00000000..62fe04a3 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-scalar-in-mapping/in.yaml @@ -0,0 +1,5 @@ +a: b + c +d: + e + f diff --git a/testdata/yaml-test-suite/multiline-scalar-in-mapping/out.yaml b/testdata/yaml-test-suite/multiline-scalar-in-mapping/out.yaml new file mode 100644 index 00000000..8090021d --- /dev/null +++ b/testdata/yaml-test-suite/multiline-scalar-in-mapping/out.yaml @@ -0,0 +1,2 @@ +a: b c +d: e f diff --git a/testdata/yaml-test-suite/multiline-scalar-that-looks-like-a-yaml-directive/in.json b/testdata/yaml-test-suite/multiline-scalar-that-looks-like-a-yaml-directive/in.json new file mode 100644 index 00000000..20ec09f0 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-scalar-that-looks-like-a-yaml-directive/in.json @@ -0,0 +1 @@ +"scalar %YAML 1.2" diff --git a/testdata/yaml-test-suite/multiline-scalar-that-looks-like-a-yaml-directive/in.yaml b/testdata/yaml-test-suite/multiline-scalar-that-looks-like-a-yaml-directive/in.yaml new file mode 100644 index 00000000..dbe36b96 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-scalar-that-looks-like-a-yaml-directive/in.yaml @@ -0,0 +1,3 @@ +--- +scalar +%YAML 1.2 diff --git a/testdata/yaml-test-suite/multiline-scalar-that-looks-like-a-yaml-directive/out.yaml b/testdata/yaml-test-suite/multiline-scalar-that-looks-like-a-yaml-directive/out.yaml new file mode 100644 index 00000000..1d2d27c1 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-scalar-that-looks-like-a-yaml-directive/out.yaml @@ -0,0 +1,2 @@ +--- scalar %YAML 1.2 +... diff --git a/testdata/yaml-test-suite/multiline-single-quoted-implicit-keys/error b/testdata/yaml-test-suite/multiline-single-quoted-implicit-keys/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/multiline-single-quoted-implicit-keys/in.yaml b/testdata/yaml-test-suite/multiline-single-quoted-implicit-keys/in.yaml new file mode 100644 index 00000000..edd180ac --- /dev/null +++ b/testdata/yaml-test-suite/multiline-single-quoted-implicit-keys/in.yaml @@ -0,0 +1,3 @@ +'a\nb': 1 +'c + d': 1 diff --git a/testdata/yaml-test-suite/multiline-unidented-double-quoted-block-key/error b/testdata/yaml-test-suite/multiline-unidented-double-quoted-block-key/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/multiline-unidented-double-quoted-block-key/in.yaml b/testdata/yaml-test-suite/multiline-unidented-double-quoted-block-key/in.yaml new file mode 100644 index 00000000..c2718a19 --- /dev/null +++ b/testdata/yaml-test-suite/multiline-unidented-double-quoted-block-key/in.yaml @@ -0,0 +1,2 @@ +- - "bar +bar": x diff --git a/testdata/yaml-test-suite/multiple-entry-block-sequence/in.json b/testdata/yaml-test-suite/multiple-entry-block-sequence/in.json new file mode 100644 index 00000000..1866413f --- /dev/null +++ b/testdata/yaml-test-suite/multiple-entry-block-sequence/in.json @@ -0,0 +1,5 @@ +[ + "foo", + "bar", + 42 +] diff --git a/testdata/yaml-test-suite/multiple-entry-block-sequence/in.yaml b/testdata/yaml-test-suite/multiple-entry-block-sequence/in.yaml new file mode 100644 index 00000000..5fae9f4f --- /dev/null +++ b/testdata/yaml-test-suite/multiple-entry-block-sequence/in.yaml @@ -0,0 +1,3 @@ +- foo +- bar +- 42 diff --git a/testdata/yaml-test-suite/multiple-pair-block-mapping/in.json b/testdata/yaml-test-suite/multiple-pair-block-mapping/in.json new file mode 100644 index 00000000..1d2cefe9 --- /dev/null +++ b/testdata/yaml-test-suite/multiple-pair-block-mapping/in.json @@ -0,0 +1,5 @@ +{ + "foo": "blue", + "bar": "arrr", + "baz": "jazz" +} diff --git a/testdata/yaml-test-suite/multiple-pair-block-mapping/in.yaml b/testdata/yaml-test-suite/multiple-pair-block-mapping/in.yaml new file mode 100644 index 00000000..a40b18e8 --- /dev/null +++ b/testdata/yaml-test-suite/multiple-pair-block-mapping/in.yaml @@ -0,0 +1,3 @@ +foo: blue +bar: arrr +baz: jazz diff --git a/testdata/yaml-test-suite/need-document-footer-before-directives/error b/testdata/yaml-test-suite/need-document-footer-before-directives/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/need-document-footer-before-directives/in.yaml b/testdata/yaml-test-suite/need-document-footer-before-directives/in.yaml new file mode 100644 index 00000000..dc49d9ca --- /dev/null +++ b/testdata/yaml-test-suite/need-document-footer-before-directives/in.yaml @@ -0,0 +1,4 @@ +!foo "bar" +%TAG ! tag:example.com,2000:app/ +--- +!foo "bar" diff --git a/testdata/yaml-test-suite/nested-flow-collections-on-one-line/in.json b/testdata/yaml-test-suite/nested-flow-collections-on-one-line/in.json new file mode 100644 index 00000000..a134c8f3 --- /dev/null +++ b/testdata/yaml-test-suite/nested-flow-collections-on-one-line/in.json @@ -0,0 +1,12 @@ +{ + "a": [ + "b", + "c", + { + "d": [ + "e", + "f" + ] + } + ] +} diff --git a/testdata/yaml-test-suite/nested-flow-collections-on-one-line/in.yaml b/testdata/yaml-test-suite/nested-flow-collections-on-one-line/in.yaml new file mode 100644 index 00000000..04e631bb --- /dev/null +++ b/testdata/yaml-test-suite/nested-flow-collections-on-one-line/in.yaml @@ -0,0 +1,2 @@ +--- +{ a: [b, c, { d: [e, f] } ] } diff --git a/testdata/yaml-test-suite/nested-flow-collections-on-one-line/out.yaml b/testdata/yaml-test-suite/nested-flow-collections-on-one-line/out.yaml new file mode 100644 index 00000000..3c396422 --- /dev/null +++ b/testdata/yaml-test-suite/nested-flow-collections-on-one-line/out.yaml @@ -0,0 +1,7 @@ +--- +a: +- b +- c +- d: + - e + - f diff --git a/testdata/yaml-test-suite/nested-flow-collections/in.json b/testdata/yaml-test-suite/nested-flow-collections/in.json new file mode 100644 index 00000000..a134c8f3 --- /dev/null +++ b/testdata/yaml-test-suite/nested-flow-collections/in.json @@ -0,0 +1,12 @@ +{ + "a": [ + "b", + "c", + { + "d": [ + "e", + "f" + ] + } + ] +} diff --git a/testdata/yaml-test-suite/nested-flow-collections/in.yaml b/testdata/yaml-test-suite/nested-flow-collections/in.yaml new file mode 100644 index 00000000..d8f46c45 --- /dev/null +++ b/testdata/yaml-test-suite/nested-flow-collections/in.yaml @@ -0,0 +1,8 @@ +--- +{ + a: [ + b, c, { + d: [e, f] + } + ] +} diff --git a/testdata/yaml-test-suite/nested-flow-collections/out.yaml b/testdata/yaml-test-suite/nested-flow-collections/out.yaml new file mode 100644 index 00000000..3c396422 --- /dev/null +++ b/testdata/yaml-test-suite/nested-flow-collections/out.yaml @@ -0,0 +1,7 @@ +--- +a: +- b +- c +- d: + - e + - f diff --git a/testdata/yaml-test-suite/nested-flow-mapping-sequence-and-mappings/in.json b/testdata/yaml-test-suite/nested-flow-mapping-sequence-and-mappings/in.json new file mode 100644 index 00000000..e0285487 --- /dev/null +++ b/testdata/yaml-test-suite/nested-flow-mapping-sequence-and-mappings/in.json @@ -0,0 +1,10 @@ +{ + "top1": [ + "item1", + { + "key2": "value2" + }, + "item3" + ], + "top2": "value2" +} diff --git a/testdata/yaml-test-suite/nested-flow-mapping-sequence-and-mappings/in.yaml b/testdata/yaml-test-suite/nested-flow-mapping-sequence-and-mappings/in.yaml new file mode 100644 index 00000000..1add8f86 --- /dev/null +++ b/testdata/yaml-test-suite/nested-flow-mapping-sequence-and-mappings/in.yaml @@ -0,0 +1,2 @@ +--- +{ top1: [item1, {key2: value2}, item3], top2: value2 } diff --git a/testdata/yaml-test-suite/nested-flow-mapping-sequence-and-mappings/out.yaml b/testdata/yaml-test-suite/nested-flow-mapping-sequence-and-mappings/out.yaml new file mode 100644 index 00000000..bce9c00f --- /dev/null +++ b/testdata/yaml-test-suite/nested-flow-mapping-sequence-and-mappings/out.yaml @@ -0,0 +1,6 @@ +--- +top1: +- item1 +- key2: value2 +- item3 +top2: value2 diff --git a/testdata/yaml-test-suite/nested-implicit-complex-keys/in.yaml b/testdata/yaml-test-suite/nested-implicit-complex-keys/in.yaml new file mode 100644 index 00000000..3f4aabe5 --- /dev/null +++ b/testdata/yaml-test-suite/nested-implicit-complex-keys/in.yaml @@ -0,0 +1,4 @@ +--- +[ + [ a, [ [[b,c]]: d, e]]: 23 +] diff --git a/testdata/yaml-test-suite/nested-implicit-complex-keys/out.yaml b/testdata/yaml-test-suite/nested-implicit-complex-keys/out.yaml new file mode 100644 index 00000000..7c81aa9d --- /dev/null +++ b/testdata/yaml-test-suite/nested-implicit-complex-keys/out.yaml @@ -0,0 +1,7 @@ +--- +- ? - a + - - ? - - b + - c + : d + - e + : 23 diff --git a/testdata/yaml-test-suite/nested-top-level-flow-mapping/in.json b/testdata/yaml-test-suite/nested-top-level-flow-mapping/in.json new file mode 100644 index 00000000..69b81339 --- /dev/null +++ b/testdata/yaml-test-suite/nested-top-level-flow-mapping/in.json @@ -0,0 +1,9 @@ +{ + "key": [ + [ + [ + "value" + ] + ] + ] +} diff --git a/testdata/yaml-test-suite/nested-top-level-flow-mapping/in.yaml b/testdata/yaml-test-suite/nested-top-level-flow-mapping/in.yaml new file mode 100644 index 00000000..eb177c64 --- /dev/null +++ b/testdata/yaml-test-suite/nested-top-level-flow-mapping/in.yaml @@ -0,0 +1,4 @@ +{ key: [[[ + value + ]]] +} diff --git a/testdata/yaml-test-suite/nested-top-level-flow-mapping/out.yaml b/testdata/yaml-test-suite/nested-top-level-flow-mapping/out.yaml new file mode 100644 index 00000000..3fd0c69d --- /dev/null +++ b/testdata/yaml-test-suite/nested-top-level-flow-mapping/out.yaml @@ -0,0 +1,2 @@ +key: +- - - value diff --git a/testdata/yaml-test-suite/node-anchor-and-tag-on-seperate-lines/in.json b/testdata/yaml-test-suite/node-anchor-and-tag-on-seperate-lines/in.json new file mode 100644 index 00000000..1609d454 --- /dev/null +++ b/testdata/yaml-test-suite/node-anchor-and-tag-on-seperate-lines/in.json @@ -0,0 +1,5 @@ +{ + "key": { + "a": "b" + } +} diff --git a/testdata/yaml-test-suite/node-anchor-and-tag-on-seperate-lines/in.yaml b/testdata/yaml-test-suite/node-anchor-and-tag-on-seperate-lines/in.yaml new file mode 100644 index 00000000..35d556dd --- /dev/null +++ b/testdata/yaml-test-suite/node-anchor-and-tag-on-seperate-lines/in.yaml @@ -0,0 +1,3 @@ +key: &anchor + !!map + a: b diff --git a/testdata/yaml-test-suite/node-anchor-and-tag-on-seperate-lines/out.yaml b/testdata/yaml-test-suite/node-anchor-and-tag-on-seperate-lines/out.yaml new file mode 100644 index 00000000..34ed34fe --- /dev/null +++ b/testdata/yaml-test-suite/node-anchor-and-tag-on-seperate-lines/out.yaml @@ -0,0 +1,2 @@ +key: &anchor !!map + a: b diff --git a/testdata/yaml-test-suite/node-anchor-in-sequence/error b/testdata/yaml-test-suite/node-anchor-in-sequence/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/node-anchor-in-sequence/in.yaml b/testdata/yaml-test-suite/node-anchor-in-sequence/in.yaml new file mode 100644 index 00000000..d641a43c --- /dev/null +++ b/testdata/yaml-test-suite/node-anchor-in-sequence/in.yaml @@ -0,0 +1,3 @@ +- item1 +&node +- item2 diff --git a/testdata/yaml-test-suite/node-anchor-not-indented/error b/testdata/yaml-test-suite/node-anchor-not-indented/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/node-anchor-not-indented/in.yaml b/testdata/yaml-test-suite/node-anchor-not-indented/in.yaml new file mode 100644 index 00000000..2670feee --- /dev/null +++ b/testdata/yaml-test-suite/node-anchor-not-indented/in.yaml @@ -0,0 +1,3 @@ +key: &x +!!map + a: b diff --git a/testdata/yaml-test-suite/node-and-mapping-key-anchors-1-3/in.json b/testdata/yaml-test-suite/node-and-mapping-key-anchors-1-3/in.json new file mode 100644 index 00000000..7bc2e584 --- /dev/null +++ b/testdata/yaml-test-suite/node-and-mapping-key-anchors-1-3/in.json @@ -0,0 +1,19 @@ +{ + "top1": { + "key1": "one" + }, + "top2": { + "key2": "two" + }, + "top3": { + "key3": "three" + }, + "top4": { + "key4": "four" + }, + "top5": { + "key5": "five" + }, + "top6": "six", + "top7": "seven" +} diff --git a/testdata/yaml-test-suite/node-and-mapping-key-anchors-1-3/in.yaml b/testdata/yaml-test-suite/node-and-mapping-key-anchors-1-3/in.yaml new file mode 100644 index 00000000..6d66011e --- /dev/null +++ b/testdata/yaml-test-suite/node-and-mapping-key-anchors-1-3/in.yaml @@ -0,0 +1,15 @@ +--- +top1: &node1 + &k1 key1: one +top2: &node2 # comment + key2: two +top3: + &k3 key3: three +top4: &node4 + &k4 key4: four +top5: &node5 + key5: five +top6: &val6 + six +top7: + &val7 seven diff --git a/testdata/yaml-test-suite/node-and-mapping-key-anchors-1-3/out.yaml b/testdata/yaml-test-suite/node-and-mapping-key-anchors-1-3/out.yaml new file mode 100644 index 00000000..04c83021 --- /dev/null +++ b/testdata/yaml-test-suite/node-and-mapping-key-anchors-1-3/out.yaml @@ -0,0 +1,13 @@ +--- +top1: &node1 + &k1 key1: one +top2: &node2 + key2: two +top3: + &k3 key3: three +top4: &node4 + &k4 key4: four +top5: &node5 + key5: five +top6: &val6 six +top7: &val7 seven diff --git a/testdata/yaml-test-suite/node-and-mapping-key-anchors/in.json b/testdata/yaml-test-suite/node-and-mapping-key-anchors/in.json new file mode 100644 index 00000000..7bc2e584 --- /dev/null +++ b/testdata/yaml-test-suite/node-and-mapping-key-anchors/in.json @@ -0,0 +1,19 @@ +{ + "top1": { + "key1": "one" + }, + "top2": { + "key2": "two" + }, + "top3": { + "key3": "three" + }, + "top4": { + "key4": "four" + }, + "top5": { + "key5": "five" + }, + "top6": "six", + "top7": "seven" +} diff --git a/testdata/yaml-test-suite/node-and-mapping-key-anchors/in.yaml b/testdata/yaml-test-suite/node-and-mapping-key-anchors/in.yaml new file mode 100644 index 00000000..76660a8f --- /dev/null +++ b/testdata/yaml-test-suite/node-and-mapping-key-anchors/in.yaml @@ -0,0 +1,17 @@ +--- +top1: &node1 + &k1 key1: one +top2: &node2 # comment + key2: two +top3: + &k3 key3: three +top4: + &node4 + &k4 key4: four +top5: + &node5 + key5: five +top6: &val6 + six +top7: + &val7 seven diff --git a/testdata/yaml-test-suite/node-and-mapping-key-anchors/out.yaml b/testdata/yaml-test-suite/node-and-mapping-key-anchors/out.yaml new file mode 100644 index 00000000..04c83021 --- /dev/null +++ b/testdata/yaml-test-suite/node-and-mapping-key-anchors/out.yaml @@ -0,0 +1,13 @@ +--- +top1: &node1 + &k1 key1: one +top2: &node2 + key2: two +top3: + &k3 key3: three +top4: &node4 + &k4 key4: four +top5: &node5 + key5: five +top6: &val6 six +top7: &val7 seven diff --git a/testdata/yaml-test-suite/non-specific-tags-on-scalars/in.json b/testdata/yaml-test-suite/non-specific-tags-on-scalars/in.json new file mode 100644 index 00000000..2f701b1d --- /dev/null +++ b/testdata/yaml-test-suite/non-specific-tags-on-scalars/in.json @@ -0,0 +1,7 @@ +[ + "plain", + "double quoted", + "single quoted", + "block\n", + "plain again" +] diff --git a/testdata/yaml-test-suite/non-specific-tags-on-scalars/in.yaml b/testdata/yaml-test-suite/non-specific-tags-on-scalars/in.yaml new file mode 100644 index 00000000..81acc216 --- /dev/null +++ b/testdata/yaml-test-suite/non-specific-tags-on-scalars/in.yaml @@ -0,0 +1,6 @@ +- plain +- "double quoted" +- 'single quoted' +- > + block +- plain again diff --git a/testdata/yaml-test-suite/plain-dashes-in-flow-sequence/error b/testdata/yaml-test-suite/plain-dashes-in-flow-sequence/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/plain-dashes-in-flow-sequence/in.yaml b/testdata/yaml-test-suite/plain-dashes-in-flow-sequence/in.yaml new file mode 100644 index 00000000..2af57e7e --- /dev/null +++ b/testdata/yaml-test-suite/plain-dashes-in-flow-sequence/in.yaml @@ -0,0 +1,2 @@ +--- +- [-, -] diff --git a/testdata/yaml-test-suite/plain-mapping-key-ending-with-colon/in.json b/testdata/yaml-test-suite/plain-mapping-key-ending-with-colon/in.json new file mode 100644 index 00000000..64ee5f25 --- /dev/null +++ b/testdata/yaml-test-suite/plain-mapping-key-ending-with-colon/in.json @@ -0,0 +1,3 @@ +{ + "key ends with two colons::": "value" +} diff --git a/testdata/yaml-test-suite/plain-mapping-key-ending-with-colon/in.yaml b/testdata/yaml-test-suite/plain-mapping-key-ending-with-colon/in.yaml new file mode 100644 index 00000000..79d518dd --- /dev/null +++ b/testdata/yaml-test-suite/plain-mapping-key-ending-with-colon/in.yaml @@ -0,0 +1,2 @@ +--- +key ends with two colons::: value diff --git a/testdata/yaml-test-suite/plain-mapping-key-ending-with-colon/out.yaml b/testdata/yaml-test-suite/plain-mapping-key-ending-with-colon/out.yaml new file mode 100644 index 00000000..e44b202a --- /dev/null +++ b/testdata/yaml-test-suite/plain-mapping-key-ending-with-colon/out.yaml @@ -0,0 +1,2 @@ +--- +'key ends with two colons::': value diff --git a/testdata/yaml-test-suite/plain-scalar-looking-like-key-comment-anchor-and-tag/in.json b/testdata/yaml-test-suite/plain-scalar-looking-like-key-comment-anchor-and-tag/in.json new file mode 100644 index 00000000..1c50067c --- /dev/null +++ b/testdata/yaml-test-suite/plain-scalar-looking-like-key-comment-anchor-and-tag/in.json @@ -0,0 +1 @@ +"k:#foo &a !t s" diff --git a/testdata/yaml-test-suite/plain-scalar-looking-like-key-comment-anchor-and-tag/in.yaml b/testdata/yaml-test-suite/plain-scalar-looking-like-key-comment-anchor-and-tag/in.yaml new file mode 100644 index 00000000..04a12406 --- /dev/null +++ b/testdata/yaml-test-suite/plain-scalar-looking-like-key-comment-anchor-and-tag/in.yaml @@ -0,0 +1,3 @@ +--- +k:#foo + &a !t s diff --git a/testdata/yaml-test-suite/plain-scalar-looking-like-key-comment-anchor-and-tag/out.yaml b/testdata/yaml-test-suite/plain-scalar-looking-like-key-comment-anchor-and-tag/out.yaml new file mode 100644 index 00000000..eb758738 --- /dev/null +++ b/testdata/yaml-test-suite/plain-scalar-looking-like-key-comment-anchor-and-tag/out.yaml @@ -0,0 +1 @@ +--- k:#foo &a !t s diff --git a/testdata/yaml-test-suite/plain-scalar-with-backslashes/in.json b/testdata/yaml-test-suite/plain-scalar-with-backslashes/in.json new file mode 100644 index 00000000..8391b932 --- /dev/null +++ b/testdata/yaml-test-suite/plain-scalar-with-backslashes/in.json @@ -0,0 +1 @@ +"plain\\value\\with\\backslashes" diff --git a/testdata/yaml-test-suite/plain-scalar-with-backslashes/in.yaml b/testdata/yaml-test-suite/plain-scalar-with-backslashes/in.yaml new file mode 100644 index 00000000..9a786b30 --- /dev/null +++ b/testdata/yaml-test-suite/plain-scalar-with-backslashes/in.yaml @@ -0,0 +1,2 @@ +--- +plain\value\with\backslashes diff --git a/testdata/yaml-test-suite/plain-scalar-with-backslashes/out.yaml b/testdata/yaml-test-suite/plain-scalar-with-backslashes/out.yaml new file mode 100644 index 00000000..637ad4bd --- /dev/null +++ b/testdata/yaml-test-suite/plain-scalar-with-backslashes/out.yaml @@ -0,0 +1 @@ +--- plain\value\with\backslashes diff --git a/testdata/yaml-test-suite/plain-url-in-flow-mapping/in.json b/testdata/yaml-test-suite/plain-url-in-flow-mapping/in.json new file mode 100644 index 00000000..7f2c93d1 --- /dev/null +++ b/testdata/yaml-test-suite/plain-url-in-flow-mapping/in.json @@ -0,0 +1,5 @@ +[ + { + "url": "http://example.org" + } +] diff --git a/testdata/yaml-test-suite/plain-url-in-flow-mapping/in.yaml b/testdata/yaml-test-suite/plain-url-in-flow-mapping/in.yaml new file mode 100644 index 00000000..fa95c05e --- /dev/null +++ b/testdata/yaml-test-suite/plain-url-in-flow-mapping/in.yaml @@ -0,0 +1 @@ +- { url: http://example.org } diff --git a/testdata/yaml-test-suite/plain-url-in-flow-mapping/out.yaml b/testdata/yaml-test-suite/plain-url-in-flow-mapping/out.yaml new file mode 100644 index 00000000..5c181d57 --- /dev/null +++ b/testdata/yaml-test-suite/plain-url-in-flow-mapping/out.yaml @@ -0,0 +1 @@ +- url: http://example.org diff --git a/testdata/yaml-test-suite/question-mark-at-start-of-flow-key/in.json b/testdata/yaml-test-suite/question-mark-at-start-of-flow-key/in.json new file mode 100644 index 00000000..5943efa1 --- /dev/null +++ b/testdata/yaml-test-suite/question-mark-at-start-of-flow-key/in.json @@ -0,0 +1,4 @@ +{ + "?foo" : "bar", + "bar" : 42 +} diff --git a/testdata/yaml-test-suite/question-mark-at-start-of-flow-key/in.yaml b/testdata/yaml-test-suite/question-mark-at-start-of-flow-key/in.yaml new file mode 100644 index 00000000..c1a9c380 --- /dev/null +++ b/testdata/yaml-test-suite/question-mark-at-start-of-flow-key/in.yaml @@ -0,0 +1,3 @@ +{ ?foo: bar, +bar: 42 +} diff --git a/testdata/yaml-test-suite/question-mark-at-start-of-flow-key/out.yaml b/testdata/yaml-test-suite/question-mark-at-start-of-flow-key/out.yaml new file mode 100644 index 00000000..6f0766c6 --- /dev/null +++ b/testdata/yaml-test-suite/question-mark-at-start-of-flow-key/out.yaml @@ -0,0 +1,3 @@ +--- +?foo: bar +bar: 42 diff --git a/testdata/yaml-test-suite/question-mark-edge-cases/00/in.yaml b/testdata/yaml-test-suite/question-mark-edge-cases/00/in.yaml new file mode 100644 index 00000000..82c9ffaf --- /dev/null +++ b/testdata/yaml-test-suite/question-mark-edge-cases/00/in.yaml @@ -0,0 +1 @@ +- ? : x diff --git a/testdata/yaml-test-suite/question-mark-edge-cases/00/out.yaml b/testdata/yaml-test-suite/question-mark-edge-cases/00/out.yaml new file mode 100644 index 00000000..969dbcea --- /dev/null +++ b/testdata/yaml-test-suite/question-mark-edge-cases/00/out.yaml @@ -0,0 +1,2 @@ +- ? : x + : diff --git a/testdata/yaml-test-suite/question-mark-edge-cases/01/in.yaml b/testdata/yaml-test-suite/question-mark-edge-cases/01/in.yaml new file mode 100644 index 00000000..a7862663 --- /dev/null +++ b/testdata/yaml-test-suite/question-mark-edge-cases/01/in.yaml @@ -0,0 +1 @@ +? []: x diff --git a/testdata/yaml-test-suite/question-mark-edge-cases/01/out.yaml b/testdata/yaml-test-suite/question-mark-edge-cases/01/out.yaml new file mode 100644 index 00000000..0b9cd808 --- /dev/null +++ b/testdata/yaml-test-suite/question-mark-edge-cases/01/out.yaml @@ -0,0 +1,2 @@ +? []: x +: diff --git a/testdata/yaml-test-suite/question-marks-in-scalars/in.json b/testdata/yaml-test-suite/question-marks-in-scalars/in.json new file mode 100644 index 00000000..eba7f7fe --- /dev/null +++ b/testdata/yaml-test-suite/question-marks-in-scalars/in.json @@ -0,0 +1,22 @@ +[ + "a?string", + "another ? string", + { + "key": "value?" + }, + [ + "a?string" + ], + [ + "another ? string" + ], + { + "key": "value?" + }, + { + "key": "value?" + }, + { + "key?": "value" + } +] diff --git a/testdata/yaml-test-suite/question-marks-in-scalars/in.yaml b/testdata/yaml-test-suite/question-marks-in-scalars/in.yaml new file mode 100644 index 00000000..c41e47c6 --- /dev/null +++ b/testdata/yaml-test-suite/question-marks-in-scalars/in.yaml @@ -0,0 +1,8 @@ +- a?string +- another ? string +- key: value? +- [a?string] +- [another ? string] +- {key: value? } +- {key: value?} +- {key?: value } diff --git a/testdata/yaml-test-suite/question-marks-in-scalars/out.yaml b/testdata/yaml-test-suite/question-marks-in-scalars/out.yaml new file mode 100644 index 00000000..4450bcab --- /dev/null +++ b/testdata/yaml-test-suite/question-marks-in-scalars/out.yaml @@ -0,0 +1,8 @@ +- a?string +- another ? string +- key: value? +- - a?string +- - another ? string +- key: value? +- key: value? +- key?: value diff --git a/testdata/yaml-test-suite/scalar-doc-with-in-content/00/in.json b/testdata/yaml-test-suite/scalar-doc-with-in-content/00/in.json new file mode 100644 index 00000000..ed697c13 --- /dev/null +++ b/testdata/yaml-test-suite/scalar-doc-with-in-content/00/in.json @@ -0,0 +1 @@ +"a ...x b" diff --git a/testdata/yaml-test-suite/scalar-doc-with-in-content/00/in.yaml b/testdata/yaml-test-suite/scalar-doc-with-in-content/00/in.yaml new file mode 100644 index 00000000..8f86a1bb --- /dev/null +++ b/testdata/yaml-test-suite/scalar-doc-with-in-content/00/in.yaml @@ -0,0 +1,3 @@ +--- "a +...x +b" diff --git a/testdata/yaml-test-suite/scalar-doc-with-in-content/00/out.yaml b/testdata/yaml-test-suite/scalar-doc-with-in-content/00/out.yaml new file mode 100644 index 00000000..4f5aba86 --- /dev/null +++ b/testdata/yaml-test-suite/scalar-doc-with-in-content/00/out.yaml @@ -0,0 +1 @@ +--- a ...x b diff --git a/testdata/yaml-test-suite/scalar-doc-with-in-content/01/error b/testdata/yaml-test-suite/scalar-doc-with-in-content/01/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/scalar-doc-with-in-content/01/in.json b/testdata/yaml-test-suite/scalar-doc-with-in-content/01/in.json new file mode 100644 index 00000000..ed697c13 --- /dev/null +++ b/testdata/yaml-test-suite/scalar-doc-with-in-content/01/in.json @@ -0,0 +1 @@ +"a ...x b" diff --git a/testdata/yaml-test-suite/scalar-doc-with-in-content/01/in.yaml b/testdata/yaml-test-suite/scalar-doc-with-in-content/01/in.yaml new file mode 100644 index 00000000..ed9388b8 --- /dev/null +++ b/testdata/yaml-test-suite/scalar-doc-with-in-content/01/in.yaml @@ -0,0 +1,3 @@ +--- "a +... x +b" diff --git a/testdata/yaml-test-suite/scalar-value-with-two-anchors/error b/testdata/yaml-test-suite/scalar-value-with-two-anchors/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/scalar-value-with-two-anchors/in.yaml b/testdata/yaml-test-suite/scalar-value-with-two-anchors/in.yaml new file mode 100644 index 00000000..9afb7695 --- /dev/null +++ b/testdata/yaml-test-suite/scalar-value-with-two-anchors/in.yaml @@ -0,0 +1,4 @@ +top1: &node1 + &k1 key1: val1 +top2: &node2 + &v2 val2 diff --git a/testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/00/in.json b/testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/00/in.json new file mode 100644 index 00000000..9959ccb0 --- /dev/null +++ b/testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/00/in.json @@ -0,0 +1,3 @@ +[ + ":x" +] diff --git a/testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/00/in.yaml b/testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/00/in.yaml new file mode 100644 index 00000000..7b8d05b1 --- /dev/null +++ b/testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/00/in.yaml @@ -0,0 +1 @@ +[:x] diff --git a/testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/00/out.yaml b/testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/00/out.yaml new file mode 100644 index 00000000..e0d67dfc --- /dev/null +++ b/testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/00/out.yaml @@ -0,0 +1 @@ +- :x diff --git a/testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/01/in.json b/testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/01/in.json new file mode 100644 index 00000000..8150f2cc --- /dev/null +++ b/testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/01/in.json @@ -0,0 +1,3 @@ +[ + "?x" +] diff --git a/testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/01/in.yaml b/testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/01/in.yaml new file mode 100644 index 00000000..d52c9316 --- /dev/null +++ b/testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/01/in.yaml @@ -0,0 +1 @@ +[?x] diff --git a/testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/01/out.yaml b/testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/01/out.yaml new file mode 100644 index 00000000..d41b73c7 --- /dev/null +++ b/testdata/yaml-test-suite/scalars-in-flow-start-with-syntax-char/01/out.yaml @@ -0,0 +1 @@ +- ?x diff --git a/testdata/yaml-test-suite/scalars-on-line/in.json b/testdata/yaml-test-suite/scalars-on-line/in.json new file mode 100644 index 00000000..19747c72 --- /dev/null +++ b/testdata/yaml-test-suite/scalars-on-line/in.json @@ -0,0 +1,2 @@ +"quoted string" +"foo" diff --git a/testdata/yaml-test-suite/scalars-on-line/in.yaml b/testdata/yaml-test-suite/scalars-on-line/in.yaml new file mode 100644 index 00000000..5cbbe234 --- /dev/null +++ b/testdata/yaml-test-suite/scalars-on-line/in.yaml @@ -0,0 +1,3 @@ +--- "quoted +string" +--- &node foo diff --git a/testdata/yaml-test-suite/scalars-on-line/out.yaml b/testdata/yaml-test-suite/scalars-on-line/out.yaml new file mode 100644 index 00000000..e69460ff --- /dev/null +++ b/testdata/yaml-test-suite/scalars-on-line/out.yaml @@ -0,0 +1,3 @@ +--- "quoted string" +--- &node foo +... diff --git a/testdata/yaml-test-suite/sequence-entry-that-looks-like-two-with-wrong-indentation/in.json b/testdata/yaml-test-suite/sequence-entry-that-looks-like-two-with-wrong-indentation/in.json new file mode 100644 index 00000000..ea0a6437 --- /dev/null +++ b/testdata/yaml-test-suite/sequence-entry-that-looks-like-two-with-wrong-indentation/in.json @@ -0,0 +1,3 @@ +[ + "single multiline - sequence entry" +] diff --git a/testdata/yaml-test-suite/sequence-entry-that-looks-like-two-with-wrong-indentation/in.yaml b/testdata/yaml-test-suite/sequence-entry-that-looks-like-two-with-wrong-indentation/in.yaml new file mode 100644 index 00000000..abf6cecb --- /dev/null +++ b/testdata/yaml-test-suite/sequence-entry-that-looks-like-two-with-wrong-indentation/in.yaml @@ -0,0 +1,2 @@ +- single multiline + - sequence entry diff --git a/testdata/yaml-test-suite/sequence-entry-that-looks-like-two-with-wrong-indentation/out.yaml b/testdata/yaml-test-suite/sequence-entry-that-looks-like-two-with-wrong-indentation/out.yaml new file mode 100644 index 00000000..ed3a7989 --- /dev/null +++ b/testdata/yaml-test-suite/sequence-entry-that-looks-like-two-with-wrong-indentation/out.yaml @@ -0,0 +1 @@ +- single multiline - sequence entry diff --git a/testdata/yaml-test-suite/sequence-indent/in.json b/testdata/yaml-test-suite/sequence-indent/in.json new file mode 100644 index 00000000..ab6d5e32 --- /dev/null +++ b/testdata/yaml-test-suite/sequence-indent/in.json @@ -0,0 +1,8 @@ +{ + "foo": [ + 42 + ], + "bar": [ + 44 + ] +} diff --git a/testdata/yaml-test-suite/sequence-indent/in.yaml b/testdata/yaml-test-suite/sequence-indent/in.yaml new file mode 100644 index 00000000..5896eef3 --- /dev/null +++ b/testdata/yaml-test-suite/sequence-indent/in.yaml @@ -0,0 +1,4 @@ +foo: +- 42 +bar: + - 44 diff --git a/testdata/yaml-test-suite/sequence-indent/out.yaml b/testdata/yaml-test-suite/sequence-indent/out.yaml new file mode 100644 index 00000000..e493a670 --- /dev/null +++ b/testdata/yaml-test-suite/sequence-indent/out.yaml @@ -0,0 +1,4 @@ +foo: +- 42 +bar: +- 44 diff --git a/testdata/yaml-test-suite/sequence-on-same-line-as-mapping-key/error b/testdata/yaml-test-suite/sequence-on-same-line-as-mapping-key/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/sequence-on-same-line-as-mapping-key/in.yaml b/testdata/yaml-test-suite/sequence-on-same-line-as-mapping-key/in.yaml new file mode 100644 index 00000000..fa966bdd --- /dev/null +++ b/testdata/yaml-test-suite/sequence-on-same-line-as-mapping-key/in.yaml @@ -0,0 +1,2 @@ +key: - a + - b diff --git a/testdata/yaml-test-suite/sequence-with-same-indentation-as-parent-mapping/in.json b/testdata/yaml-test-suite/sequence-with-same-indentation-as-parent-mapping/in.json new file mode 100644 index 00000000..d8d5d7e9 --- /dev/null +++ b/testdata/yaml-test-suite/sequence-with-same-indentation-as-parent-mapping/in.json @@ -0,0 +1,7 @@ +{ + "one": [ + 2, + 3 + ], + "four": 5 +} diff --git a/testdata/yaml-test-suite/sequence-with-same-indentation-as-parent-mapping/in.yaml b/testdata/yaml-test-suite/sequence-with-same-indentation-as-parent-mapping/in.yaml new file mode 100644 index 00000000..80eda203 --- /dev/null +++ b/testdata/yaml-test-suite/sequence-with-same-indentation-as-parent-mapping/in.yaml @@ -0,0 +1,4 @@ +one: +- 2 +- 3 +four: 5 diff --git a/testdata/yaml-test-suite/simple-mapping-indent/in.json b/testdata/yaml-test-suite/simple-mapping-indent/in.json new file mode 100644 index 00000000..faa9156a --- /dev/null +++ b/testdata/yaml-test-suite/simple-mapping-indent/in.json @@ -0,0 +1,5 @@ +{ + "foo": { + "bar": "baz" + } +} diff --git a/testdata/yaml-test-suite/simple-mapping-indent/in.yaml b/testdata/yaml-test-suite/simple-mapping-indent/in.yaml new file mode 100644 index 00000000..4ee8d9db --- /dev/null +++ b/testdata/yaml-test-suite/simple-mapping-indent/in.yaml @@ -0,0 +1,2 @@ +foo: + bar: baz diff --git a/testdata/yaml-test-suite/single-block-sequence-with-anchor-and-explicit-document-start/in.json b/testdata/yaml-test-suite/single-block-sequence-with-anchor-and-explicit-document-start/in.json new file mode 100644 index 00000000..0ede90fb --- /dev/null +++ b/testdata/yaml-test-suite/single-block-sequence-with-anchor-and-explicit-document-start/in.json @@ -0,0 +1,3 @@ +[ + "a" +] diff --git a/testdata/yaml-test-suite/single-block-sequence-with-anchor-and-explicit-document-start/in.yaml b/testdata/yaml-test-suite/single-block-sequence-with-anchor-and-explicit-document-start/in.yaml new file mode 100644 index 00000000..e90e1c7a --- /dev/null +++ b/testdata/yaml-test-suite/single-block-sequence-with-anchor-and-explicit-document-start/in.yaml @@ -0,0 +1,2 @@ +--- &sequence +- a diff --git a/testdata/yaml-test-suite/single-block-sequence-with-anchor-and-explicit-document-start/out.yaml b/testdata/yaml-test-suite/single-block-sequence-with-anchor-and-explicit-document-start/out.yaml new file mode 100644 index 00000000..e90e1c7a --- /dev/null +++ b/testdata/yaml-test-suite/single-block-sequence-with-anchor-and-explicit-document-start/out.yaml @@ -0,0 +1,2 @@ +--- &sequence +- a diff --git a/testdata/yaml-test-suite/single-block-sequence-with-anchor/in.json b/testdata/yaml-test-suite/single-block-sequence-with-anchor/in.json new file mode 100644 index 00000000..0ede90fb --- /dev/null +++ b/testdata/yaml-test-suite/single-block-sequence-with-anchor/in.json @@ -0,0 +1,3 @@ +[ + "a" +] diff --git a/testdata/yaml-test-suite/single-block-sequence-with-anchor/in.yaml b/testdata/yaml-test-suite/single-block-sequence-with-anchor/in.yaml new file mode 100644 index 00000000..bc2204c6 --- /dev/null +++ b/testdata/yaml-test-suite/single-block-sequence-with-anchor/in.yaml @@ -0,0 +1,2 @@ +&sequence +- a diff --git a/testdata/yaml-test-suite/single-block-sequence-with-anchor/out.yaml b/testdata/yaml-test-suite/single-block-sequence-with-anchor/out.yaml new file mode 100644 index 00000000..bc2204c6 --- /dev/null +++ b/testdata/yaml-test-suite/single-block-sequence-with-anchor/out.yaml @@ -0,0 +1,2 @@ +&sequence +- a diff --git a/testdata/yaml-test-suite/single-character-streams/00/in.json b/testdata/yaml-test-suite/single-character-streams/00/in.json new file mode 100644 index 00000000..62864b31 --- /dev/null +++ b/testdata/yaml-test-suite/single-character-streams/00/in.json @@ -0,0 +1 @@ +[null] diff --git a/testdata/yaml-test-suite/single-character-streams/00/in.yaml b/testdata/yaml-test-suite/single-character-streams/00/in.yaml new file mode 100644 index 00000000..3cf20d57 --- /dev/null +++ b/testdata/yaml-test-suite/single-character-streams/00/in.yaml @@ -0,0 +1 @@ +- \ No newline at end of file diff --git a/testdata/yaml-test-suite/single-character-streams/00/out.yaml b/testdata/yaml-test-suite/single-character-streams/00/out.yaml new file mode 100644 index 00000000..39cdd0de --- /dev/null +++ b/testdata/yaml-test-suite/single-character-streams/00/out.yaml @@ -0,0 +1 @@ +- diff --git a/testdata/yaml-test-suite/single-character-streams/01/in.yaml b/testdata/yaml-test-suite/single-character-streams/01/in.yaml new file mode 100644 index 00000000..22ded55a --- /dev/null +++ b/testdata/yaml-test-suite/single-character-streams/01/in.yaml @@ -0,0 +1 @@ +: \ No newline at end of file diff --git a/testdata/yaml-test-suite/single-character-streams/01/out.yaml b/testdata/yaml-test-suite/single-character-streams/01/out.yaml new file mode 100644 index 00000000..397db75f --- /dev/null +++ b/testdata/yaml-test-suite/single-character-streams/01/out.yaml @@ -0,0 +1 @@ +: diff --git a/testdata/yaml-test-suite/single-entry-block-sequence/in.json b/testdata/yaml-test-suite/single-entry-block-sequence/in.json new file mode 100644 index 00000000..de140ba3 --- /dev/null +++ b/testdata/yaml-test-suite/single-entry-block-sequence/in.json @@ -0,0 +1,3 @@ +[ + "foo" +] diff --git a/testdata/yaml-test-suite/single-entry-block-sequence/in.yaml b/testdata/yaml-test-suite/single-entry-block-sequence/in.yaml new file mode 100644 index 00000000..a4b65cdd --- /dev/null +++ b/testdata/yaml-test-suite/single-entry-block-sequence/in.yaml @@ -0,0 +1 @@ +- foo diff --git a/testdata/yaml-test-suite/single-pair-block-mapping/in.json b/testdata/yaml-test-suite/single-pair-block-mapping/in.json new file mode 100644 index 00000000..c8c4105e --- /dev/null +++ b/testdata/yaml-test-suite/single-pair-block-mapping/in.json @@ -0,0 +1,3 @@ +{ + "foo": "bar" +} diff --git a/testdata/yaml-test-suite/single-pair-block-mapping/in.yaml b/testdata/yaml-test-suite/single-pair-block-mapping/in.yaml new file mode 100644 index 00000000..20e9ff3f --- /dev/null +++ b/testdata/yaml-test-suite/single-pair-block-mapping/in.yaml @@ -0,0 +1 @@ +foo: bar diff --git a/testdata/yaml-test-suite/single-pair-implicit-entries/in.yaml b/testdata/yaml-test-suite/single-pair-implicit-entries/in.yaml new file mode 100644 index 00000000..b9fe5e11 --- /dev/null +++ b/testdata/yaml-test-suite/single-pair-implicit-entries/in.yaml @@ -0,0 +1,3 @@ +- [ YAML : separate ] +- [ "JSON like":adjacent ] +- [ {JSON: like}:adjacent ] diff --git a/testdata/yaml-test-suite/single-pair-implicit-entries/out.yaml b/testdata/yaml-test-suite/single-pair-implicit-entries/out.yaml new file mode 100644 index 00000000..1c3df8c8 --- /dev/null +++ b/testdata/yaml-test-suite/single-pair-implicit-entries/out.yaml @@ -0,0 +1,4 @@ +- - YAML: separate +- - "JSON like": adjacent +- - ? JSON: like + : adjacent diff --git a/testdata/yaml-test-suite/spec-example-2-1-sequence-of-scalars/in.json b/testdata/yaml-test-suite/spec-example-2-1-sequence-of-scalars/in.json new file mode 100644 index 00000000..5f8dd7de --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-1-sequence-of-scalars/in.json @@ -0,0 +1,5 @@ +[ + "Mark McGwire", + "Sammy Sosa", + "Ken Griffey" +] diff --git a/testdata/yaml-test-suite/spec-example-2-1-sequence-of-scalars/in.yaml b/testdata/yaml-test-suite/spec-example-2-1-sequence-of-scalars/in.yaml new file mode 100644 index 00000000..d12e6711 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-1-sequence-of-scalars/in.yaml @@ -0,0 +1,3 @@ +- Mark McGwire +- Sammy Sosa +- Ken Griffey diff --git a/testdata/yaml-test-suite/spec-example-2-1-sequence-of-scalars/lex.token b/testdata/yaml-test-suite/spec-example-2-1-sequence-of-scalars/lex.token new file mode 100644 index 00000000..90490351 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-1-sequence-of-scalars/lex.token @@ -0,0 +1,8 @@ +SEQ-MARK 0 1 1 1 +WS-SPACE 1 1 1 2 +TEXT-VAL 2 12 1 3 :Mark McGwire +WS-NEWLN 14 1 1 15 +SEQ-MARK 15 1 2 1 +WS-SPACE 1 1 1 2 +TEXT-VAL 2 12 1 3 :Sammy Sosa +WS-NEWLN 14 1 1 15 diff --git a/testdata/yaml-test-suite/spec-example-2-10-node-for-sammy-sosa-appears-twice-in-this-document/in.json b/testdata/yaml-test-suite/spec-example-2-10-node-for-sammy-sosa-appears-twice-in-this-document/in.json new file mode 100644 index 00000000..d32dc2fb --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-10-node-for-sammy-sosa-appears-twice-in-this-document/in.json @@ -0,0 +1,10 @@ +{ + "hr": [ + "Mark McGwire", + "Sammy Sosa" + ], + "rbi": [ + "Sammy Sosa", + "Ken Griffey" + ] +} diff --git a/testdata/yaml-test-suite/spec-example-2-10-node-for-sammy-sosa-appears-twice-in-this-document/in.yaml b/testdata/yaml-test-suite/spec-example-2-10-node-for-sammy-sosa-appears-twice-in-this-document/in.yaml new file mode 100644 index 00000000..61808f67 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-10-node-for-sammy-sosa-appears-twice-in-this-document/in.yaml @@ -0,0 +1,8 @@ +--- +hr: + - Mark McGwire + # Following node labeled SS + - &SS Sammy Sosa +rbi: + - *SS # Subsequent occurrence + - Ken Griffey diff --git a/testdata/yaml-test-suite/spec-example-2-10-node-for-sammy-sosa-appears-twice-in-this-document/out.yaml b/testdata/yaml-test-suite/spec-example-2-10-node-for-sammy-sosa-appears-twice-in-this-document/out.yaml new file mode 100644 index 00000000..625c4af9 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-10-node-for-sammy-sosa-appears-twice-in-this-document/out.yaml @@ -0,0 +1,7 @@ +--- +hr: +- Mark McGwire +- &SS Sammy Sosa +rbi: +- *SS +- Ken Griffey diff --git a/testdata/yaml-test-suite/spec-example-2-11-mapping-between-sequences/in.yaml b/testdata/yaml-test-suite/spec-example-2-11-mapping-between-sequences/in.yaml new file mode 100644 index 00000000..9123ce21 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-11-mapping-between-sequences/in.yaml @@ -0,0 +1,9 @@ +? - Detroit Tigers + - Chicago cubs +: + - 2001-07-23 + +? [ New York Yankees, + Atlanta Braves ] +: [ 2001-07-02, 2001-08-12, + 2001-08-14 ] diff --git a/testdata/yaml-test-suite/spec-example-2-11-mapping-between-sequences/out.yaml b/testdata/yaml-test-suite/spec-example-2-11-mapping-between-sequences/out.yaml new file mode 100644 index 00000000..c2329301 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-11-mapping-between-sequences/out.yaml @@ -0,0 +1,8 @@ +? - Detroit Tigers + - Chicago cubs +: - 2001-07-23 +? - New York Yankees + - Atlanta Braves +: - 2001-07-02 + - 2001-08-12 + - 2001-08-14 diff --git a/testdata/yaml-test-suite/spec-example-2-12-compact-nested-mapping/in.json b/testdata/yaml-test-suite/spec-example-2-12-compact-nested-mapping/in.json new file mode 100644 index 00000000..f9321598 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-12-compact-nested-mapping/in.json @@ -0,0 +1,14 @@ +[ + { + "item": "Super Hoop", + "quantity": 1 + }, + { + "item": "Basketball", + "quantity": 4 + }, + { + "item": "Big Shoes", + "quantity": 1 + } +] diff --git a/testdata/yaml-test-suite/spec-example-2-12-compact-nested-mapping/in.yaml b/testdata/yaml-test-suite/spec-example-2-12-compact-nested-mapping/in.yaml new file mode 100644 index 00000000..63a8ed7e --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-12-compact-nested-mapping/in.yaml @@ -0,0 +1,8 @@ +--- +# Products purchased +- item : Super Hoop + quantity: 1 +- item : Basketball + quantity: 4 +- item : Big Shoes + quantity: 1 diff --git a/testdata/yaml-test-suite/spec-example-2-12-compact-nested-mapping/out.yaml b/testdata/yaml-test-suite/spec-example-2-12-compact-nested-mapping/out.yaml new file mode 100644 index 00000000..c37c096e --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-12-compact-nested-mapping/out.yaml @@ -0,0 +1,7 @@ +--- +- item: Super Hoop + quantity: 1 +- item: Basketball + quantity: 4 +- item: Big Shoes + quantity: 1 diff --git a/testdata/yaml-test-suite/spec-example-2-13-in-literals-newlines-are-preserved/in.json b/testdata/yaml-test-suite/spec-example-2-13-in-literals-newlines-are-preserved/in.json new file mode 100644 index 00000000..6f981a5a --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-13-in-literals-newlines-are-preserved/in.json @@ -0,0 +1 @@ +"\\//||\\/||\n// || ||__\n" diff --git a/testdata/yaml-test-suite/spec-example-2-13-in-literals-newlines-are-preserved/in.yaml b/testdata/yaml-test-suite/spec-example-2-13-in-literals-newlines-are-preserved/in.yaml new file mode 100644 index 00000000..13fb6560 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-13-in-literals-newlines-are-preserved/in.yaml @@ -0,0 +1,4 @@ +# ASCII Art +--- | + \//||\/|| + // || ||__ diff --git a/testdata/yaml-test-suite/spec-example-2-13-in-literals-newlines-are-preserved/out.yaml b/testdata/yaml-test-suite/spec-example-2-13-in-literals-newlines-are-preserved/out.yaml new file mode 100644 index 00000000..84467bc0 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-13-in-literals-newlines-are-preserved/out.yaml @@ -0,0 +1,3 @@ +--- | + \//||\/|| + // || ||__ diff --git a/testdata/yaml-test-suite/spec-example-2-14-in-the-folded-scalars-newlines-become-spaces/in.json b/testdata/yaml-test-suite/spec-example-2-14-in-the-folded-scalars-newlines-become-spaces/in.json new file mode 100644 index 00000000..f427bc2f --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-14-in-the-folded-scalars-newlines-become-spaces/in.json @@ -0,0 +1 @@ +"Mark McGwire's year was crippled by a knee injury.\n" diff --git a/testdata/yaml-test-suite/spec-example-2-14-in-the-folded-scalars-newlines-become-spaces/in.yaml b/testdata/yaml-test-suite/spec-example-2-14-in-the-folded-scalars-newlines-become-spaces/in.yaml new file mode 100644 index 00000000..fb4ed4a3 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-14-in-the-folded-scalars-newlines-become-spaces/in.yaml @@ -0,0 +1,4 @@ +--- > + Mark McGwire's + year was crippled + by a knee injury. diff --git a/testdata/yaml-test-suite/spec-example-2-14-in-the-folded-scalars-newlines-become-spaces/out.yaml b/testdata/yaml-test-suite/spec-example-2-14-in-the-folded-scalars-newlines-become-spaces/out.yaml new file mode 100644 index 00000000..0d5be77a --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-14-in-the-folded-scalars-newlines-become-spaces/out.yaml @@ -0,0 +1,2 @@ +--- > + Mark McGwire's year was crippled by a knee injury. diff --git a/testdata/yaml-test-suite/spec-example-2-15-folded-newlines-are-preserved-for-more-indented-and-blank-lines/in.json b/testdata/yaml-test-suite/spec-example-2-15-folded-newlines-are-preserved-for-more-indented-and-blank-lines/in.json new file mode 100644 index 00000000..d61c4293 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-15-folded-newlines-are-preserved-for-more-indented-and-blank-lines/in.json @@ -0,0 +1 @@ +"Sammy Sosa completed another fine season with great stats.\n\n 63 Home Runs\n 0.288 Batting Average\n\nWhat a year!\n" diff --git a/testdata/yaml-test-suite/spec-example-2-15-folded-newlines-are-preserved-for-more-indented-and-blank-lines/in.yaml b/testdata/yaml-test-suite/spec-example-2-15-folded-newlines-are-preserved-for-more-indented-and-blank-lines/in.yaml new file mode 100644 index 00000000..80b89a6d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-15-folded-newlines-are-preserved-for-more-indented-and-blank-lines/in.yaml @@ -0,0 +1,8 @@ +> + Sammy Sosa completed another + fine season with great stats. + + 63 Home Runs + 0.288 Batting Average + + What a year! diff --git a/testdata/yaml-test-suite/spec-example-2-15-folded-newlines-are-preserved-for-more-indented-and-blank-lines/out.yaml b/testdata/yaml-test-suite/spec-example-2-15-folded-newlines-are-preserved-for-more-indented-and-blank-lines/out.yaml new file mode 100644 index 00000000..c8d934fe --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-15-folded-newlines-are-preserved-for-more-indented-and-blank-lines/out.yaml @@ -0,0 +1,7 @@ +> + Sammy Sosa completed another fine season with great stats. + + 63 Home Runs + 0.288 Batting Average + + What a year! diff --git a/testdata/yaml-test-suite/spec-example-2-16-indentation-determines-scope/in.json b/testdata/yaml-test-suite/spec-example-2-16-indentation-determines-scope/in.json new file mode 100644 index 00000000..e1887b5a --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-16-indentation-determines-scope/in.json @@ -0,0 +1,5 @@ +{ + "name": "Mark McGwire", + "accomplishment": "Mark set a major league home run record in 1998.\n", + "stats": "65 Home Runs\n0.278 Batting Average\n" +} diff --git a/testdata/yaml-test-suite/spec-example-2-16-indentation-determines-scope/in.yaml b/testdata/yaml-test-suite/spec-example-2-16-indentation-determines-scope/in.yaml new file mode 100644 index 00000000..9f66d881 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-16-indentation-determines-scope/in.yaml @@ -0,0 +1,7 @@ +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/testdata/yaml-test-suite/spec-example-2-16-indentation-determines-scope/out.yaml b/testdata/yaml-test-suite/spec-example-2-16-indentation-determines-scope/out.yaml new file mode 100644 index 00000000..796d3bd5 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-16-indentation-determines-scope/out.yaml @@ -0,0 +1,6 @@ +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/testdata/yaml-test-suite/spec-example-2-17-quoted-scalars/in.json b/testdata/yaml-test-suite/spec-example-2-17-quoted-scalars/in.json new file mode 100644 index 00000000..9b2b73a5 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-17-quoted-scalars/in.json @@ -0,0 +1,8 @@ +{ + "unicode": "Sosa did fine.☺", + "control": "\b1998\t1999\t2000\n", + "hex esc": "\r\n is \r\n", + "single": "\"Howdy!\" he cried.", + "quoted": " # Not a 'comment'.", + "tie-fighter": "|\\-*-/|" +} diff --git a/testdata/yaml-test-suite/spec-example-2-17-quoted-scalars/in.yaml b/testdata/yaml-test-suite/spec-example-2-17-quoted-scalars/in.yaml new file mode 100644 index 00000000..c5c2a181 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-17-quoted-scalars/in.yaml @@ -0,0 +1,7 @@ +unicode: "Sosa did fine.\u263A" +control: "\b1998\t1999\t2000\n" +hex esc: "\x0d\x0a is \r\n" + +single: '"Howdy!" he cried.' +quoted: ' # Not a ''comment''.' +tie-fighter: '|\-*-/|' diff --git a/testdata/yaml-test-suite/spec-example-2-17-quoted-scalars/out.yaml b/testdata/yaml-test-suite/spec-example-2-17-quoted-scalars/out.yaml new file mode 100644 index 00000000..1948383a --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-17-quoted-scalars/out.yaml @@ -0,0 +1,6 @@ +unicode: "Sosa did fine.\u263A" +control: "\b1998\t1999\t2000\n" +hex esc: "\r\n is \r\n" +single: '"Howdy!" he cried.' +quoted: ' # Not a ''comment''.' +tie-fighter: '|\-*-/|' diff --git a/testdata/yaml-test-suite/spec-example-2-18-multi-line-flow-scalars/in.json b/testdata/yaml-test-suite/spec-example-2-18-multi-line-flow-scalars/in.json new file mode 100644 index 00000000..018e242e --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-18-multi-line-flow-scalars/in.json @@ -0,0 +1,4 @@ +{ + "plain": "This unquoted scalar spans many lines.", + "quoted": "So does this quoted scalar.\n" +} diff --git a/testdata/yaml-test-suite/spec-example-2-18-multi-line-flow-scalars/in.yaml b/testdata/yaml-test-suite/spec-example-2-18-multi-line-flow-scalars/in.yaml new file mode 100644 index 00000000..e0a8bfa9 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-18-multi-line-flow-scalars/in.yaml @@ -0,0 +1,6 @@ +plain: + This unquoted scalar + spans many lines. + +quoted: "So does this + quoted scalar.\n" diff --git a/testdata/yaml-test-suite/spec-example-2-18-multi-line-flow-scalars/out.yaml b/testdata/yaml-test-suite/spec-example-2-18-multi-line-flow-scalars/out.yaml new file mode 100644 index 00000000..434f2376 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-18-multi-line-flow-scalars/out.yaml @@ -0,0 +1,2 @@ +plain: This unquoted scalar spans many lines. +quoted: "So does this quoted scalar.\n" diff --git a/testdata/yaml-test-suite/spec-example-2-2-mapping-scalars-to-scalars/in.json b/testdata/yaml-test-suite/spec-example-2-2-mapping-scalars-to-scalars/in.json new file mode 100644 index 00000000..a32fbec5 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-2-mapping-scalars-to-scalars/in.json @@ -0,0 +1,5 @@ +{ + "hr": 65, + "avg": 0.278, + "rbi": 147 +} diff --git a/testdata/yaml-test-suite/spec-example-2-2-mapping-scalars-to-scalars/in.yaml b/testdata/yaml-test-suite/spec-example-2-2-mapping-scalars-to-scalars/in.yaml new file mode 100644 index 00000000..7b7ec948 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-2-mapping-scalars-to-scalars/in.yaml @@ -0,0 +1,3 @@ +hr: 65 # Home runs +avg: 0.278 # Batting average +rbi: 147 # Runs Batted In diff --git a/testdata/yaml-test-suite/spec-example-2-2-mapping-scalars-to-scalars/out.yaml b/testdata/yaml-test-suite/spec-example-2-2-mapping-scalars-to-scalars/out.yaml new file mode 100644 index 00000000..dc04ea11 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-2-mapping-scalars-to-scalars/out.yaml @@ -0,0 +1,3 @@ +hr: 65 +avg: 0.278 +rbi: 147 diff --git a/testdata/yaml-test-suite/spec-example-2-24-global-tags/in.json b/testdata/yaml-test-suite/spec-example-2-24-global-tags/in.json new file mode 100644 index 00000000..de484e09 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-24-global-tags/in.json @@ -0,0 +1,27 @@ +[ + { + "center": { + "x": 73, + "y": 129 + }, + "radius": 7 + }, + { + "start": { + "x": 73, + "y": 129 + }, + "finish": { + "x": 89, + "y": 102 + } + }, + { + "start": { + "x": 73, + "y": 129 + }, + "color": 16772795, + "text": "Pretty vector drawing." + } +] diff --git a/testdata/yaml-test-suite/spec-example-2-24-global-tags/in.yaml b/testdata/yaml-test-suite/spec-example-2-24-global-tags/in.yaml new file mode 100644 index 00000000..1180757d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-24-global-tags/in.yaml @@ -0,0 +1,14 @@ +%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/testdata/yaml-test-suite/spec-example-2-24-global-tags/out.yaml b/testdata/yaml-test-suite/spec-example-2-24-global-tags/out.yaml new file mode 100644 index 00000000..5d964b72 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-24-global-tags/out.yaml @@ -0,0 +1,15 @@ +--- ! +- ! + center: &ORIGIN + x: 73 + y: 129 + radius: 7 +- ! + start: *ORIGIN + finish: + x: 89 + y: 102 +- ! + start: *ORIGIN + color: 0xFFEEBB + text: Pretty vector drawing. diff --git a/testdata/yaml-test-suite/spec-example-2-25-unordered-sets/in.json b/testdata/yaml-test-suite/spec-example-2-25-unordered-sets/in.json new file mode 100644 index 00000000..88daa643 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-25-unordered-sets/in.json @@ -0,0 +1,5 @@ +{ + "Mark McGwire": null, + "Sammy Sosa": null, + "Ken Griff": null +} diff --git a/testdata/yaml-test-suite/spec-example-2-25-unordered-sets/in.yaml b/testdata/yaml-test-suite/spec-example-2-25-unordered-sets/in.yaml new file mode 100644 index 00000000..cf4943a2 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-25-unordered-sets/in.yaml @@ -0,0 +1,7 @@ +# Sets are represented as a +# Mapping where each key is +# associated with a null value +--- !!set +? Mark McGwire +? Sammy Sosa +? Ken Griff diff --git a/testdata/yaml-test-suite/spec-example-2-25-unordered-sets/out.yaml b/testdata/yaml-test-suite/spec-example-2-25-unordered-sets/out.yaml new file mode 100644 index 00000000..4add043a --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-25-unordered-sets/out.yaml @@ -0,0 +1,4 @@ +--- !!set +Mark McGwire: +Sammy Sosa: +Ken Griff: diff --git a/testdata/yaml-test-suite/spec-example-2-26-ordered-mappings/in.json b/testdata/yaml-test-suite/spec-example-2-26-ordered-mappings/in.json new file mode 100644 index 00000000..c5ae8a0a --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-26-ordered-mappings/in.json @@ -0,0 +1,11 @@ +[ + { + "Mark McGwire": 65 + }, + { + "Sammy Sosa": 63 + }, + { + "Ken Griffy": 58 + } +] diff --git a/testdata/yaml-test-suite/spec-example-2-26-ordered-mappings/in.yaml b/testdata/yaml-test-suite/spec-example-2-26-ordered-mappings/in.yaml new file mode 100644 index 00000000..25692f49 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-26-ordered-mappings/in.yaml @@ -0,0 +1,11 @@ +# The !!omap tag is one of the optional types +# introduced for YAML 1.1. In 1.2, it is not +# part of the standard tags and should not be +# enabled by default. +# 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/testdata/yaml-test-suite/spec-example-2-26-ordered-mappings/out.yaml b/testdata/yaml-test-suite/spec-example-2-26-ordered-mappings/out.yaml new file mode 100644 index 00000000..f4e881aa --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-26-ordered-mappings/out.yaml @@ -0,0 +1,4 @@ +--- !!omap +- Mark McGwire: 65 +- Sammy Sosa: 63 +- Ken Griffy: 58 diff --git a/testdata/yaml-test-suite/spec-example-2-27-invoice/in.json b/testdata/yaml-test-suite/spec-example-2-27-invoice/in.json new file mode 100644 index 00000000..a7101612 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-27-invoice/in.json @@ -0,0 +1,41 @@ +{ + "invoice": 34843, + "date": "2001-01-23", + "bill-to": { + "given": "Chris", + "family": "Dumars", + "address": { + "lines": "458 Walkman Dr.\nSuite #292\n", + "city": "Royal Oak", + "state": "MI", + "postal": 48046 + } + }, + "ship-to": { + "given": "Chris", + "family": "Dumars", + "address": { + "lines": "458 Walkman Dr.\nSuite #292\n", + "city": "Royal Oak", + "state": "MI", + "postal": 48046 + } + }, + "product": [ + { + "sku": "BL394D", + "quantity": 4, + "description": "Basketball", + "price": 450 + }, + { + "sku": "BL4438H", + "quantity": 1, + "description": "Super Hoop", + "price": 2392 + } + ], + "tax": 251.42, + "total": 4443.52, + "comments": "Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338." +} diff --git a/testdata/yaml-test-suite/spec-example-2-27-invoice/in.yaml b/testdata/yaml-test-suite/spec-example-2-27-invoice/in.yaml new file mode 100644 index 00000000..4625739d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-27-invoice/in.yaml @@ -0,0 +1,29 @@ +--- ! +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/testdata/yaml-test-suite/spec-example-2-27-invoice/out.yaml b/testdata/yaml-test-suite/spec-example-2-27-invoice/out.yaml new file mode 100644 index 00000000..1a876c9d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-27-invoice/out.yaml @@ -0,0 +1,26 @@ +--- ! +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/testdata/yaml-test-suite/spec-example-2-28-log-file/in.json b/testdata/yaml-test-suite/spec-example-2-28-log-file/in.json new file mode 100644 index 00000000..23314724 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-28-log-file/in.json @@ -0,0 +1,27 @@ +{ + "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\")\n" + }, + { + "file": "MoreClass.py", + "line": 58, + "code": "foo = bar" + } + ] +} diff --git a/testdata/yaml-test-suite/spec-example-2-28-log-file/in.yaml b/testdata/yaml-test-suite/spec-example-2-28-log-file/in.yaml new file mode 100644 index 00000000..a5c8dc85 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-28-log-file/in.yaml @@ -0,0 +1,26 @@ +--- +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/testdata/yaml-test-suite/spec-example-2-28-log-file/out.yaml b/testdata/yaml-test-suite/spec-example-2-28-log-file/out.yaml new file mode 100644 index 00000000..ba2e08b7 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-28-log-file/out.yaml @@ -0,0 +1,21 @@ +--- +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/testdata/yaml-test-suite/spec-example-2-3-mapping-scalars-to-sequences/in.json b/testdata/yaml-test-suite/spec-example-2-3-mapping-scalars-to-sequences/in.json new file mode 100644 index 00000000..7d19aafa --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-3-mapping-scalars-to-sequences/in.json @@ -0,0 +1,12 @@ +{ + "american": [ + "Boston Red Sox", + "Detroit Tigers", + "New York Yankees" + ], + "national": [ + "New York Mets", + "Chicago Cubs", + "Atlanta Braves" + ] +} diff --git a/testdata/yaml-test-suite/spec-example-2-3-mapping-scalars-to-sequences/in.yaml b/testdata/yaml-test-suite/spec-example-2-3-mapping-scalars-to-sequences/in.yaml new file mode 100644 index 00000000..656d628e --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-3-mapping-scalars-to-sequences/in.yaml @@ -0,0 +1,8 @@ +american: + - Boston Red Sox + - Detroit Tigers + - New York Yankees +national: + - New York Mets + - Chicago Cubs + - Atlanta Braves diff --git a/testdata/yaml-test-suite/spec-example-2-3-mapping-scalars-to-sequences/out.yaml b/testdata/yaml-test-suite/spec-example-2-3-mapping-scalars-to-sequences/out.yaml new file mode 100644 index 00000000..01883b9e --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-3-mapping-scalars-to-sequences/out.yaml @@ -0,0 +1,8 @@ +american: +- Boston Red Sox +- Detroit Tigers +- New York Yankees +national: +- New York Mets +- Chicago Cubs +- Atlanta Braves diff --git a/testdata/yaml-test-suite/spec-example-2-4-sequence-of-mappings/in.json b/testdata/yaml-test-suite/spec-example-2-4-sequence-of-mappings/in.json new file mode 100644 index 00000000..3d3b2d9e --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-4-sequence-of-mappings/in.json @@ -0,0 +1,12 @@ +[ + { + "name": "Mark McGwire", + "hr": 65, + "avg": 0.278 + }, + { + "name": "Sammy Sosa", + "hr": 63, + "avg": 0.288 + } +] diff --git a/testdata/yaml-test-suite/spec-example-2-4-sequence-of-mappings/in.yaml b/testdata/yaml-test-suite/spec-example-2-4-sequence-of-mappings/in.yaml new file mode 100644 index 00000000..430f6b3d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-4-sequence-of-mappings/in.yaml @@ -0,0 +1,8 @@ +- + name: Mark McGwire + hr: 65 + avg: 0.278 +- + name: Sammy Sosa + hr: 63 + avg: 0.288 diff --git a/testdata/yaml-test-suite/spec-example-2-4-sequence-of-mappings/out.yaml b/testdata/yaml-test-suite/spec-example-2-4-sequence-of-mappings/out.yaml new file mode 100644 index 00000000..f8c1a565 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-4-sequence-of-mappings/out.yaml @@ -0,0 +1,6 @@ +- name: Mark McGwire + hr: 65 + avg: 0.278 +- name: Sammy Sosa + hr: 63 + avg: 0.288 diff --git a/testdata/yaml-test-suite/spec-example-2-5-sequence-of-sequences/in.json b/testdata/yaml-test-suite/spec-example-2-5-sequence-of-sequences/in.json new file mode 100644 index 00000000..45d384ab --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-5-sequence-of-sequences/in.json @@ -0,0 +1,17 @@ +[ + [ + "name", + "hr", + "avg" + ], + [ + "Mark McGwire", + 65, + 0.278 + ], + [ + "Sammy Sosa", + 63, + 0.288 + ] +] diff --git a/testdata/yaml-test-suite/spec-example-2-5-sequence-of-sequences/in.yaml b/testdata/yaml-test-suite/spec-example-2-5-sequence-of-sequences/in.yaml new file mode 100644 index 00000000..cdd77706 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-5-sequence-of-sequences/in.yaml @@ -0,0 +1,3 @@ +- [name , hr, avg ] +- [Mark McGwire, 65, 0.278] +- [Sammy Sosa , 63, 0.288] diff --git a/testdata/yaml-test-suite/spec-example-2-5-sequence-of-sequences/out.yaml b/testdata/yaml-test-suite/spec-example-2-5-sequence-of-sequences/out.yaml new file mode 100644 index 00000000..69fd197d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-5-sequence-of-sequences/out.yaml @@ -0,0 +1,9 @@ +- - name + - hr + - avg +- - Mark McGwire + - 65 + - 0.278 +- - Sammy Sosa + - 63 + - 0.288 diff --git a/testdata/yaml-test-suite/spec-example-2-6-mapping-of-mappings/in.json b/testdata/yaml-test-suite/spec-example-2-6-mapping-of-mappings/in.json new file mode 100644 index 00000000..425e548d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-6-mapping-of-mappings/in.json @@ -0,0 +1,10 @@ +{ + "Mark McGwire": { + "hr": 65, + "avg": 0.278 + }, + "Sammy Sosa": { + "hr": 63, + "avg": 0.288 + } +} diff --git a/testdata/yaml-test-suite/spec-example-2-6-mapping-of-mappings/in.yaml b/testdata/yaml-test-suite/spec-example-2-6-mapping-of-mappings/in.yaml new file mode 100644 index 00000000..7a957b23 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-6-mapping-of-mappings/in.yaml @@ -0,0 +1,5 @@ +Mark McGwire: {hr: 65, avg: 0.278} +Sammy Sosa: { + hr: 63, + avg: 0.288 + } diff --git a/testdata/yaml-test-suite/spec-example-2-6-mapping-of-mappings/out.yaml b/testdata/yaml-test-suite/spec-example-2-6-mapping-of-mappings/out.yaml new file mode 100644 index 00000000..5ba24942 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-6-mapping-of-mappings/out.yaml @@ -0,0 +1,6 @@ +Mark McGwire: + hr: 65 + avg: 0.278 +Sammy Sosa: + hr: 63 + avg: 0.288 diff --git a/testdata/yaml-test-suite/spec-example-2-7-two-documents-in-a-stream/in.json b/testdata/yaml-test-suite/spec-example-2-7-two-documents-in-a-stream/in.json new file mode 100644 index 00000000..4a96ef4e --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-7-two-documents-in-a-stream/in.json @@ -0,0 +1,9 @@ +[ + "Mark McGwire", + "Sammy Sosa", + "Ken Griffey" +] +[ + "Chicago Cubs", + "St Louis Cardinals" +] diff --git a/testdata/yaml-test-suite/spec-example-2-7-two-documents-in-a-stream/in.yaml b/testdata/yaml-test-suite/spec-example-2-7-two-documents-in-a-stream/in.yaml new file mode 100644 index 00000000..bc711d54 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-7-two-documents-in-a-stream/in.yaml @@ -0,0 +1,10 @@ +# Ranking of 1998 home runs +--- +- Mark McGwire +- Sammy Sosa +- Ken Griffey + +# Team ranking +--- +- Chicago Cubs +- St Louis Cardinals diff --git a/testdata/yaml-test-suite/spec-example-2-7-two-documents-in-a-stream/out.yaml b/testdata/yaml-test-suite/spec-example-2-7-two-documents-in-a-stream/out.yaml new file mode 100644 index 00000000..5d9c3fad --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-7-two-documents-in-a-stream/out.yaml @@ -0,0 +1,7 @@ +--- +- Mark McGwire +- Sammy Sosa +- Ken Griffey +--- +- Chicago Cubs +- St Louis Cardinals diff --git a/testdata/yaml-test-suite/spec-example-2-8-play-by-play-feed-from-a-game/in.json b/testdata/yaml-test-suite/spec-example-2-8-play-by-play-feed-from-a-game/in.json new file mode 100644 index 00000000..7bc7eac2 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-8-play-by-play-feed-from-a-game/in.json @@ -0,0 +1,10 @@ +{ + "time": "20:03:20", + "player": "Sammy Sosa", + "action": "strike (miss)" +} +{ + "time": "20:03:47", + "player": "Sammy Sosa", + "action": "grand slam" +} diff --git a/testdata/yaml-test-suite/spec-example-2-8-play-by-play-feed-from-a-game/in.yaml b/testdata/yaml-test-suite/spec-example-2-8-play-by-play-feed-from-a-game/in.yaml new file mode 100644 index 00000000..05e102d8 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-8-play-by-play-feed-from-a-game/in.yaml @@ -0,0 +1,10 @@ +--- +time: 20:03:20 +player: Sammy Sosa +action: strike (miss) +... +--- +time: 20:03:47 +player: Sammy Sosa +action: grand slam +... diff --git a/testdata/yaml-test-suite/spec-example-2-9-single-document-with-two-comments/in.json b/testdata/yaml-test-suite/spec-example-2-9-single-document-with-two-comments/in.json new file mode 100644 index 00000000..d32dc2fb --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-9-single-document-with-two-comments/in.json @@ -0,0 +1,10 @@ +{ + "hr": [ + "Mark McGwire", + "Sammy Sosa" + ], + "rbi": [ + "Sammy Sosa", + "Ken Griffey" + ] +} diff --git a/testdata/yaml-test-suite/spec-example-2-9-single-document-with-two-comments/in.yaml b/testdata/yaml-test-suite/spec-example-2-9-single-document-with-two-comments/in.yaml new file mode 100644 index 00000000..e2641805 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-9-single-document-with-two-comments/in.yaml @@ -0,0 +1,8 @@ +--- +hr: # 1998 hr ranking + - Mark McGwire + - Sammy Sosa +rbi: + # 1998 rbi ranking + - Sammy Sosa + - Ken Griffey diff --git a/testdata/yaml-test-suite/spec-example-2-9-single-document-with-two-comments/out.yaml b/testdata/yaml-test-suite/spec-example-2-9-single-document-with-two-comments/out.yaml new file mode 100644 index 00000000..095a9e74 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-2-9-single-document-with-two-comments/out.yaml @@ -0,0 +1,7 @@ +--- +hr: +- Mark McGwire +- Sammy Sosa +rbi: +- Sammy Sosa +- Ken Griffey diff --git a/testdata/yaml-test-suite/spec-example-5-12-tabs-and-spaces/in.json b/testdata/yaml-test-suite/spec-example-5-12-tabs-and-spaces/in.json new file mode 100644 index 00000000..5072b48d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-12-tabs-and-spaces/in.json @@ -0,0 +1,4 @@ +{ + "quoted": "Quoted \t", + "block": "void main() {\n\tprintf(\"Hello, world!\\n\");\n}\n" +} diff --git a/testdata/yaml-test-suite/spec-example-5-12-tabs-and-spaces/in.yaml b/testdata/yaml-test-suite/spec-example-5-12-tabs-and-spaces/in.yaml new file mode 100644 index 00000000..af9a3217 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-12-tabs-and-spaces/in.yaml @@ -0,0 +1,6 @@ +# Tabs and spaces +quoted: "Quoted " +block: | + void main() { + printf("Hello, world!\n"); + } diff --git a/testdata/yaml-test-suite/spec-example-5-12-tabs-and-spaces/out.yaml b/testdata/yaml-test-suite/spec-example-5-12-tabs-and-spaces/out.yaml new file mode 100644 index 00000000..f93e9eec --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-12-tabs-and-spaces/out.yaml @@ -0,0 +1,5 @@ +quoted: "Quoted \t" +block: | + void main() { + printf("Hello, world!\n"); + } diff --git a/testdata/yaml-test-suite/spec-example-5-3-block-structure-indicators/in.json b/testdata/yaml-test-suite/spec-example-5-3-block-structure-indicators/in.json new file mode 100644 index 00000000..cecac0c4 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-3-block-structure-indicators/in.json @@ -0,0 +1,10 @@ +{ + "sequence": [ + "one", + "two" + ], + "mapping": { + "sky": "blue", + "sea": "green" + } +} diff --git a/testdata/yaml-test-suite/spec-example-5-3-block-structure-indicators/in.yaml b/testdata/yaml-test-suite/spec-example-5-3-block-structure-indicators/in.yaml new file mode 100644 index 00000000..608ea199 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-3-block-structure-indicators/in.yaml @@ -0,0 +1,7 @@ +sequence: +- one +- two +mapping: + ? sky + : blue + sea : green diff --git a/testdata/yaml-test-suite/spec-example-5-3-block-structure-indicators/out.yaml b/testdata/yaml-test-suite/spec-example-5-3-block-structure-indicators/out.yaml new file mode 100644 index 00000000..95a9880c --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-3-block-structure-indicators/out.yaml @@ -0,0 +1,6 @@ +sequence: +- one +- two +mapping: + sky: blue + sea: green diff --git a/testdata/yaml-test-suite/spec-example-5-4-flow-collection-indicators/in.json b/testdata/yaml-test-suite/spec-example-5-4-flow-collection-indicators/in.json new file mode 100644 index 00000000..cecac0c4 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-4-flow-collection-indicators/in.json @@ -0,0 +1,10 @@ +{ + "sequence": [ + "one", + "two" + ], + "mapping": { + "sky": "blue", + "sea": "green" + } +} diff --git a/testdata/yaml-test-suite/spec-example-5-4-flow-collection-indicators/in.yaml b/testdata/yaml-test-suite/spec-example-5-4-flow-collection-indicators/in.yaml new file mode 100644 index 00000000..df338477 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-4-flow-collection-indicators/in.yaml @@ -0,0 +1,2 @@ +sequence: [ one, two, ] +mapping: { sky: blue, sea: green } diff --git a/testdata/yaml-test-suite/spec-example-5-4-flow-collection-indicators/out.yaml b/testdata/yaml-test-suite/spec-example-5-4-flow-collection-indicators/out.yaml new file mode 100644 index 00000000..95a9880c --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-4-flow-collection-indicators/out.yaml @@ -0,0 +1,6 @@ +sequence: +- one +- two +mapping: + sky: blue + sea: green diff --git a/testdata/yaml-test-suite/spec-example-5-5-comment-indicator/in.json b/testdata/yaml-test-suite/spec-example-5-5-comment-indicator/in.json new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/spec-example-5-5-comment-indicator/in.yaml b/testdata/yaml-test-suite/spec-example-5-5-comment-indicator/in.yaml new file mode 100644 index 00000000..62524c0d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-5-comment-indicator/in.yaml @@ -0,0 +1 @@ +# Comment only. diff --git a/testdata/yaml-test-suite/spec-example-5-5-comment-indicator/out.yaml b/testdata/yaml-test-suite/spec-example-5-5-comment-indicator/out.yaml new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/spec-example-5-6-node-property-indicators/in.json b/testdata/yaml-test-suite/spec-example-5-6-node-property-indicators/in.json new file mode 100644 index 00000000..55f1478b --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-6-node-property-indicators/in.json @@ -0,0 +1,4 @@ +{ + "anchored": "value", + "alias": "value" +} diff --git a/testdata/yaml-test-suite/spec-example-5-6-node-property-indicators/in.yaml b/testdata/yaml-test-suite/spec-example-5-6-node-property-indicators/in.yaml new file mode 100644 index 00000000..7a1f9b30 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-6-node-property-indicators/in.yaml @@ -0,0 +1,2 @@ +anchored: !local &anchor value +alias: *anchor diff --git a/testdata/yaml-test-suite/spec-example-5-6-node-property-indicators/out.yaml b/testdata/yaml-test-suite/spec-example-5-6-node-property-indicators/out.yaml new file mode 100644 index 00000000..8864c5ca --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-6-node-property-indicators/out.yaml @@ -0,0 +1,2 @@ +anchored: &anchor !local value +alias: *anchor diff --git a/testdata/yaml-test-suite/spec-example-5-7-block-scalar-indicators/in.json b/testdata/yaml-test-suite/spec-example-5-7-block-scalar-indicators/in.json new file mode 100644 index 00000000..a150c178 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-7-block-scalar-indicators/in.json @@ -0,0 +1,4 @@ +{ + "literal": "some\ntext\n", + "folded": "some text\n" +} diff --git a/testdata/yaml-test-suite/spec-example-5-7-block-scalar-indicators/in.yaml b/testdata/yaml-test-suite/spec-example-5-7-block-scalar-indicators/in.yaml new file mode 100644 index 00000000..934726cb --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-7-block-scalar-indicators/in.yaml @@ -0,0 +1,6 @@ +literal: | + some + text +folded: > + some + text diff --git a/testdata/yaml-test-suite/spec-example-5-7-block-scalar-indicators/out.yaml b/testdata/yaml-test-suite/spec-example-5-7-block-scalar-indicators/out.yaml new file mode 100644 index 00000000..9a2f6133 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-7-block-scalar-indicators/out.yaml @@ -0,0 +1,5 @@ +literal: | + some + text +folded: > + some text diff --git a/testdata/yaml-test-suite/spec-example-5-8-quoted-scalar-indicators/in.json b/testdata/yaml-test-suite/spec-example-5-8-quoted-scalar-indicators/in.json new file mode 100644 index 00000000..4e274b0d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-8-quoted-scalar-indicators/in.json @@ -0,0 +1,4 @@ +{ + "single": "text", + "double": "text" +} diff --git a/testdata/yaml-test-suite/spec-example-5-8-quoted-scalar-indicators/in.yaml b/testdata/yaml-test-suite/spec-example-5-8-quoted-scalar-indicators/in.yaml new file mode 100644 index 00000000..04ebf691 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-8-quoted-scalar-indicators/in.yaml @@ -0,0 +1,2 @@ +single: 'text' +double: "text" diff --git a/testdata/yaml-test-suite/spec-example-5-9-directive-indicator/in.json b/testdata/yaml-test-suite/spec-example-5-9-directive-indicator/in.json new file mode 100644 index 00000000..8ee55adb --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-9-directive-indicator/in.json @@ -0,0 +1 @@ +"text" diff --git a/testdata/yaml-test-suite/spec-example-5-9-directive-indicator/in.yaml b/testdata/yaml-test-suite/spec-example-5-9-directive-indicator/in.yaml new file mode 100644 index 00000000..62204de2 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-9-directive-indicator/in.yaml @@ -0,0 +1,2 @@ +%YAML 1.2 +--- text diff --git a/testdata/yaml-test-suite/spec-example-5-9-directive-indicator/out.yaml b/testdata/yaml-test-suite/spec-example-5-9-directive-indicator/out.yaml new file mode 100644 index 00000000..9c3ac4f9 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-5-9-directive-indicator/out.yaml @@ -0,0 +1 @@ +--- text diff --git a/testdata/yaml-test-suite/spec-example-6-1-indentation-spaces/in.json b/testdata/yaml-test-suite/spec-example-6-1-indentation-spaces/in.json new file mode 100644 index 00000000..90112cbe --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-1-indentation-spaces/in.json @@ -0,0 +1,10 @@ +{ + "Not indented": { + "By one space": "By four\n spaces\n", + "Flow style": [ + "By two", + "Also by two", + "Still by two" + ] + } +} diff --git a/testdata/yaml-test-suite/spec-example-6-1-indentation-spaces/in.yaml b/testdata/yaml-test-suite/spec-example-6-1-indentation-spaces/in.yaml new file mode 100644 index 00000000..b5496c11 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-1-indentation-spaces/in.yaml @@ -0,0 +1,12 @@ + # Leading comment line spaces are + # neither content nor indentation. + +Not indented: + By one space: | + By four + spaces + Flow style: [ # Leading spaces + By two, # in flow style + Also by two, # are neither + Still by two # content nor + ] # indentation. diff --git a/testdata/yaml-test-suite/spec-example-6-1-indentation-spaces/out.yaml b/testdata/yaml-test-suite/spec-example-6-1-indentation-spaces/out.yaml new file mode 100644 index 00000000..50be8992 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-1-indentation-spaces/out.yaml @@ -0,0 +1,8 @@ +Not indented: + By one space: | + By four + spaces + Flow style: + - By two + - Also by two + - Still by two diff --git a/testdata/yaml-test-suite/spec-example-6-10-comment-lines/in.json b/testdata/yaml-test-suite/spec-example-6-10-comment-lines/in.json new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/spec-example-6-10-comment-lines/in.yaml b/testdata/yaml-test-suite/spec-example-6-10-comment-lines/in.yaml new file mode 100644 index 00000000..e5f1a84f --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-10-comment-lines/in.yaml @@ -0,0 +1,4 @@ + # Comment + + + diff --git a/testdata/yaml-test-suite/spec-example-6-10-comment-lines/out.yaml b/testdata/yaml-test-suite/spec-example-6-10-comment-lines/out.yaml new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/spec-example-6-11-multi-line-comments/in.json b/testdata/yaml-test-suite/spec-example-6-11-multi-line-comments/in.json new file mode 100644 index 00000000..7a9e8644 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-11-multi-line-comments/in.json @@ -0,0 +1,3 @@ +{ + "key": "value" +} diff --git a/testdata/yaml-test-suite/spec-example-6-11-multi-line-comments/in.yaml b/testdata/yaml-test-suite/spec-example-6-11-multi-line-comments/in.yaml new file mode 100644 index 00000000..6776e8af --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-11-multi-line-comments/in.yaml @@ -0,0 +1,5 @@ +key: # Comment + # lines + value + + diff --git a/testdata/yaml-test-suite/spec-example-6-11-multi-line-comments/out.yaml b/testdata/yaml-test-suite/spec-example-6-11-multi-line-comments/out.yaml new file mode 100644 index 00000000..b4f46b72 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-11-multi-line-comments/out.yaml @@ -0,0 +1 @@ +key: value diff --git a/testdata/yaml-test-suite/spec-example-6-12-separation-spaces/in.yaml b/testdata/yaml-test-suite/spec-example-6-12-separation-spaces/in.yaml new file mode 100644 index 00000000..e1e11134 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-12-separation-spaces/in.yaml @@ -0,0 +1,6 @@ +{ first: Sammy, last: Sosa }: +# Statistics: + hr: # Home runs + 65 + avg: # Average + 0.278 diff --git a/testdata/yaml-test-suite/spec-example-6-12-separation-spaces/out.yaml b/testdata/yaml-test-suite/spec-example-6-12-separation-spaces/out.yaml new file mode 100644 index 00000000..0c5097af --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-12-separation-spaces/out.yaml @@ -0,0 +1,4 @@ +? first: Sammy + last: Sosa +: hr: 65 + avg: 0.278 diff --git a/testdata/yaml-test-suite/spec-example-6-13-reserved-directives-1-3/in.json b/testdata/yaml-test-suite/spec-example-6-13-reserved-directives-1-3/in.json new file mode 100644 index 00000000..810c96ee --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-13-reserved-directives-1-3/in.json @@ -0,0 +1 @@ +"foo" diff --git a/testdata/yaml-test-suite/spec-example-6-13-reserved-directives-1-3/in.yaml b/testdata/yaml-test-suite/spec-example-6-13-reserved-directives-1-3/in.yaml new file mode 100644 index 00000000..5068618f --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-13-reserved-directives-1-3/in.yaml @@ -0,0 +1,4 @@ +%FOO bar baz # Should be ignored + # with a warning. +--- +"foo" diff --git a/testdata/yaml-test-suite/spec-example-6-13-reserved-directives-1-3/out.yaml b/testdata/yaml-test-suite/spec-example-6-13-reserved-directives-1-3/out.yaml new file mode 100644 index 00000000..bd3015bf --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-13-reserved-directives-1-3/out.yaml @@ -0,0 +1,2 @@ +--- +"foo" diff --git a/testdata/yaml-test-suite/spec-example-6-13-reserved-directives/in.json b/testdata/yaml-test-suite/spec-example-6-13-reserved-directives/in.json new file mode 100644 index 00000000..810c96ee --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-13-reserved-directives/in.json @@ -0,0 +1 @@ +"foo" diff --git a/testdata/yaml-test-suite/spec-example-6-13-reserved-directives/in.yaml b/testdata/yaml-test-suite/spec-example-6-13-reserved-directives/in.yaml new file mode 100644 index 00000000..cedbf233 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-13-reserved-directives/in.yaml @@ -0,0 +1,3 @@ +%FOO bar baz # Should be ignored + # with a warning. +--- "foo" diff --git a/testdata/yaml-test-suite/spec-example-6-13-reserved-directives/out.yaml b/testdata/yaml-test-suite/spec-example-6-13-reserved-directives/out.yaml new file mode 100644 index 00000000..55a21ab3 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-13-reserved-directives/out.yaml @@ -0,0 +1 @@ +--- "foo" diff --git a/testdata/yaml-test-suite/spec-example-6-14-yaml-directive/in.json b/testdata/yaml-test-suite/spec-example-6-14-yaml-directive/in.json new file mode 100644 index 00000000..810c96ee --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-14-yaml-directive/in.json @@ -0,0 +1 @@ +"foo" diff --git a/testdata/yaml-test-suite/spec-example-6-14-yaml-directive/in.yaml b/testdata/yaml-test-suite/spec-example-6-14-yaml-directive/in.yaml new file mode 100644 index 00000000..fb552156 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-14-yaml-directive/in.yaml @@ -0,0 +1,4 @@ +%YAML 1.3 # Attempt parsing + # with a warning +--- +"foo" diff --git a/testdata/yaml-test-suite/spec-example-6-14-yaml-directive/out.yaml b/testdata/yaml-test-suite/spec-example-6-14-yaml-directive/out.yaml new file mode 100644 index 00000000..55a21ab3 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-14-yaml-directive/out.yaml @@ -0,0 +1 @@ +--- "foo" diff --git a/testdata/yaml-test-suite/spec-example-6-16-tag-directive/in.json b/testdata/yaml-test-suite/spec-example-6-16-tag-directive/in.json new file mode 100644 index 00000000..810c96ee --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-16-tag-directive/in.json @@ -0,0 +1 @@ +"foo" diff --git a/testdata/yaml-test-suite/spec-example-6-16-tag-directive/in.yaml b/testdata/yaml-test-suite/spec-example-6-16-tag-directive/in.yaml new file mode 100644 index 00000000..50f5ab93 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-16-tag-directive/in.yaml @@ -0,0 +1,3 @@ +%TAG !yaml! tag:yaml.org,2002: +--- +!yaml!str "foo" diff --git a/testdata/yaml-test-suite/spec-example-6-16-tag-directive/out.yaml b/testdata/yaml-test-suite/spec-example-6-16-tag-directive/out.yaml new file mode 100644 index 00000000..1bafc6be --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-16-tag-directive/out.yaml @@ -0,0 +1 @@ +--- !!str "foo" diff --git a/testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle-1-3/in.json b/testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle-1-3/in.json new file mode 100644 index 00000000..f95cbd72 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle-1-3/in.json @@ -0,0 +1,2 @@ +"bar" +"bar" diff --git a/testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle-1-3/in.yaml b/testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle-1-3/in.yaml new file mode 100644 index 00000000..fd94164e --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle-1-3/in.yaml @@ -0,0 +1,8 @@ +# Private +--- +!foo "bar" +... +# Global +%TAG ! tag:example.com,2000:app/ +--- +!foo "bar" diff --git a/testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle-1-3/out.yaml b/testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle-1-3/out.yaml new file mode 100644 index 00000000..b825b204 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle-1-3/out.yaml @@ -0,0 +1,5 @@ +--- +!foo "bar" +... +--- ! +"bar" diff --git a/testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle/in.json b/testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle/in.json new file mode 100644 index 00000000..f95cbd72 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle/in.json @@ -0,0 +1,2 @@ +"bar" +"bar" diff --git a/testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle/in.yaml b/testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle/in.yaml new file mode 100644 index 00000000..d79f04e4 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle/in.yaml @@ -0,0 +1,7 @@ +# Private +!foo "bar" +... +# Global +%TAG ! tag:example.com,2000:app/ +--- +!foo "bar" diff --git a/testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle/out.yaml b/testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle/out.yaml new file mode 100644 index 00000000..dfa5acf0 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-18-primary-tag-handle/out.yaml @@ -0,0 +1,3 @@ +!foo "bar" +... +--- ! "bar" diff --git a/testdata/yaml-test-suite/spec-example-6-19-secondary-tag-handle/in.json b/testdata/yaml-test-suite/spec-example-6-19-secondary-tag-handle/in.json new file mode 100644 index 00000000..8394b3d2 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-19-secondary-tag-handle/in.json @@ -0,0 +1 @@ +"1 - 3" diff --git a/testdata/yaml-test-suite/spec-example-6-19-secondary-tag-handle/in.yaml b/testdata/yaml-test-suite/spec-example-6-19-secondary-tag-handle/in.yaml new file mode 100644 index 00000000..7b9d9b10 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-19-secondary-tag-handle/in.yaml @@ -0,0 +1,3 @@ +%TAG !! tag:example.com,2000:app/ +--- +!!int 1 - 3 # Interval, not integer diff --git a/testdata/yaml-test-suite/spec-example-6-19-secondary-tag-handle/out.yaml b/testdata/yaml-test-suite/spec-example-6-19-secondary-tag-handle/out.yaml new file mode 100644 index 00000000..5f5ce994 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-19-secondary-tag-handle/out.yaml @@ -0,0 +1 @@ +--- ! 1 - 3 diff --git a/testdata/yaml-test-suite/spec-example-6-2-indentation-indicators/in.json b/testdata/yaml-test-suite/spec-example-6-2-indentation-indicators/in.json new file mode 100644 index 00000000..848d9f6b --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-2-indentation-indicators/in.json @@ -0,0 +1,9 @@ +{ + "a": [ + "b", + [ + "c", + "d" + ] + ] +} diff --git a/testdata/yaml-test-suite/spec-example-6-2-indentation-indicators/in.yaml b/testdata/yaml-test-suite/spec-example-6-2-indentation-indicators/in.yaml new file mode 100644 index 00000000..ac0d970d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-2-indentation-indicators/in.yaml @@ -0,0 +1,4 @@ +? a +: - b + - - c + - d diff --git a/testdata/yaml-test-suite/spec-example-6-2-indentation-indicators/out.yaml b/testdata/yaml-test-suite/spec-example-6-2-indentation-indicators/out.yaml new file mode 100644 index 00000000..7b74af1f --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-2-indentation-indicators/out.yaml @@ -0,0 +1,4 @@ +a: +- b +- - c + - d diff --git a/testdata/yaml-test-suite/spec-example-6-20-tag-handles/in.json b/testdata/yaml-test-suite/spec-example-6-20-tag-handles/in.json new file mode 100644 index 00000000..196e5879 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-20-tag-handles/in.json @@ -0,0 +1 @@ +"bar" diff --git a/testdata/yaml-test-suite/spec-example-6-20-tag-handles/in.yaml b/testdata/yaml-test-suite/spec-example-6-20-tag-handles/in.yaml new file mode 100644 index 00000000..690f138e --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-20-tag-handles/in.yaml @@ -0,0 +1,3 @@ +%TAG !e! tag:example.com,2000:app/ +--- +!e!foo "bar" diff --git a/testdata/yaml-test-suite/spec-example-6-20-tag-handles/out.yaml b/testdata/yaml-test-suite/spec-example-6-20-tag-handles/out.yaml new file mode 100644 index 00000000..1bce55c8 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-20-tag-handles/out.yaml @@ -0,0 +1 @@ +--- ! "bar" diff --git a/testdata/yaml-test-suite/spec-example-6-21-local-tag-prefix/in.json b/testdata/yaml-test-suite/spec-example-6-21-local-tag-prefix/in.json new file mode 100644 index 00000000..fbdf5d03 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-21-local-tag-prefix/in.json @@ -0,0 +1,2 @@ +"fluorescent" +"green" diff --git a/testdata/yaml-test-suite/spec-example-6-21-local-tag-prefix/in.yaml b/testdata/yaml-test-suite/spec-example-6-21-local-tag-prefix/in.yaml new file mode 100644 index 00000000..57315a5b --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-21-local-tag-prefix/in.yaml @@ -0,0 +1,7 @@ +%TAG !m! !my- +--- # Bulb here +!m!light fluorescent +... +%TAG !m! !my- +--- # Color here +!m!light green diff --git a/testdata/yaml-test-suite/spec-example-6-22-global-tag-prefix/in.json b/testdata/yaml-test-suite/spec-example-6-22-global-tag-prefix/in.json new file mode 100644 index 00000000..248299a1 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-22-global-tag-prefix/in.json @@ -0,0 +1,3 @@ +[ + "bar" +] diff --git a/testdata/yaml-test-suite/spec-example-6-22-global-tag-prefix/in.yaml b/testdata/yaml-test-suite/spec-example-6-22-global-tag-prefix/in.yaml new file mode 100644 index 00000000..eedfe04d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-22-global-tag-prefix/in.yaml @@ -0,0 +1,3 @@ +%TAG !e! tag:example.com,2000:app/ +--- +- !e!foo "bar" diff --git a/testdata/yaml-test-suite/spec-example-6-22-global-tag-prefix/out.yaml b/testdata/yaml-test-suite/spec-example-6-22-global-tag-prefix/out.yaml new file mode 100644 index 00000000..81d5a893 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-22-global-tag-prefix/out.yaml @@ -0,0 +1,2 @@ +--- +- ! "bar" diff --git a/testdata/yaml-test-suite/spec-example-6-23-node-properties/in.json b/testdata/yaml-test-suite/spec-example-6-23-node-properties/in.json new file mode 100644 index 00000000..510c6a7e --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-23-node-properties/in.json @@ -0,0 +1,4 @@ +{ + "foo": "bar", + "baz": "foo" +} diff --git a/testdata/yaml-test-suite/spec-example-6-23-node-properties/in.yaml b/testdata/yaml-test-suite/spec-example-6-23-node-properties/in.yaml new file mode 100644 index 00000000..66d75f36 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-23-node-properties/in.yaml @@ -0,0 +1,3 @@ +!!str &a1 "foo": + !!str bar +&a2 baz : *a1 diff --git a/testdata/yaml-test-suite/spec-example-6-23-node-properties/out.yaml b/testdata/yaml-test-suite/spec-example-6-23-node-properties/out.yaml new file mode 100644 index 00000000..22c8650b --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-23-node-properties/out.yaml @@ -0,0 +1,2 @@ +&a1 !!str "foo": !!str bar +&a2 baz: *a1 diff --git a/testdata/yaml-test-suite/spec-example-6-24-verbatim-tags/in.json b/testdata/yaml-test-suite/spec-example-6-24-verbatim-tags/in.json new file mode 100644 index 00000000..c9f7a948 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-24-verbatim-tags/in.json @@ -0,0 +1,3 @@ +{ + "foo": "baz" +} diff --git a/testdata/yaml-test-suite/spec-example-6-24-verbatim-tags/in.yaml b/testdata/yaml-test-suite/spec-example-6-24-verbatim-tags/in.yaml new file mode 100644 index 00000000..8e51f52a --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-24-verbatim-tags/in.yaml @@ -0,0 +1,2 @@ +! foo : + ! baz diff --git a/testdata/yaml-test-suite/spec-example-6-24-verbatim-tags/out.yaml b/testdata/yaml-test-suite/spec-example-6-24-verbatim-tags/out.yaml new file mode 100644 index 00000000..f09d4a78 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-24-verbatim-tags/out.yaml @@ -0,0 +1 @@ +!!str foo: !bar baz diff --git a/testdata/yaml-test-suite/spec-example-6-26-tag-shorthands/in.json b/testdata/yaml-test-suite/spec-example-6-26-tag-shorthands/in.json new file mode 100644 index 00000000..cdaf9b8d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-26-tag-shorthands/in.json @@ -0,0 +1,5 @@ +[ + "foo", + "bar", + "baz" +] diff --git a/testdata/yaml-test-suite/spec-example-6-26-tag-shorthands/in.yaml b/testdata/yaml-test-suite/spec-example-6-26-tag-shorthands/in.yaml new file mode 100644 index 00000000..70365f4e --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-26-tag-shorthands/in.yaml @@ -0,0 +1,5 @@ +%TAG !e! tag:example.com,2000:app/ +--- +- !local foo +- !!str bar +- !e!tag%21 baz diff --git a/testdata/yaml-test-suite/spec-example-6-28-non-specific-tags/in.json b/testdata/yaml-test-suite/spec-example-6-28-non-specific-tags/in.json new file mode 100644 index 00000000..72d72b2f --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-28-non-specific-tags/in.json @@ -0,0 +1,5 @@ +[ + "12", + 12, + "12" +] diff --git a/testdata/yaml-test-suite/spec-example-6-28-non-specific-tags/in.yaml b/testdata/yaml-test-suite/spec-example-6-28-non-specific-tags/in.yaml new file mode 100644 index 00000000..98aa565e --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-28-non-specific-tags/in.yaml @@ -0,0 +1,4 @@ +# Assuming conventional resolution: +- "12" +- 12 +- ! 12 diff --git a/testdata/yaml-test-suite/spec-example-6-28-non-specific-tags/out.yaml b/testdata/yaml-test-suite/spec-example-6-28-non-specific-tags/out.yaml new file mode 100644 index 00000000..499d9490 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-28-non-specific-tags/out.yaml @@ -0,0 +1,3 @@ +- "12" +- 12 +- ! 12 diff --git a/testdata/yaml-test-suite/spec-example-6-29-node-anchors/in.json b/testdata/yaml-test-suite/spec-example-6-29-node-anchors/in.json new file mode 100644 index 00000000..4b838cf4 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-29-node-anchors/in.json @@ -0,0 +1,4 @@ +{ + "First occurrence": "Value", + "Second occurrence": "Value" +} diff --git a/testdata/yaml-test-suite/spec-example-6-29-node-anchors/in.yaml b/testdata/yaml-test-suite/spec-example-6-29-node-anchors/in.yaml new file mode 100644 index 00000000..600d1792 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-29-node-anchors/in.yaml @@ -0,0 +1,2 @@ +First occurrence: &anchor Value +Second occurrence: *anchor diff --git a/testdata/yaml-test-suite/spec-example-6-3-separation-spaces/in.json b/testdata/yaml-test-suite/spec-example-6-3-separation-spaces/in.json new file mode 100644 index 00000000..72163374 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-3-separation-spaces/in.json @@ -0,0 +1,9 @@ +[ + { + "foo": "bar" + }, + [ + "baz", + "baz" + ] +] diff --git a/testdata/yaml-test-suite/spec-example-6-3-separation-spaces/in.yaml b/testdata/yaml-test-suite/spec-example-6-3-separation-spaces/in.yaml new file mode 100644 index 00000000..5f48cf49 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-3-separation-spaces/in.yaml @@ -0,0 +1,3 @@ +- foo: bar +- - baz + - baz diff --git a/testdata/yaml-test-suite/spec-example-6-3-separation-spaces/out.yaml b/testdata/yaml-test-suite/spec-example-6-3-separation-spaces/out.yaml new file mode 100644 index 00000000..78389dd2 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-3-separation-spaces/out.yaml @@ -0,0 +1,3 @@ +- foo: bar +- - baz + - baz diff --git a/testdata/yaml-test-suite/spec-example-6-4-line-prefixes/in.json b/testdata/yaml-test-suite/spec-example-6-4-line-prefixes/in.json new file mode 100644 index 00000000..b90f1074 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-4-line-prefixes/in.json @@ -0,0 +1,5 @@ +{ + "plain": "text lines", + "quoted": "text lines", + "block": "text\n \tlines\n" +} diff --git a/testdata/yaml-test-suite/spec-example-6-4-line-prefixes/in.yaml b/testdata/yaml-test-suite/spec-example-6-4-line-prefixes/in.yaml new file mode 100644 index 00000000..2f62d082 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-4-line-prefixes/in.yaml @@ -0,0 +1,7 @@ +plain: text + lines +quoted: "text + lines" +block: | + text + lines diff --git a/testdata/yaml-test-suite/spec-example-6-4-line-prefixes/out.yaml b/testdata/yaml-test-suite/spec-example-6-4-line-prefixes/out.yaml new file mode 100644 index 00000000..1df6f007 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-4-line-prefixes/out.yaml @@ -0,0 +1,3 @@ +plain: text lines +quoted: "text lines" +block: "text\n \tlines\n" diff --git a/testdata/yaml-test-suite/spec-example-6-5-empty-lines-1-3/in.json b/testdata/yaml-test-suite/spec-example-6-5-empty-lines-1-3/in.json new file mode 100644 index 00000000..41a96a12 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-5-empty-lines-1-3/in.json @@ -0,0 +1,4 @@ +{ + "Folding": "Empty line\nas a line feed", + "Chomping": "Clipped empty lines\n" +} diff --git a/testdata/yaml-test-suite/spec-example-6-5-empty-lines-1-3/in.yaml b/testdata/yaml-test-suite/spec-example-6-5-empty-lines-1-3/in.yaml new file mode 100644 index 00000000..c7775c4d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-5-empty-lines-1-3/in.yaml @@ -0,0 +1,8 @@ +Folding: + "Empty line + + as a line feed" +Chomping: | + Clipped empty lines + + diff --git a/testdata/yaml-test-suite/spec-example-6-5-empty-lines-1-3/out.yaml b/testdata/yaml-test-suite/spec-example-6-5-empty-lines-1-3/out.yaml new file mode 100644 index 00000000..c91fcdd4 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-5-empty-lines-1-3/out.yaml @@ -0,0 +1,3 @@ +Folding: "Empty line\nas a line feed" +Chomping: | + Clipped empty lines diff --git a/testdata/yaml-test-suite/spec-example-6-5-empty-lines/in.json b/testdata/yaml-test-suite/spec-example-6-5-empty-lines/in.json new file mode 100644 index 00000000..41a96a12 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-5-empty-lines/in.json @@ -0,0 +1,4 @@ +{ + "Folding": "Empty line\nas a line feed", + "Chomping": "Clipped empty lines\n" +} diff --git a/testdata/yaml-test-suite/spec-example-6-5-empty-lines/in.yaml b/testdata/yaml-test-suite/spec-example-6-5-empty-lines/in.yaml new file mode 100644 index 00000000..60958d5f --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-5-empty-lines/in.yaml @@ -0,0 +1,8 @@ +Folding: + "Empty line + + as a line feed" +Chomping: | + Clipped empty lines + + diff --git a/testdata/yaml-test-suite/spec-example-6-5-empty-lines/out.yaml b/testdata/yaml-test-suite/spec-example-6-5-empty-lines/out.yaml new file mode 100644 index 00000000..c91fcdd4 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-5-empty-lines/out.yaml @@ -0,0 +1,3 @@ +Folding: "Empty line\nas a line feed" +Chomping: | + Clipped empty lines diff --git a/testdata/yaml-test-suite/spec-example-6-6-line-folding-1-3/in.json b/testdata/yaml-test-suite/spec-example-6-6-line-folding-1-3/in.json new file mode 100644 index 00000000..9c6ce925 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-6-line-folding-1-3/in.json @@ -0,0 +1 @@ +"trimmed\n\n\nas space" diff --git a/testdata/yaml-test-suite/spec-example-6-6-line-folding-1-3/in.yaml b/testdata/yaml-test-suite/spec-example-6-6-line-folding-1-3/in.yaml new file mode 100644 index 00000000..938ee982 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-6-line-folding-1-3/in.yaml @@ -0,0 +1,7 @@ +--- >- + trimmed + + + + as + space diff --git a/testdata/yaml-test-suite/spec-example-6-6-line-folding-1-3/out.yaml b/testdata/yaml-test-suite/spec-example-6-6-line-folding-1-3/out.yaml new file mode 100644 index 00000000..e0b2e957 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-6-line-folding-1-3/out.yaml @@ -0,0 +1,6 @@ +--- >- + trimmed + + + + as space diff --git a/testdata/yaml-test-suite/spec-example-6-6-line-folding/in.json b/testdata/yaml-test-suite/spec-example-6-6-line-folding/in.json new file mode 100644 index 00000000..9c6ce925 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-6-line-folding/in.json @@ -0,0 +1 @@ +"trimmed\n\n\nas space" diff --git a/testdata/yaml-test-suite/spec-example-6-6-line-folding/in.yaml b/testdata/yaml-test-suite/spec-example-6-6-line-folding/in.yaml new file mode 100644 index 00000000..1c5090d0 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-6-line-folding/in.yaml @@ -0,0 +1,7 @@ +>- + trimmed + + + + as + space diff --git a/testdata/yaml-test-suite/spec-example-6-6-line-folding/out.yaml b/testdata/yaml-test-suite/spec-example-6-6-line-folding/out.yaml new file mode 100644 index 00000000..2c970a22 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-6-line-folding/out.yaml @@ -0,0 +1,6 @@ +>- + trimmed + + + + as space diff --git a/testdata/yaml-test-suite/spec-example-6-7-block-folding/in.json b/testdata/yaml-test-suite/spec-example-6-7-block-folding/in.json new file mode 100644 index 00000000..9dd9b030 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-7-block-folding/in.json @@ -0,0 +1 @@ +"foo \n\n\t bar\n\nbaz\n" diff --git a/testdata/yaml-test-suite/spec-example-6-7-block-folding/in.yaml b/testdata/yaml-test-suite/spec-example-6-7-block-folding/in.yaml new file mode 100644 index 00000000..0896cc6f --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-7-block-folding/in.yaml @@ -0,0 +1,6 @@ +> + foo + + bar + + baz diff --git a/testdata/yaml-test-suite/spec-example-6-7-block-folding/out.yaml b/testdata/yaml-test-suite/spec-example-6-7-block-folding/out.yaml new file mode 100644 index 00000000..9dd9b030 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-7-block-folding/out.yaml @@ -0,0 +1 @@ +"foo \n\n\t bar\n\nbaz\n" diff --git a/testdata/yaml-test-suite/spec-example-6-8-flow-folding-1-3/in.json b/testdata/yaml-test-suite/spec-example-6-8-flow-folding-1-3/in.json new file mode 100644 index 00000000..0fcc9db1 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-8-flow-folding-1-3/in.json @@ -0,0 +1 @@ +" foo\nbar\nbaz " diff --git a/testdata/yaml-test-suite/spec-example-6-8-flow-folding-1-3/in.yaml b/testdata/yaml-test-suite/spec-example-6-8-flow-folding-1-3/in.yaml new file mode 100644 index 00000000..aed6e4b0 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-8-flow-folding-1-3/in.yaml @@ -0,0 +1,8 @@ +--- +" + foo + + bar + + baz +" diff --git a/testdata/yaml-test-suite/spec-example-6-8-flow-folding-1-3/out.yaml b/testdata/yaml-test-suite/spec-example-6-8-flow-folding-1-3/out.yaml new file mode 100644 index 00000000..0fcc9db1 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-8-flow-folding-1-3/out.yaml @@ -0,0 +1 @@ +" foo\nbar\nbaz " diff --git a/testdata/yaml-test-suite/spec-example-6-8-flow-folding/in.json b/testdata/yaml-test-suite/spec-example-6-8-flow-folding/in.json new file mode 100644 index 00000000..0fcc9db1 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-8-flow-folding/in.json @@ -0,0 +1 @@ +" foo\nbar\nbaz " diff --git a/testdata/yaml-test-suite/spec-example-6-8-flow-folding/in.yaml b/testdata/yaml-test-suite/spec-example-6-8-flow-folding/in.yaml new file mode 100644 index 00000000..d6af812c --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-8-flow-folding/in.yaml @@ -0,0 +1,7 @@ +" + foo + + bar + + baz +" diff --git a/testdata/yaml-test-suite/spec-example-6-8-flow-folding/out.yaml b/testdata/yaml-test-suite/spec-example-6-8-flow-folding/out.yaml new file mode 100644 index 00000000..0fcc9db1 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-8-flow-folding/out.yaml @@ -0,0 +1 @@ +" foo\nbar\nbaz " diff --git a/testdata/yaml-test-suite/spec-example-6-9-separated-comment/in.json b/testdata/yaml-test-suite/spec-example-6-9-separated-comment/in.json new file mode 100644 index 00000000..7a9e8644 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-9-separated-comment/in.json @@ -0,0 +1,3 @@ +{ + "key": "value" +} diff --git a/testdata/yaml-test-suite/spec-example-6-9-separated-comment/in.yaml b/testdata/yaml-test-suite/spec-example-6-9-separated-comment/in.yaml new file mode 100644 index 00000000..9db09129 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-9-separated-comment/in.yaml @@ -0,0 +1,2 @@ +key: # Comment + value diff --git a/testdata/yaml-test-suite/spec-example-6-9-separated-comment/out.yaml b/testdata/yaml-test-suite/spec-example-6-9-separated-comment/out.yaml new file mode 100644 index 00000000..b4f46b72 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-6-9-separated-comment/out.yaml @@ -0,0 +1 @@ +key: value diff --git a/testdata/yaml-test-suite/spec-example-7-1-alias-nodes/in.json b/testdata/yaml-test-suite/spec-example-7-1-alias-nodes/in.json new file mode 100644 index 00000000..4e09f3ab --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-1-alias-nodes/in.json @@ -0,0 +1,6 @@ +{ + "First occurrence": "Foo", + "Second occurrence": "Foo", + "Override anchor": "Bar", + "Reuse anchor": "Bar" +} diff --git a/testdata/yaml-test-suite/spec-example-7-1-alias-nodes/in.yaml b/testdata/yaml-test-suite/spec-example-7-1-alias-nodes/in.yaml new file mode 100644 index 00000000..38876760 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-1-alias-nodes/in.yaml @@ -0,0 +1,4 @@ +First occurrence: &anchor Foo +Second occurrence: *anchor +Override anchor: &anchor Bar +Reuse anchor: *anchor diff --git a/testdata/yaml-test-suite/spec-example-7-10-plain-characters/in.json b/testdata/yaml-test-suite/spec-example-7-10-plain-characters/in.json new file mode 100644 index 00000000..a90aeeee --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-10-plain-characters/in.json @@ -0,0 +1,14 @@ +[ + "::vector", + ": - ()", + "Up, up, and away!", + -123, + "http://example.com/foo#bar", + [ + "::vector", + ": - ()", + "Up, up and away!", + -123, + "http://example.com/foo#bar" + ] +] diff --git a/testdata/yaml-test-suite/spec-example-7-10-plain-characters/in.yaml b/testdata/yaml-test-suite/spec-example-7-10-plain-characters/in.yaml new file mode 100644 index 00000000..7ed369fb --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-10-plain-characters/in.yaml @@ -0,0 +1,12 @@ +# Outside flow collection: +- ::vector +- ": - ()" +- Up, up, and away! +- -123 +- http://example.com/foo#bar +# Inside flow collection: +- [ ::vector, + ": - ()", + "Up, up and away!", + -123, + http://example.com/foo#bar ] diff --git a/testdata/yaml-test-suite/spec-example-7-10-plain-characters/out.yaml b/testdata/yaml-test-suite/spec-example-7-10-plain-characters/out.yaml new file mode 100644 index 00000000..f2872432 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-10-plain-characters/out.yaml @@ -0,0 +1,10 @@ +- ::vector +- ": - ()" +- Up, up, and away! +- -123 +- http://example.com/foo#bar +- - ::vector + - ": - ()" + - "Up, up and away!" + - -123 + - http://example.com/foo#bar diff --git a/testdata/yaml-test-suite/spec-example-7-11-plain-implicit-keys/in.json b/testdata/yaml-test-suite/spec-example-7-11-plain-implicit-keys/in.json new file mode 100644 index 00000000..16ae65bb --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-11-plain-implicit-keys/in.json @@ -0,0 +1,7 @@ +{ + "implicit block key": [ + { + "implicit flow key": "value" + } + ] +} diff --git a/testdata/yaml-test-suite/spec-example-7-11-plain-implicit-keys/in.yaml b/testdata/yaml-test-suite/spec-example-7-11-plain-implicit-keys/in.yaml new file mode 100644 index 00000000..fd57f658 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-11-plain-implicit-keys/in.yaml @@ -0,0 +1,3 @@ +implicit block key : [ + implicit flow key : value, + ] diff --git a/testdata/yaml-test-suite/spec-example-7-11-plain-implicit-keys/out.yaml b/testdata/yaml-test-suite/spec-example-7-11-plain-implicit-keys/out.yaml new file mode 100644 index 00000000..0efc44a9 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-11-plain-implicit-keys/out.yaml @@ -0,0 +1,2 @@ +implicit block key: +- implicit flow key: value diff --git a/testdata/yaml-test-suite/spec-example-7-12-plain-lines/in.json b/testdata/yaml-test-suite/spec-example-7-12-plain-lines/in.json new file mode 100644 index 00000000..2dc1d4e2 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-12-plain-lines/in.json @@ -0,0 +1 @@ +"1st non-empty\n2nd non-empty 3rd non-empty" diff --git a/testdata/yaml-test-suite/spec-example-7-12-plain-lines/in.yaml b/testdata/yaml-test-suite/spec-example-7-12-plain-lines/in.yaml new file mode 100644 index 00000000..0499250b --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-12-plain-lines/in.yaml @@ -0,0 +1,4 @@ +1st non-empty + + 2nd non-empty + 3rd non-empty diff --git a/testdata/yaml-test-suite/spec-example-7-12-plain-lines/out.yaml b/testdata/yaml-test-suite/spec-example-7-12-plain-lines/out.yaml new file mode 100644 index 00000000..6d2491b5 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-12-plain-lines/out.yaml @@ -0,0 +1,3 @@ +'1st non-empty + + 2nd non-empty 3rd non-empty' diff --git a/testdata/yaml-test-suite/spec-example-7-13-flow-sequence/in.json b/testdata/yaml-test-suite/spec-example-7-13-flow-sequence/in.json new file mode 100644 index 00000000..c19c46c8 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-13-flow-sequence/in.json @@ -0,0 +1,10 @@ +[ + [ + "one", + "two" + ], + [ + "three", + "four" + ] +] diff --git a/testdata/yaml-test-suite/spec-example-7-13-flow-sequence/in.yaml b/testdata/yaml-test-suite/spec-example-7-13-flow-sequence/in.yaml new file mode 100644 index 00000000..cd774803 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-13-flow-sequence/in.yaml @@ -0,0 +1,2 @@ +- [ one, two, ] +- [three ,four] diff --git a/testdata/yaml-test-suite/spec-example-7-13-flow-sequence/out.yaml b/testdata/yaml-test-suite/spec-example-7-13-flow-sequence/out.yaml new file mode 100644 index 00000000..e3da32d8 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-13-flow-sequence/out.yaml @@ -0,0 +1,4 @@ +- - one + - two +- - three + - four diff --git a/testdata/yaml-test-suite/spec-example-7-14-flow-sequence-entries/in.json b/testdata/yaml-test-suite/spec-example-7-14-flow-sequence-entries/in.json new file mode 100644 index 00000000..763236f2 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-14-flow-sequence-entries/in.json @@ -0,0 +1,11 @@ +[ + "double quoted", + "single quoted", + "plain text", + [ + "nested" + ], + { + "single": "pair" + } +] diff --git a/testdata/yaml-test-suite/spec-example-7-14-flow-sequence-entries/in.yaml b/testdata/yaml-test-suite/spec-example-7-14-flow-sequence-entries/in.yaml new file mode 100644 index 00000000..63271167 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-14-flow-sequence-entries/in.yaml @@ -0,0 +1,8 @@ +[ +"double + quoted", 'single + quoted', +plain + text, [ nested ], +single: pair, +] diff --git a/testdata/yaml-test-suite/spec-example-7-14-flow-sequence-entries/out.yaml b/testdata/yaml-test-suite/spec-example-7-14-flow-sequence-entries/out.yaml new file mode 100644 index 00000000..ca502e89 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-14-flow-sequence-entries/out.yaml @@ -0,0 +1,5 @@ +- "double quoted" +- 'single quoted' +- plain text +- - nested +- single: pair diff --git a/testdata/yaml-test-suite/spec-example-7-15-flow-mappings/in.json b/testdata/yaml-test-suite/spec-example-7-15-flow-mappings/in.json new file mode 100644 index 00000000..b5160972 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-15-flow-mappings/in.json @@ -0,0 +1,10 @@ +[ + { + "one": "two", + "three": "four" + }, + { + "five": "six", + "seven": "eight" + } +] diff --git a/testdata/yaml-test-suite/spec-example-7-15-flow-mappings/in.yaml b/testdata/yaml-test-suite/spec-example-7-15-flow-mappings/in.yaml new file mode 100644 index 00000000..07186437 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-15-flow-mappings/in.yaml @@ -0,0 +1,2 @@ +- { one : two , three: four , } +- {five: six,seven : eight} diff --git a/testdata/yaml-test-suite/spec-example-7-15-flow-mappings/out.yaml b/testdata/yaml-test-suite/spec-example-7-15-flow-mappings/out.yaml new file mode 100644 index 00000000..236d725f --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-15-flow-mappings/out.yaml @@ -0,0 +1,4 @@ +- one: two + three: four +- five: six + seven: eight diff --git a/testdata/yaml-test-suite/spec-example-7-16-flow-mapping-entries/in.yaml b/testdata/yaml-test-suite/spec-example-7-16-flow-mapping-entries/in.yaml new file mode 100644 index 00000000..cb84a995 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-16-flow-mapping-entries/in.yaml @@ -0,0 +1,5 @@ +{ +? explicit: entry, +implicit: entry, +? +} diff --git a/testdata/yaml-test-suite/spec-example-7-16-flow-mapping-entries/out.yaml b/testdata/yaml-test-suite/spec-example-7-16-flow-mapping-entries/out.yaml new file mode 100644 index 00000000..1ea594f1 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-16-flow-mapping-entries/out.yaml @@ -0,0 +1,3 @@ +explicit: entry +implicit: entry +: diff --git a/testdata/yaml-test-suite/spec-example-7-18-flow-mapping-adjacent-values/in.json b/testdata/yaml-test-suite/spec-example-7-18-flow-mapping-adjacent-values/in.json new file mode 100644 index 00000000..e522f089 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-18-flow-mapping-adjacent-values/in.json @@ -0,0 +1,5 @@ +{ + "adjacent": "value", + "readable": "value", + "empty": null +} diff --git a/testdata/yaml-test-suite/spec-example-7-18-flow-mapping-adjacent-values/in.yaml b/testdata/yaml-test-suite/spec-example-7-18-flow-mapping-adjacent-values/in.yaml new file mode 100644 index 00000000..7fc069c4 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-18-flow-mapping-adjacent-values/in.yaml @@ -0,0 +1,5 @@ +{ +"adjacent":value, +"readable": value, +"empty": +} diff --git a/testdata/yaml-test-suite/spec-example-7-18-flow-mapping-adjacent-values/out.yaml b/testdata/yaml-test-suite/spec-example-7-18-flow-mapping-adjacent-values/out.yaml new file mode 100644 index 00000000..b5e74d50 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-18-flow-mapping-adjacent-values/out.yaml @@ -0,0 +1,3 @@ +"adjacent": value +"readable": value +"empty": diff --git a/testdata/yaml-test-suite/spec-example-7-19-single-pair-flow-mappings/in.json b/testdata/yaml-test-suite/spec-example-7-19-single-pair-flow-mappings/in.json new file mode 100644 index 00000000..15925a44 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-19-single-pair-flow-mappings/in.json @@ -0,0 +1,5 @@ +[ + { + "foo": "bar" + } +] diff --git a/testdata/yaml-test-suite/spec-example-7-19-single-pair-flow-mappings/in.yaml b/testdata/yaml-test-suite/spec-example-7-19-single-pair-flow-mappings/in.yaml new file mode 100644 index 00000000..77f3eb3e --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-19-single-pair-flow-mappings/in.yaml @@ -0,0 +1,3 @@ +[ +foo: bar +] diff --git a/testdata/yaml-test-suite/spec-example-7-19-single-pair-flow-mappings/out.yaml b/testdata/yaml-test-suite/spec-example-7-19-single-pair-flow-mappings/out.yaml new file mode 100644 index 00000000..3867010c --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-19-single-pair-flow-mappings/out.yaml @@ -0,0 +1 @@ +- foo: bar diff --git a/testdata/yaml-test-suite/spec-example-7-2-empty-content/in.json b/testdata/yaml-test-suite/spec-example-7-2-empty-content/in.json new file mode 100644 index 00000000..e1b83221 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-2-empty-content/in.json @@ -0,0 +1,4 @@ +{ + "foo": "", + "": "bar" +} diff --git a/testdata/yaml-test-suite/spec-example-7-2-empty-content/in.yaml b/testdata/yaml-test-suite/spec-example-7-2-empty-content/in.yaml new file mode 100644 index 00000000..aa861037 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-2-empty-content/in.yaml @@ -0,0 +1,4 @@ +{ + foo : !!str, + !!str : bar, +} diff --git a/testdata/yaml-test-suite/spec-example-7-2-empty-content/out.yaml b/testdata/yaml-test-suite/spec-example-7-2-empty-content/out.yaml new file mode 100644 index 00000000..73021afd --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-2-empty-content/out.yaml @@ -0,0 +1,2 @@ +foo: !!str +!!str : bar diff --git a/testdata/yaml-test-suite/spec-example-7-20-single-pair-explicit-entry/in.json b/testdata/yaml-test-suite/spec-example-7-20-single-pair-explicit-entry/in.json new file mode 100644 index 00000000..6342cb23 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-20-single-pair-explicit-entry/in.json @@ -0,0 +1,5 @@ +[ + { + "foo bar": "baz" + } +] diff --git a/testdata/yaml-test-suite/spec-example-7-20-single-pair-explicit-entry/in.yaml b/testdata/yaml-test-suite/spec-example-7-20-single-pair-explicit-entry/in.yaml new file mode 100644 index 00000000..19dc4f58 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-20-single-pair-explicit-entry/in.yaml @@ -0,0 +1,4 @@ +[ +? foo + bar : baz +] diff --git a/testdata/yaml-test-suite/spec-example-7-20-single-pair-explicit-entry/out.yaml b/testdata/yaml-test-suite/spec-example-7-20-single-pair-explicit-entry/out.yaml new file mode 100644 index 00000000..16dd26eb --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-20-single-pair-explicit-entry/out.yaml @@ -0,0 +1 @@ +- foo bar: baz diff --git a/testdata/yaml-test-suite/spec-example-7-23-flow-content/in.json b/testdata/yaml-test-suite/spec-example-7-23-flow-content/in.json new file mode 100644 index 00000000..d88afe72 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-23-flow-content/in.json @@ -0,0 +1,12 @@ +[ + [ + "a", + "b" + ], + { + "a": "b" + }, + "a", + "b", + "c" +] diff --git a/testdata/yaml-test-suite/spec-example-7-23-flow-content/in.yaml b/testdata/yaml-test-suite/spec-example-7-23-flow-content/in.yaml new file mode 100644 index 00000000..f709dc84 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-23-flow-content/in.yaml @@ -0,0 +1,5 @@ +- [ a, b ] +- { a: b } +- "a" +- 'b' +- c diff --git a/testdata/yaml-test-suite/spec-example-7-23-flow-content/out.yaml b/testdata/yaml-test-suite/spec-example-7-23-flow-content/out.yaml new file mode 100644 index 00000000..16bb6a7c --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-23-flow-content/out.yaml @@ -0,0 +1,6 @@ +- - a + - b +- a: b +- "a" +- 'b' +- c diff --git a/testdata/yaml-test-suite/spec-example-7-24-flow-nodes/in.json b/testdata/yaml-test-suite/spec-example-7-24-flow-nodes/in.json new file mode 100644 index 00000000..fc128b80 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-24-flow-nodes/in.json @@ -0,0 +1,7 @@ +[ + "a", + "b", + "c", + "c", + "" +] diff --git a/testdata/yaml-test-suite/spec-example-7-24-flow-nodes/in.yaml b/testdata/yaml-test-suite/spec-example-7-24-flow-nodes/in.yaml new file mode 100644 index 00000000..db4007f3 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-24-flow-nodes/in.yaml @@ -0,0 +1,5 @@ +- !!str "a" +- 'b' +- &anchor "c" +- *anchor +- !!str diff --git a/testdata/yaml-test-suite/spec-example-7-3-completely-empty-flow-nodes/in.yaml b/testdata/yaml-test-suite/spec-example-7-3-completely-empty-flow-nodes/in.yaml new file mode 100644 index 00000000..f46900d1 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-3-completely-empty-flow-nodes/in.yaml @@ -0,0 +1,4 @@ +{ + ? foo :, + : bar, +} diff --git a/testdata/yaml-test-suite/spec-example-7-4-double-quoted-implicit-keys/in.json b/testdata/yaml-test-suite/spec-example-7-4-double-quoted-implicit-keys/in.json new file mode 100644 index 00000000..16ae65bb --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-4-double-quoted-implicit-keys/in.json @@ -0,0 +1,7 @@ +{ + "implicit block key": [ + { + "implicit flow key": "value" + } + ] +} diff --git a/testdata/yaml-test-suite/spec-example-7-4-double-quoted-implicit-keys/in.yaml b/testdata/yaml-test-suite/spec-example-7-4-double-quoted-implicit-keys/in.yaml new file mode 100644 index 00000000..1b7a5507 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-4-double-quoted-implicit-keys/in.yaml @@ -0,0 +1,3 @@ +"implicit block key" : [ + "implicit flow key" : value, + ] diff --git a/testdata/yaml-test-suite/spec-example-7-4-double-quoted-implicit-keys/out.yaml b/testdata/yaml-test-suite/spec-example-7-4-double-quoted-implicit-keys/out.yaml new file mode 100644 index 00000000..a17ebf91 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-4-double-quoted-implicit-keys/out.yaml @@ -0,0 +1,2 @@ +"implicit block key": +- "implicit flow key": value diff --git a/testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks-1-3/in.json b/testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks-1-3/in.json new file mode 100644 index 00000000..6ab37186 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks-1-3/in.json @@ -0,0 +1 @@ +"folded to a space,\nto a line feed, or \t \tnon-content" diff --git a/testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks-1-3/in.yaml b/testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks-1-3/in.yaml new file mode 100644 index 00000000..bf14c533 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks-1-3/in.yaml @@ -0,0 +1,6 @@ +--- +"folded +to a space, + +to a line feed, or \ + \ non-content" diff --git a/testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks-1-3/out.yaml b/testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks-1-3/out.yaml new file mode 100644 index 00000000..6ab37186 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks-1-3/out.yaml @@ -0,0 +1 @@ +"folded to a space,\nto a line feed, or \t \tnon-content" diff --git a/testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks/in.json b/testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks/in.json new file mode 100644 index 00000000..6ab37186 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks/in.json @@ -0,0 +1 @@ +"folded to a space,\nto a line feed, or \t \tnon-content" diff --git a/testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks/in.yaml b/testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks/in.yaml new file mode 100644 index 00000000..eda4b492 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks/in.yaml @@ -0,0 +1,5 @@ +"folded +to a space, + +to a line feed, or \ + \ non-content" diff --git a/testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks/out.yaml b/testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks/out.yaml new file mode 100644 index 00000000..6ab37186 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-5-double-quoted-line-breaks/out.yaml @@ -0,0 +1 @@ +"folded to a space,\nto a line feed, or \t \tnon-content" diff --git a/testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines-1-3/in.json b/testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines-1-3/in.json new file mode 100644 index 00000000..2dfab84d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines-1-3/in.json @@ -0,0 +1 @@ +" 1st non-empty\n2nd non-empty 3rd non-empty " diff --git a/testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines-1-3/in.yaml b/testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines-1-3/in.yaml new file mode 100644 index 00000000..5afb3f48 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines-1-3/in.yaml @@ -0,0 +1,5 @@ +--- +" 1st non-empty + + 2nd non-empty + 3rd non-empty " diff --git a/testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines-1-3/out.yaml b/testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines-1-3/out.yaml new file mode 100644 index 00000000..2dfab84d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines-1-3/out.yaml @@ -0,0 +1 @@ +" 1st non-empty\n2nd non-empty 3rd non-empty " diff --git a/testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines/in.json b/testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines/in.json new file mode 100644 index 00000000..2dfab84d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines/in.json @@ -0,0 +1 @@ +" 1st non-empty\n2nd non-empty 3rd non-empty " diff --git a/testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines/in.yaml b/testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines/in.yaml new file mode 100644 index 00000000..3d8b76da --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines/in.yaml @@ -0,0 +1,4 @@ +" 1st non-empty + + 2nd non-empty + 3rd non-empty " diff --git a/testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines/out.yaml b/testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines/out.yaml new file mode 100644 index 00000000..2dfab84d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-6-double-quoted-lines/out.yaml @@ -0,0 +1 @@ +" 1st non-empty\n2nd non-empty 3rd non-empty " diff --git a/testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters-1-3/in.json b/testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters-1-3/in.json new file mode 100644 index 00000000..fdc456c1 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters-1-3/in.json @@ -0,0 +1 @@ +"here's to \"quotes\"" diff --git a/testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters-1-3/in.yaml b/testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters-1-3/in.yaml new file mode 100644 index 00000000..15d41f02 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters-1-3/in.yaml @@ -0,0 +1,2 @@ +--- +'here''s to "quotes"' diff --git a/testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters-1-3/out.yaml b/testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters-1-3/out.yaml new file mode 100644 index 00000000..310f3c2a --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters-1-3/out.yaml @@ -0,0 +1 @@ +--- 'here''s to "quotes"' diff --git a/testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters/in.json b/testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters/in.json new file mode 100644 index 00000000..fdc456c1 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters/in.json @@ -0,0 +1 @@ +"here's to \"quotes\"" diff --git a/testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters/in.yaml b/testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters/in.yaml new file mode 100644 index 00000000..3efcb915 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-7-single-quoted-characters/in.yaml @@ -0,0 +1 @@ +'here''s to "quotes"' diff --git a/testdata/yaml-test-suite/spec-example-7-8-single-quoted-implicit-keys/in.json b/testdata/yaml-test-suite/spec-example-7-8-single-quoted-implicit-keys/in.json new file mode 100644 index 00000000..16ae65bb --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-8-single-quoted-implicit-keys/in.json @@ -0,0 +1,7 @@ +{ + "implicit block key": [ + { + "implicit flow key": "value" + } + ] +} diff --git a/testdata/yaml-test-suite/spec-example-7-8-single-quoted-implicit-keys/in.yaml b/testdata/yaml-test-suite/spec-example-7-8-single-quoted-implicit-keys/in.yaml new file mode 100644 index 00000000..f1baf58c --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-8-single-quoted-implicit-keys/in.yaml @@ -0,0 +1,3 @@ +'implicit block key' : [ + 'implicit flow key' : value, + ] diff --git a/testdata/yaml-test-suite/spec-example-7-8-single-quoted-implicit-keys/out.yaml b/testdata/yaml-test-suite/spec-example-7-8-single-quoted-implicit-keys/out.yaml new file mode 100644 index 00000000..46a8c4c2 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-8-single-quoted-implicit-keys/out.yaml @@ -0,0 +1,2 @@ +'implicit block key': +- 'implicit flow key': value diff --git a/testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines-1-3/in.json b/testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines-1-3/in.json new file mode 100644 index 00000000..2dfab84d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines-1-3/in.json @@ -0,0 +1 @@ +" 1st non-empty\n2nd non-empty 3rd non-empty " diff --git a/testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines-1-3/in.yaml b/testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines-1-3/in.yaml new file mode 100644 index 00000000..6cba7f16 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines-1-3/in.yaml @@ -0,0 +1,5 @@ +--- +' 1st non-empty + + 2nd non-empty + 3rd non-empty ' diff --git a/testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines-1-3/out.yaml b/testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines-1-3/out.yaml new file mode 100644 index 00000000..32a69436 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines-1-3/out.yaml @@ -0,0 +1,3 @@ +' 1st non-empty + + 2nd non-empty 3rd non-empty ' diff --git a/testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines/in.json b/testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines/in.json new file mode 100644 index 00000000..2dfab84d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines/in.json @@ -0,0 +1 @@ +" 1st non-empty\n2nd non-empty 3rd non-empty " diff --git a/testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines/in.yaml b/testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines/in.yaml new file mode 100644 index 00000000..6dd946e2 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines/in.yaml @@ -0,0 +1,4 @@ +' 1st non-empty + + 2nd non-empty + 3rd non-empty ' diff --git a/testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines/out.yaml b/testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines/out.yaml new file mode 100644 index 00000000..32a69436 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-7-9-single-quoted-lines/out.yaml @@ -0,0 +1,3 @@ +' 1st non-empty + + 2nd non-empty 3rd non-empty ' diff --git a/testdata/yaml-test-suite/spec-example-8-1-block-scalar-header/in.json b/testdata/yaml-test-suite/spec-example-8-1-block-scalar-header/in.json new file mode 100644 index 00000000..4e476d61 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-1-block-scalar-header/in.json @@ -0,0 +1,6 @@ +[ + "literal\n", + " folded\n", + "keep\n\n", + " strip" +] diff --git a/testdata/yaml-test-suite/spec-example-8-1-block-scalar-header/in.yaml b/testdata/yaml-test-suite/spec-example-8-1-block-scalar-header/in.yaml new file mode 100644 index 00000000..1dbadca3 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-1-block-scalar-header/in.yaml @@ -0,0 +1,9 @@ +- | # Empty header↓ + literal +- >1 # Indentation indicator↓ + folded +- |+ # Chomping indicator↓ + keep + +- >1- # Both indicators↓ + strip diff --git a/testdata/yaml-test-suite/spec-example-8-1-block-scalar-header/out.yaml b/testdata/yaml-test-suite/spec-example-8-1-block-scalar-header/out.yaml new file mode 100644 index 00000000..afd7be1e --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-1-block-scalar-header/out.yaml @@ -0,0 +1,9 @@ +- | + literal +- >2 + folded +- |+ + keep + +- >2- + strip diff --git a/testdata/yaml-test-suite/spec-example-8-10-folded-lines-8-13-final-empty-lines/in.json b/testdata/yaml-test-suite/spec-example-8-10-folded-lines-8-13-final-empty-lines/in.json new file mode 100644 index 00000000..f52f875b --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-10-folded-lines-8-13-final-empty-lines/in.json @@ -0,0 +1 @@ +"\nfolded line\nnext line\n * bullet\n\n * list\n * lines\n\nlast line\n" diff --git a/testdata/yaml-test-suite/spec-example-8-10-folded-lines-8-13-final-empty-lines/in.yaml b/testdata/yaml-test-suite/spec-example-8-10-folded-lines-8-13-final-empty-lines/in.yaml new file mode 100644 index 00000000..992dd76c --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-10-folded-lines-8-13-final-empty-lines/in.yaml @@ -0,0 +1,16 @@ +> + + folded + line + + next + line + * bullet + + * list + * lines + + last + line + +# Comment diff --git a/testdata/yaml-test-suite/spec-example-8-10-folded-lines-8-13-final-empty-lines/out.yaml b/testdata/yaml-test-suite/spec-example-8-10-folded-lines-8-13-final-empty-lines/out.yaml new file mode 100644 index 00000000..2959aa23 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-10-folded-lines-8-13-final-empty-lines/out.yaml @@ -0,0 +1,11 @@ +> + + folded line + + next line + * bullet + + * list + * lines + + last line diff --git a/testdata/yaml-test-suite/spec-example-8-14-block-sequence/in.json b/testdata/yaml-test-suite/spec-example-8-14-block-sequence/in.json new file mode 100644 index 00000000..ad5c0547 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-14-block-sequence/in.json @@ -0,0 +1,8 @@ +{ + "block sequence": [ + "one", + { + "two": "three" + } + ] +} diff --git a/testdata/yaml-test-suite/spec-example-8-14-block-sequence/in.yaml b/testdata/yaml-test-suite/spec-example-8-14-block-sequence/in.yaml new file mode 100644 index 00000000..d2f2ccfb --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-14-block-sequence/in.yaml @@ -0,0 +1,3 @@ +block sequence: + - one + - two : three diff --git a/testdata/yaml-test-suite/spec-example-8-14-block-sequence/out.yaml b/testdata/yaml-test-suite/spec-example-8-14-block-sequence/out.yaml new file mode 100644 index 00000000..503c6a15 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-14-block-sequence/out.yaml @@ -0,0 +1,3 @@ +block sequence: +- one +- two: three diff --git a/testdata/yaml-test-suite/spec-example-8-15-block-sequence-entry-types/in.json b/testdata/yaml-test-suite/spec-example-8-15-block-sequence-entry-types/in.json new file mode 100644 index 00000000..b277eb8c --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-15-block-sequence-entry-types/in.json @@ -0,0 +1,11 @@ +[ + null, + "block node\n", + [ + "one", + "two" + ], + { + "one": "two" + } +] diff --git a/testdata/yaml-test-suite/spec-example-8-15-block-sequence-entry-types/in.yaml b/testdata/yaml-test-suite/spec-example-8-15-block-sequence-entry-types/in.yaml new file mode 100644 index 00000000..35ac9236 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-15-block-sequence-entry-types/in.yaml @@ -0,0 +1,6 @@ +- # Empty +- | + block node +- - one # Compact + - two # sequence +- one: two # Compact mapping diff --git a/testdata/yaml-test-suite/spec-example-8-15-block-sequence-entry-types/out.yaml b/testdata/yaml-test-suite/spec-example-8-15-block-sequence-entry-types/out.yaml new file mode 100644 index 00000000..e29b4412 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-15-block-sequence-entry-types/out.yaml @@ -0,0 +1,6 @@ +- +- | + block node +- - one + - two +- one: two diff --git a/testdata/yaml-test-suite/spec-example-8-16-block-mappings/in.json b/testdata/yaml-test-suite/spec-example-8-16-block-mappings/in.json new file mode 100644 index 00000000..1f5b2906 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-16-block-mappings/in.json @@ -0,0 +1,5 @@ +{ + "block mapping": { + "key": "value" + } +} diff --git a/testdata/yaml-test-suite/spec-example-8-16-block-mappings/in.yaml b/testdata/yaml-test-suite/spec-example-8-16-block-mappings/in.yaml new file mode 100644 index 00000000..2ef9084a --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-16-block-mappings/in.yaml @@ -0,0 +1,2 @@ +block mapping: + key: value diff --git a/testdata/yaml-test-suite/spec-example-8-16-block-mappings/out.yaml b/testdata/yaml-test-suite/spec-example-8-16-block-mappings/out.yaml new file mode 100644 index 00000000..9d2c5b5b --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-16-block-mappings/out.yaml @@ -0,0 +1,2 @@ +block mapping: + key: value diff --git a/testdata/yaml-test-suite/spec-example-8-17-explicit-block-mapping-entries/in.json b/testdata/yaml-test-suite/spec-example-8-17-explicit-block-mapping-entries/in.json new file mode 100644 index 00000000..35361a5a --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-17-explicit-block-mapping-entries/in.json @@ -0,0 +1,7 @@ +{ + "explicit key": null, + "block key\n": [ + "one", + "two" + ] +} diff --git a/testdata/yaml-test-suite/spec-example-8-17-explicit-block-mapping-entries/in.yaml b/testdata/yaml-test-suite/spec-example-8-17-explicit-block-mapping-entries/in.yaml new file mode 100644 index 00000000..cb0cfd06 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-17-explicit-block-mapping-entries/in.yaml @@ -0,0 +1,5 @@ +? explicit key # Empty value +? | + block key +: - one # Explicit compact + - two # block value diff --git a/testdata/yaml-test-suite/spec-example-8-17-explicit-block-mapping-entries/out.yaml b/testdata/yaml-test-suite/spec-example-8-17-explicit-block-mapping-entries/out.yaml new file mode 100644 index 00000000..f66e4eca --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-17-explicit-block-mapping-entries/out.yaml @@ -0,0 +1,5 @@ +explicit key: +? | + block key +: - one + - two diff --git a/testdata/yaml-test-suite/spec-example-8-18-implicit-block-mapping-entries/in.yaml b/testdata/yaml-test-suite/spec-example-8-18-implicit-block-mapping-entries/in.yaml new file mode 100644 index 00000000..c8195122 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-18-implicit-block-mapping-entries/in.yaml @@ -0,0 +1,4 @@ +plain key: in-line value +: # Both empty +"quoted key": +- entry diff --git a/testdata/yaml-test-suite/spec-example-8-19-compact-block-mappings/in.yaml b/testdata/yaml-test-suite/spec-example-8-19-compact-block-mappings/in.yaml new file mode 100644 index 00000000..d675cfd6 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-19-compact-block-mappings/in.yaml @@ -0,0 +1,3 @@ +- sun: yellow +- ? earth: blue + : moon: white diff --git a/testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator-1-3/in.json b/testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator-1-3/in.json new file mode 100644 index 00000000..6963db1f --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator-1-3/in.json @@ -0,0 +1,6 @@ +[ + "detected\n", + "\n\n# detected\n", + " explicit\n", + "detected\n" +] diff --git a/testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator-1-3/in.yaml b/testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator-1-3/in.yaml new file mode 100644 index 00000000..079de26a --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator-1-3/in.yaml @@ -0,0 +1,10 @@ +- | + detected +- > + + + # detected +- |1 + explicit +- > + detected diff --git a/testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator/in.json b/testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator/in.json new file mode 100644 index 00000000..f84df1f1 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator/in.json @@ -0,0 +1,6 @@ +[ + "detected\n", + "\n\n# detected\n", + " explicit\n", + "\t\ndetected\n" +] diff --git a/testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator/in.yaml b/testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator/in.yaml new file mode 100644 index 00000000..39bee044 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator/in.yaml @@ -0,0 +1,11 @@ +- | + detected +- > + + + # detected +- |1 + explicit +- > + + detected diff --git a/testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator/out.yaml b/testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator/out.yaml new file mode 100644 index 00000000..cf5a936c --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-2-block-indentation-indicator/out.yaml @@ -0,0 +1,9 @@ +- | + detected +- >2 + + + # detected +- |2 + explicit +- "\t\ndetected\n" diff --git a/testdata/yaml-test-suite/spec-example-8-20-block-node-types/in.json b/testdata/yaml-test-suite/spec-example-8-20-block-node-types/in.json new file mode 100644 index 00000000..0cca491a --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-20-block-node-types/in.json @@ -0,0 +1,7 @@ +[ + "flow in block", + "Block scalar\n", + { + "foo": "bar" + } +] diff --git a/testdata/yaml-test-suite/spec-example-8-20-block-node-types/in.yaml b/testdata/yaml-test-suite/spec-example-8-20-block-node-types/in.yaml new file mode 100644 index 00000000..a3f13ae6 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-20-block-node-types/in.yaml @@ -0,0 +1,6 @@ +- + "flow in block" +- > + Block scalar +- !!map # Block collection + foo : bar diff --git a/testdata/yaml-test-suite/spec-example-8-20-block-node-types/out.yaml b/testdata/yaml-test-suite/spec-example-8-20-block-node-types/out.yaml new file mode 100644 index 00000000..e26ea60c --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-20-block-node-types/out.yaml @@ -0,0 +1,5 @@ +- "flow in block" +- > + Block scalar +- !!map + foo: bar diff --git a/testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes-1-3/in.json b/testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes-1-3/in.json new file mode 100644 index 00000000..f1eedb02 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes-1-3/in.json @@ -0,0 +1,4 @@ +{ + "literal": "value\n", + "folded": "value\n" +} diff --git a/testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes-1-3/in.yaml b/testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes-1-3/in.yaml new file mode 100644 index 00000000..69122ac9 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes-1-3/in.yaml @@ -0,0 +1,4 @@ +literal: |2 + value +folded: !foo >1 + value diff --git a/testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes-1-3/out.yaml b/testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes-1-3/out.yaml new file mode 100644 index 00000000..0645c555 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes-1-3/out.yaml @@ -0,0 +1,4 @@ +literal: | + value +folded: !foo > + value diff --git a/testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes/in.json b/testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes/in.json new file mode 100644 index 00000000..f1eedb02 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes/in.json @@ -0,0 +1,4 @@ +{ + "literal": "value\n", + "folded": "value\n" +} diff --git a/testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes/in.yaml b/testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes/in.yaml new file mode 100644 index 00000000..f86be74a --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes/in.yaml @@ -0,0 +1,6 @@ +literal: |2 + value +folded: + !foo + >1 + value diff --git a/testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes/out.yaml b/testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes/out.yaml new file mode 100644 index 00000000..0645c555 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-21-block-scalar-nodes/out.yaml @@ -0,0 +1,4 @@ +literal: | + value +folded: !foo > + value diff --git a/testdata/yaml-test-suite/spec-example-8-22-block-collection-nodes/in.json b/testdata/yaml-test-suite/spec-example-8-22-block-collection-nodes/in.json new file mode 100644 index 00000000..ed69b210 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-22-block-collection-nodes/in.json @@ -0,0 +1,11 @@ +{ + "sequence": [ + "entry", + [ + "nested" + ] + ], + "mapping": { + "foo": "bar" + } +} diff --git a/testdata/yaml-test-suite/spec-example-8-22-block-collection-nodes/in.yaml b/testdata/yaml-test-suite/spec-example-8-22-block-collection-nodes/in.yaml new file mode 100644 index 00000000..5c596699 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-22-block-collection-nodes/in.yaml @@ -0,0 +1,6 @@ +sequence: !!seq +- entry +- !!seq + - nested +mapping: !!map + foo: bar diff --git a/testdata/yaml-test-suite/spec-example-8-22-block-collection-nodes/out.yaml b/testdata/yaml-test-suite/spec-example-8-22-block-collection-nodes/out.yaml new file mode 100644 index 00000000..29a609d2 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-22-block-collection-nodes/out.yaml @@ -0,0 +1,6 @@ +sequence: !!seq +- entry +- !!seq + - nested +mapping: !!map + foo: bar diff --git a/testdata/yaml-test-suite/spec-example-8-4-chomping-final-line-break/in.json b/testdata/yaml-test-suite/spec-example-8-4-chomping-final-line-break/in.json new file mode 100644 index 00000000..50e1907e --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-4-chomping-final-line-break/in.json @@ -0,0 +1,5 @@ +{ + "strip": "text", + "clip": "text\n", + "keep": "text\n" +} diff --git a/testdata/yaml-test-suite/spec-example-8-4-chomping-final-line-break/in.yaml b/testdata/yaml-test-suite/spec-example-8-4-chomping-final-line-break/in.yaml new file mode 100644 index 00000000..fa6190fd --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-4-chomping-final-line-break/in.yaml @@ -0,0 +1,6 @@ +strip: |- + text +clip: | + text +keep: |+ + text diff --git a/testdata/yaml-test-suite/spec-example-8-4-chomping-final-line-break/out.yaml b/testdata/yaml-test-suite/spec-example-8-4-chomping-final-line-break/out.yaml new file mode 100644 index 00000000..665751cc --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-4-chomping-final-line-break/out.yaml @@ -0,0 +1,6 @@ +strip: |- + text +clip: | + text +keep: | + text diff --git a/testdata/yaml-test-suite/spec-example-8-5-chomping-trailing-lines/in.json b/testdata/yaml-test-suite/spec-example-8-5-chomping-trailing-lines/in.json new file mode 100644 index 00000000..4dfaa4e3 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-5-chomping-trailing-lines/in.json @@ -0,0 +1,5 @@ +{ + "strip": "# text", + "clip": "# text\n", + "keep": "# text\n\n" +} diff --git a/testdata/yaml-test-suite/spec-example-8-5-chomping-trailing-lines/in.yaml b/testdata/yaml-test-suite/spec-example-8-5-chomping-trailing-lines/in.yaml new file mode 100644 index 00000000..32fa08f0 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-5-chomping-trailing-lines/in.yaml @@ -0,0 +1,19 @@ + # Strip + # Comments: +strip: |- + # text + + # Clip + # comments: + +clip: | + # text + + # Keep + # comments: + +keep: |+ + # text + + # Trail + # comments. diff --git a/testdata/yaml-test-suite/spec-example-8-5-chomping-trailing-lines/out.yaml b/testdata/yaml-test-suite/spec-example-8-5-chomping-trailing-lines/out.yaml new file mode 100644 index 00000000..93f7c8cc --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-5-chomping-trailing-lines/out.yaml @@ -0,0 +1,8 @@ +strip: |- + # text +clip: | + # text +keep: |+ + # text + +... diff --git a/testdata/yaml-test-suite/spec-example-8-6-empty-scalar-chomping/in.json b/testdata/yaml-test-suite/spec-example-8-6-empty-scalar-chomping/in.json new file mode 100644 index 00000000..d63b700d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-6-empty-scalar-chomping/in.json @@ -0,0 +1,5 @@ +{ + "strip": "", + "clip": "", + "keep": "\n" +} diff --git a/testdata/yaml-test-suite/spec-example-8-6-empty-scalar-chomping/in.yaml b/testdata/yaml-test-suite/spec-example-8-6-empty-scalar-chomping/in.yaml new file mode 100644 index 00000000..de0b64bb --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-6-empty-scalar-chomping/in.yaml @@ -0,0 +1,6 @@ +strip: >- + +clip: > + +keep: |+ + diff --git a/testdata/yaml-test-suite/spec-example-8-6-empty-scalar-chomping/out.yaml b/testdata/yaml-test-suite/spec-example-8-6-empty-scalar-chomping/out.yaml new file mode 100644 index 00000000..3598690c --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-6-empty-scalar-chomping/out.yaml @@ -0,0 +1,5 @@ +strip: "" +clip: "" +keep: |2+ + +... diff --git a/testdata/yaml-test-suite/spec-example-8-7-literal-scalar-1-3/in.json b/testdata/yaml-test-suite/spec-example-8-7-literal-scalar-1-3/in.json new file mode 100644 index 00000000..2e190c65 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-7-literal-scalar-1-3/in.json @@ -0,0 +1 @@ +"literal\n\ttext\n" diff --git a/testdata/yaml-test-suite/spec-example-8-7-literal-scalar-1-3/in.yaml b/testdata/yaml-test-suite/spec-example-8-7-literal-scalar-1-3/in.yaml new file mode 100644 index 00000000..7ca4172f --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-7-literal-scalar-1-3/in.yaml @@ -0,0 +1,5 @@ +--- | + literal + text + + diff --git a/testdata/yaml-test-suite/spec-example-8-7-literal-scalar-1-3/out.yaml b/testdata/yaml-test-suite/spec-example-8-7-literal-scalar-1-3/out.yaml new file mode 100644 index 00000000..2e190c65 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-7-literal-scalar-1-3/out.yaml @@ -0,0 +1 @@ +"literal\n\ttext\n" diff --git a/testdata/yaml-test-suite/spec-example-8-7-literal-scalar/in.json b/testdata/yaml-test-suite/spec-example-8-7-literal-scalar/in.json new file mode 100644 index 00000000..2e190c65 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-7-literal-scalar/in.json @@ -0,0 +1 @@ +"literal\n\ttext\n" diff --git a/testdata/yaml-test-suite/spec-example-8-7-literal-scalar/in.yaml b/testdata/yaml-test-suite/spec-example-8-7-literal-scalar/in.yaml new file mode 100644 index 00000000..31f9966a --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-7-literal-scalar/in.yaml @@ -0,0 +1,5 @@ +| + literal + text + + diff --git a/testdata/yaml-test-suite/spec-example-8-7-literal-scalar/out.yaml b/testdata/yaml-test-suite/spec-example-8-7-literal-scalar/out.yaml new file mode 100644 index 00000000..6a9a8799 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-7-literal-scalar/out.yaml @@ -0,0 +1,3 @@ +| + literal + text diff --git a/testdata/yaml-test-suite/spec-example-8-8-literal-content-1-3/in.json b/testdata/yaml-test-suite/spec-example-8-8-literal-content-1-3/in.json new file mode 100644 index 00000000..6383f8df --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-8-literal-content-1-3/in.json @@ -0,0 +1 @@ +"\n\nliteral\n \n\ntext\n" diff --git a/testdata/yaml-test-suite/spec-example-8-8-literal-content-1-3/in.yaml b/testdata/yaml-test-suite/spec-example-8-8-literal-content-1-3/in.yaml new file mode 100644 index 00000000..156b6d08 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-8-literal-content-1-3/in.yaml @@ -0,0 +1,9 @@ +--- | + + + literal + + + text + + # Comment diff --git a/testdata/yaml-test-suite/spec-example-8-8-literal-content-1-3/out.yaml b/testdata/yaml-test-suite/spec-example-8-8-literal-content-1-3/out.yaml new file mode 100644 index 00000000..6383f8df --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-8-literal-content-1-3/out.yaml @@ -0,0 +1 @@ +"\n\nliteral\n \n\ntext\n" diff --git a/testdata/yaml-test-suite/spec-example-8-8-literal-content/in.json b/testdata/yaml-test-suite/spec-example-8-8-literal-content/in.json new file mode 100644 index 00000000..6383f8df --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-8-literal-content/in.json @@ -0,0 +1 @@ +"\n\nliteral\n \n\ntext\n" diff --git a/testdata/yaml-test-suite/spec-example-8-8-literal-content/in.yaml b/testdata/yaml-test-suite/spec-example-8-8-literal-content/in.yaml new file mode 100644 index 00000000..9d537cb5 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-8-literal-content/in.yaml @@ -0,0 +1,9 @@ +| + + + literal + + + text + + # Comment diff --git a/testdata/yaml-test-suite/spec-example-8-8-literal-content/out.yaml b/testdata/yaml-test-suite/spec-example-8-8-literal-content/out.yaml new file mode 100644 index 00000000..6383f8df --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-8-literal-content/out.yaml @@ -0,0 +1 @@ +"\n\nliteral\n \n\ntext\n" diff --git a/testdata/yaml-test-suite/spec-example-8-9-folded-scalar-1-3/in.json b/testdata/yaml-test-suite/spec-example-8-9-folded-scalar-1-3/in.json new file mode 100644 index 00000000..d5cf354a --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-9-folded-scalar-1-3/in.json @@ -0,0 +1 @@ +"folded text\n" diff --git a/testdata/yaml-test-suite/spec-example-8-9-folded-scalar-1-3/in.yaml b/testdata/yaml-test-suite/spec-example-8-9-folded-scalar-1-3/in.yaml new file mode 100644 index 00000000..668490c8 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-9-folded-scalar-1-3/in.yaml @@ -0,0 +1,5 @@ +--- > + folded + text + + diff --git a/testdata/yaml-test-suite/spec-example-8-9-folded-scalar-1-3/out.yaml b/testdata/yaml-test-suite/spec-example-8-9-folded-scalar-1-3/out.yaml new file mode 100644 index 00000000..40f63715 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-9-folded-scalar-1-3/out.yaml @@ -0,0 +1,2 @@ +> + folded text diff --git a/testdata/yaml-test-suite/spec-example-8-9-folded-scalar/in.json b/testdata/yaml-test-suite/spec-example-8-9-folded-scalar/in.json new file mode 100644 index 00000000..d5cf354a --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-9-folded-scalar/in.json @@ -0,0 +1 @@ +"folded text\n" diff --git a/testdata/yaml-test-suite/spec-example-8-9-folded-scalar/in.yaml b/testdata/yaml-test-suite/spec-example-8-9-folded-scalar/in.yaml new file mode 100644 index 00000000..078fbc89 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-9-folded-scalar/in.yaml @@ -0,0 +1,5 @@ +> + folded + text + + diff --git a/testdata/yaml-test-suite/spec-example-8-9-folded-scalar/out.yaml b/testdata/yaml-test-suite/spec-example-8-9-folded-scalar/out.yaml new file mode 100644 index 00000000..40f63715 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-8-9-folded-scalar/out.yaml @@ -0,0 +1,2 @@ +> + folded text diff --git a/testdata/yaml-test-suite/spec-example-9-2-document-markers/in.json b/testdata/yaml-test-suite/spec-example-9-2-document-markers/in.json new file mode 100644 index 00000000..f1131dec --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-9-2-document-markers/in.json @@ -0,0 +1 @@ +"Document" diff --git a/testdata/yaml-test-suite/spec-example-9-2-document-markers/in.yaml b/testdata/yaml-test-suite/spec-example-9-2-document-markers/in.yaml new file mode 100644 index 00000000..886e5744 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-9-2-document-markers/in.yaml @@ -0,0 +1,4 @@ +%YAML 1.2 +--- +Document +... # Suffix diff --git a/testdata/yaml-test-suite/spec-example-9-2-document-markers/out.yaml b/testdata/yaml-test-suite/spec-example-9-2-document-markers/out.yaml new file mode 100644 index 00000000..de280101 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-9-2-document-markers/out.yaml @@ -0,0 +1,2 @@ +--- Document +... diff --git a/testdata/yaml-test-suite/spec-example-9-3-bare-documents/in.json b/testdata/yaml-test-suite/spec-example-9-3-bare-documents/in.json new file mode 100644 index 00000000..7f59d090 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-9-3-bare-documents/in.json @@ -0,0 +1,2 @@ +"Bare document" +"%!PS-Adobe-2.0 # Not the first line\n" diff --git a/testdata/yaml-test-suite/spec-example-9-3-bare-documents/in.yaml b/testdata/yaml-test-suite/spec-example-9-3-bare-documents/in.yaml new file mode 100644 index 00000000..57423e90 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-9-3-bare-documents/in.yaml @@ -0,0 +1,7 @@ +Bare +document +... +# No document +... +| +%!PS-Adobe-2.0 # Not the first line diff --git a/testdata/yaml-test-suite/spec-example-9-4-explicit-documents/in.json b/testdata/yaml-test-suite/spec-example-9-4-explicit-documents/in.json new file mode 100644 index 00000000..587bbf44 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-9-4-explicit-documents/in.json @@ -0,0 +1,4 @@ +{ + "matches %": 20 +} +null diff --git a/testdata/yaml-test-suite/spec-example-9-4-explicit-documents/in.yaml b/testdata/yaml-test-suite/spec-example-9-4-explicit-documents/in.yaml new file mode 100644 index 00000000..bc363b1c --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-9-4-explicit-documents/in.yaml @@ -0,0 +1,7 @@ +--- +{ matches +% : 20 } +... +--- +# Empty +... diff --git a/testdata/yaml-test-suite/spec-example-9-4-explicit-documents/out.yaml b/testdata/yaml-test-suite/spec-example-9-4-explicit-documents/out.yaml new file mode 100644 index 00000000..3763137c --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-9-4-explicit-documents/out.yaml @@ -0,0 +1,5 @@ +--- +matches %: 20 +... +--- +... diff --git a/testdata/yaml-test-suite/spec-example-9-5-directives-documents/in.json b/testdata/yaml-test-suite/spec-example-9-5-directives-documents/in.json new file mode 100644 index 00000000..c9dfdfef --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-9-5-directives-documents/in.json @@ -0,0 +1,2 @@ +"%!PS-Adobe-2.0\n" +null diff --git a/testdata/yaml-test-suite/spec-example-9-5-directives-documents/in.yaml b/testdata/yaml-test-suite/spec-example-9-5-directives-documents/in.yaml new file mode 100644 index 00000000..82de01b9 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-9-5-directives-documents/in.yaml @@ -0,0 +1,8 @@ +%YAML 1.2 +--- | +%!PS-Adobe-2.0 +... +%YAML 1.2 +--- +# Empty +... diff --git a/testdata/yaml-test-suite/spec-example-9-5-directives-documents/out.yaml b/testdata/yaml-test-suite/spec-example-9-5-directives-documents/out.yaml new file mode 100644 index 00000000..18849594 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-9-5-directives-documents/out.yaml @@ -0,0 +1,5 @@ +--- | + %!PS-Adobe-2.0 +... +--- +... diff --git a/testdata/yaml-test-suite/spec-example-9-6-stream-1-3/in.json b/testdata/yaml-test-suite/spec-example-9-6-stream-1-3/in.json new file mode 100644 index 00000000..e2111608 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-9-6-stream-1-3/in.json @@ -0,0 +1,7 @@ +{ + "Mapping": "Document" +} +null +{ + "matches %": 20 +} diff --git a/testdata/yaml-test-suite/spec-example-9-6-stream-1-3/in.yaml b/testdata/yaml-test-suite/spec-example-9-6-stream-1-3/in.yaml new file mode 100644 index 00000000..7ec08e89 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-9-6-stream-1-3/in.yaml @@ -0,0 +1,7 @@ +Mapping: Document +--- +# Empty +... +%YAML 1.2 +--- +matches %: 20 diff --git a/testdata/yaml-test-suite/spec-example-9-6-stream/in.json b/testdata/yaml-test-suite/spec-example-9-6-stream/in.json new file mode 100644 index 00000000..b637cb95 --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-9-6-stream/in.json @@ -0,0 +1,5 @@ +"Document" +null +{ + "matches %": 20 +} diff --git a/testdata/yaml-test-suite/spec-example-9-6-stream/in.yaml b/testdata/yaml-test-suite/spec-example-9-6-stream/in.yaml new file mode 100644 index 00000000..52bd345d --- /dev/null +++ b/testdata/yaml-test-suite/spec-example-9-6-stream/in.yaml @@ -0,0 +1,7 @@ +Document +--- +# Empty +... +%YAML 1.2 +--- +matches %: 20 diff --git a/testdata/yaml-test-suite/syntax-character-edge-cases/00/in.yaml b/testdata/yaml-test-suite/syntax-character-edge-cases/00/in.yaml new file mode 100644 index 00000000..e275119f --- /dev/null +++ b/testdata/yaml-test-suite/syntax-character-edge-cases/00/in.yaml @@ -0,0 +1 @@ +- : diff --git a/testdata/yaml-test-suite/syntax-character-edge-cases/01/in.json b/testdata/yaml-test-suite/syntax-character-edge-cases/01/in.json new file mode 100644 index 00000000..f32d2e7e --- /dev/null +++ b/testdata/yaml-test-suite/syntax-character-edge-cases/01/in.json @@ -0,0 +1,3 @@ +{ + ":": null +} diff --git a/testdata/yaml-test-suite/syntax-character-edge-cases/01/in.yaml b/testdata/yaml-test-suite/syntax-character-edge-cases/01/in.yaml new file mode 100644 index 00000000..bef3763b --- /dev/null +++ b/testdata/yaml-test-suite/syntax-character-edge-cases/01/in.yaml @@ -0,0 +1 @@ +:: diff --git a/testdata/yaml-test-suite/syntax-character-edge-cases/02/in.yaml b/testdata/yaml-test-suite/syntax-character-edge-cases/02/in.yaml new file mode 100644 index 00000000..cdf4cb4f --- /dev/null +++ b/testdata/yaml-test-suite/syntax-character-edge-cases/02/in.yaml @@ -0,0 +1 @@ +! diff --git a/testdata/yaml-test-suite/tab-after-document-header/in.json b/testdata/yaml-test-suite/tab-after-document-header/in.json new file mode 100644 index 00000000..6dbc3113 --- /dev/null +++ b/testdata/yaml-test-suite/tab-after-document-header/in.json @@ -0,0 +1 @@ +"scalar" diff --git a/testdata/yaml-test-suite/tab-after-document-header/in.yaml b/testdata/yaml-test-suite/tab-after-document-header/in.yaml new file mode 100644 index 00000000..8171dcce --- /dev/null +++ b/testdata/yaml-test-suite/tab-after-document-header/in.yaml @@ -0,0 +1 @@ +--- scalar diff --git a/testdata/yaml-test-suite/tab-after-document-header/out.yaml b/testdata/yaml-test-suite/tab-after-document-header/out.yaml new file mode 100644 index 00000000..522d4531 --- /dev/null +++ b/testdata/yaml-test-suite/tab-after-document-header/out.yaml @@ -0,0 +1,2 @@ +--- scalar +... diff --git a/testdata/yaml-test-suite/tab-at-beginning-of-line-followed-by-a-flow-mapping/in.json b/testdata/yaml-test-suite/tab-at-beginning-of-line-followed-by-a-flow-mapping/in.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/testdata/yaml-test-suite/tab-at-beginning-of-line-followed-by-a-flow-mapping/in.json @@ -0,0 +1 @@ +{} diff --git a/testdata/yaml-test-suite/tab-at-beginning-of-line-followed-by-a-flow-mapping/in.yaml b/testdata/yaml-test-suite/tab-at-beginning-of-line-followed-by-a-flow-mapping/in.yaml new file mode 100644 index 00000000..db07de09 --- /dev/null +++ b/testdata/yaml-test-suite/tab-at-beginning-of-line-followed-by-a-flow-mapping/in.yaml @@ -0,0 +1 @@ + {} diff --git a/testdata/yaml-test-suite/tab-at-beginning-of-line-followed-by-a-flow-mapping/out.yaml b/testdata/yaml-test-suite/tab-at-beginning-of-line-followed-by-a-flow-mapping/out.yaml new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/testdata/yaml-test-suite/tab-at-beginning-of-line-followed-by-a-flow-mapping/out.yaml @@ -0,0 +1 @@ +{} diff --git a/testdata/yaml-test-suite/tab-indented-top-flow/in.json b/testdata/yaml-test-suite/tab-indented-top-flow/in.json new file mode 100644 index 00000000..fe51488c --- /dev/null +++ b/testdata/yaml-test-suite/tab-indented-top-flow/in.json @@ -0,0 +1 @@ +[] diff --git a/testdata/yaml-test-suite/tab-indented-top-flow/in.yaml b/testdata/yaml-test-suite/tab-indented-top-flow/in.yaml new file mode 100644 index 00000000..26a80a66 --- /dev/null +++ b/testdata/yaml-test-suite/tab-indented-top-flow/in.yaml @@ -0,0 +1,2 @@ + [ + ] diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/000/error b/testdata/yaml-test-suite/tabs-in-various-contexts/000/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/000/in.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/000/in.yaml new file mode 100644 index 00000000..4e552718 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/000/in.yaml @@ -0,0 +1,3 @@ +foo: | + +bar: 1 diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/001/in.json b/testdata/yaml-test-suite/tabs-in-various-contexts/001/in.json new file mode 100644 index 00000000..687c5503 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/001/in.json @@ -0,0 +1,4 @@ +{ + "foo": "\t\n", + "bar": 1 +} diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/001/in.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/001/in.yaml new file mode 100644 index 00000000..3c2e414a --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/001/in.yaml @@ -0,0 +1,3 @@ +foo: | + +bar: 1 diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/001/out.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/001/out.yaml new file mode 100644 index 00000000..9368450b --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/001/out.yaml @@ -0,0 +1,3 @@ +foo: | + +bar: 1 diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/002/in.json b/testdata/yaml-test-suite/tabs-in-various-contexts/002/in.json new file mode 100644 index 00000000..4e8764e7 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/002/in.json @@ -0,0 +1,5 @@ +[ + [ + "foo" + ] +] diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/002/in.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/002/in.yaml new file mode 100644 index 00000000..6b6ad5d5 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/002/in.yaml @@ -0,0 +1,4 @@ +- [ + + foo + ] diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/002/out.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/002/out.yaml new file mode 100644 index 00000000..ea929290 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/002/out.yaml @@ -0,0 +1 @@ +- - foo diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/003/error b/testdata/yaml-test-suite/tabs-in-various-contexts/003/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/003/in.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/003/in.yaml new file mode 100644 index 00000000..8585471c --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/003/in.yaml @@ -0,0 +1,4 @@ +- [ + foo, + foo + ] diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/003/out.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/003/out.yaml new file mode 100644 index 00000000..ea929290 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/003/out.yaml @@ -0,0 +1 @@ +- - foo diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/004/error b/testdata/yaml-test-suite/tabs-in-various-contexts/004/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/004/in.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/004/in.yaml new file mode 100644 index 00000000..0806e5a9 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/004/in.yaml @@ -0,0 +1 @@ +- - diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/004/out.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/004/out.yaml new file mode 100644 index 00000000..ea929290 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/004/out.yaml @@ -0,0 +1 @@ +- - foo diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/005/error b/testdata/yaml-test-suite/tabs-in-various-contexts/005/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/005/in.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/005/in.yaml new file mode 100644 index 00000000..ec674043 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/005/in.yaml @@ -0,0 +1 @@ +- - diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/005/out.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/005/out.yaml new file mode 100644 index 00000000..ea929290 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/005/out.yaml @@ -0,0 +1 @@ +- - foo diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/006/error b/testdata/yaml-test-suite/tabs-in-various-contexts/006/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/006/in.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/006/in.yaml new file mode 100644 index 00000000..5c42b44b --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/006/in.yaml @@ -0,0 +1 @@ +? - diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/006/out.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/006/out.yaml new file mode 100644 index 00000000..ea929290 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/006/out.yaml @@ -0,0 +1 @@ +- - foo diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/007/error b/testdata/yaml-test-suite/tabs-in-various-contexts/007/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/007/in.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/007/in.yaml new file mode 100644 index 00000000..4f3691a2 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/007/in.yaml @@ -0,0 +1,2 @@ +? - +: - diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/007/out.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/007/out.yaml new file mode 100644 index 00000000..ea929290 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/007/out.yaml @@ -0,0 +1 @@ +- - foo diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/008/error b/testdata/yaml-test-suite/tabs-in-various-contexts/008/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/008/in.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/008/in.yaml new file mode 100644 index 00000000..b9a50bb1 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/008/in.yaml @@ -0,0 +1 @@ +? key: diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/008/out.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/008/out.yaml new file mode 100644 index 00000000..ea929290 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/008/out.yaml @@ -0,0 +1 @@ +- - foo diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/009/error b/testdata/yaml-test-suite/tabs-in-various-contexts/009/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/009/in.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/009/in.yaml new file mode 100644 index 00000000..851a621c --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/009/in.yaml @@ -0,0 +1,2 @@ +? key: +: key: diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/009/out.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/009/out.yaml new file mode 100644 index 00000000..ea929290 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/009/out.yaml @@ -0,0 +1 @@ +- - foo diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/010/in.json b/testdata/yaml-test-suite/tabs-in-various-contexts/010/in.json new file mode 100644 index 00000000..4c1600dd --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/010/in.json @@ -0,0 +1,3 @@ +[ + -1 +] diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/010/in.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/010/in.yaml new file mode 100644 index 00000000..763ef1b7 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/010/in.yaml @@ -0,0 +1 @@ +- -1 diff --git a/testdata/yaml-test-suite/tabs-in-various-contexts/010/out.yaml b/testdata/yaml-test-suite/tabs-in-various-contexts/010/out.yaml new file mode 100644 index 00000000..9572567a --- /dev/null +++ b/testdata/yaml-test-suite/tabs-in-various-contexts/010/out.yaml @@ -0,0 +1 @@ +- -1 diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/00/in.json b/testdata/yaml-test-suite/tabs-that-look-like-indentation/00/in.json new file mode 100644 index 00000000..d7b2eeb3 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-that-look-like-indentation/00/in.json @@ -0,0 +1,3 @@ +{ + "foo" : "bar" +} diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/00/in.yaml b/testdata/yaml-test-suite/tabs-that-look-like-indentation/00/in.yaml new file mode 100644 index 00000000..420d5312 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-that-look-like-indentation/00/in.yaml @@ -0,0 +1,2 @@ +foo: + bar diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/01/error b/testdata/yaml-test-suite/tabs-that-look-like-indentation/01/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/01/in.json b/testdata/yaml-test-suite/tabs-that-look-like-indentation/01/in.json new file mode 100644 index 00000000..d7b2eeb3 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-that-look-like-indentation/01/in.json @@ -0,0 +1,3 @@ +{ + "foo" : "bar" +} diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/01/in.yaml b/testdata/yaml-test-suite/tabs-that-look-like-indentation/01/in.yaml new file mode 100644 index 00000000..97fa2470 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-that-look-like-indentation/01/in.yaml @@ -0,0 +1,2 @@ +foo: "bar + baz" diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/02/in.json b/testdata/yaml-test-suite/tabs-that-look-like-indentation/02/in.json new file mode 100644 index 00000000..f86c8d6c --- /dev/null +++ b/testdata/yaml-test-suite/tabs-that-look-like-indentation/02/in.json @@ -0,0 +1,3 @@ +{ + "foo" : "bar baz" +} diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/02/in.yaml b/testdata/yaml-test-suite/tabs-that-look-like-indentation/02/in.yaml new file mode 100644 index 00000000..422933c5 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-that-look-like-indentation/02/in.yaml @@ -0,0 +1,2 @@ +foo: "bar + baz" diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/03/in.json b/testdata/yaml-test-suite/tabs-that-look-like-indentation/03/in.json new file mode 100644 index 00000000..31ce8884 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-that-look-like-indentation/03/in.json @@ -0,0 +1,3 @@ +{ + "foo" : 1 +} diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/03/in.yaml b/testdata/yaml-test-suite/tabs-that-look-like-indentation/03/in.yaml new file mode 100644 index 00000000..87cf24e5 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-that-look-like-indentation/03/in.yaml @@ -0,0 +1,2 @@ + +foo: 1 diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/04/in.json b/testdata/yaml-test-suite/tabs-that-look-like-indentation/04/in.json new file mode 100644 index 00000000..eed797bf --- /dev/null +++ b/testdata/yaml-test-suite/tabs-that-look-like-indentation/04/in.json @@ -0,0 +1,4 @@ +{ + "foo" : 1, + "bar" : 2 +} diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/04/in.yaml b/testdata/yaml-test-suite/tabs-that-look-like-indentation/04/in.yaml new file mode 100644 index 00000000..077ba0b6 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-that-look-like-indentation/04/in.yaml @@ -0,0 +1,3 @@ +foo: 1 + +bar: 2 diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/05/in.json b/testdata/yaml-test-suite/tabs-that-look-like-indentation/05/in.json new file mode 100644 index 00000000..eed797bf --- /dev/null +++ b/testdata/yaml-test-suite/tabs-that-look-like-indentation/05/in.json @@ -0,0 +1,4 @@ +{ + "foo" : 1, + "bar" : 2 +} diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/05/in.yaml b/testdata/yaml-test-suite/tabs-that-look-like-indentation/05/in.yaml new file mode 100644 index 00000000..fea60bcd --- /dev/null +++ b/testdata/yaml-test-suite/tabs-that-look-like-indentation/05/in.yaml @@ -0,0 +1,3 @@ +foo: 1 + +bar: 2 diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/06/error b/testdata/yaml-test-suite/tabs-that-look-like-indentation/06/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/06/in.json b/testdata/yaml-test-suite/tabs-that-look-like-indentation/06/in.json new file mode 100644 index 00000000..eed797bf --- /dev/null +++ b/testdata/yaml-test-suite/tabs-that-look-like-indentation/06/in.json @@ -0,0 +1,4 @@ +{ + "foo" : 1, + "bar" : 2 +} diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/06/in.yaml b/testdata/yaml-test-suite/tabs-that-look-like-indentation/06/in.yaml new file mode 100644 index 00000000..6bda856a --- /dev/null +++ b/testdata/yaml-test-suite/tabs-that-look-like-indentation/06/in.yaml @@ -0,0 +1,3 @@ +foo: + a: 1 + b: 2 diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/07/in.json b/testdata/yaml-test-suite/tabs-that-look-like-indentation/07/in.json new file mode 100644 index 00000000..19765bd5 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-that-look-like-indentation/07/in.json @@ -0,0 +1 @@ +null diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/07/in.yaml b/testdata/yaml-test-suite/tabs-that-look-like-indentation/07/in.yaml new file mode 100644 index 00000000..9ad1ed21 --- /dev/null +++ b/testdata/yaml-test-suite/tabs-that-look-like-indentation/07/in.yaml @@ -0,0 +1,3 @@ +%YAML 1.2 + +--- diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/08/in.json b/testdata/yaml-test-suite/tabs-that-look-like-indentation/08/in.json new file mode 100644 index 00000000..0dc83aab --- /dev/null +++ b/testdata/yaml-test-suite/tabs-that-look-like-indentation/08/in.json @@ -0,0 +1,3 @@ +{ + "foo" : "bar baz \t \t " +} diff --git a/testdata/yaml-test-suite/tabs-that-look-like-indentation/08/in.yaml b/testdata/yaml-test-suite/tabs-that-look-like-indentation/08/in.yaml new file mode 100644 index 00000000..1ae7ecac --- /dev/null +++ b/testdata/yaml-test-suite/tabs-that-look-like-indentation/08/in.yaml @@ -0,0 +1,2 @@ +foo: "bar + baz " diff --git a/testdata/yaml-test-suite/tag-shorthand-used-in-documents-but-only-defined-in-the-first/error b/testdata/yaml-test-suite/tag-shorthand-used-in-documents-but-only-defined-in-the-first/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/tag-shorthand-used-in-documents-but-only-defined-in-the-first/in.yaml b/testdata/yaml-test-suite/tag-shorthand-used-in-documents-but-only-defined-in-the-first/in.yaml new file mode 100644 index 00000000..2a1ec44a --- /dev/null +++ b/testdata/yaml-test-suite/tag-shorthand-used-in-documents-but-only-defined-in-the-first/in.yaml @@ -0,0 +1,7 @@ +%TAG !prefix! tag:example.com,2011: +--- !prefix!A +a: b +--- !prefix!B +c: d +--- !prefix!C +e: f diff --git a/testdata/yaml-test-suite/tags-for-block-objects/in.json b/testdata/yaml-test-suite/tags-for-block-objects/in.json new file mode 100644 index 00000000..7f209461 --- /dev/null +++ b/testdata/yaml-test-suite/tags-for-block-objects/in.json @@ -0,0 +1,8 @@ +{ + "foo": [ + "a", + { + "key": "value" + } + ] +} diff --git a/testdata/yaml-test-suite/tags-for-block-objects/in.yaml b/testdata/yaml-test-suite/tags-for-block-objects/in.yaml new file mode 100644 index 00000000..7a3e8f1a --- /dev/null +++ b/testdata/yaml-test-suite/tags-for-block-objects/in.yaml @@ -0,0 +1,4 @@ +foo: !!seq + - !!str a + - !!map + key: !!str value diff --git a/testdata/yaml-test-suite/tags-for-block-objects/out.yaml b/testdata/yaml-test-suite/tags-for-block-objects/out.yaml new file mode 100644 index 00000000..c8d30ebe --- /dev/null +++ b/testdata/yaml-test-suite/tags-for-block-objects/out.yaml @@ -0,0 +1,4 @@ +foo: !!seq +- !!str a +- !!map + key: !!str value diff --git a/testdata/yaml-test-suite/tags-for-flow-objects/in.json b/testdata/yaml-test-suite/tags-for-flow-objects/in.json new file mode 100644 index 00000000..d5d1744e --- /dev/null +++ b/testdata/yaml-test-suite/tags-for-flow-objects/in.json @@ -0,0 +1,6 @@ +{ + "k": [ + "a", + "b" + ] +} diff --git a/testdata/yaml-test-suite/tags-for-flow-objects/in.yaml b/testdata/yaml-test-suite/tags-for-flow-objects/in.yaml new file mode 100644 index 00000000..f69ccded --- /dev/null +++ b/testdata/yaml-test-suite/tags-for-flow-objects/in.yaml @@ -0,0 +1,4 @@ +!!map { + k: !!seq + [ a, !!str b] +} diff --git a/testdata/yaml-test-suite/tags-for-flow-objects/out.yaml b/testdata/yaml-test-suite/tags-for-flow-objects/out.yaml new file mode 100644 index 00000000..83e6639f --- /dev/null +++ b/testdata/yaml-test-suite/tags-for-flow-objects/out.yaml @@ -0,0 +1,4 @@ +!!map +k: !!seq +- a +- !!str b diff --git a/testdata/yaml-test-suite/tags-for-root-objects/in.json b/testdata/yaml-test-suite/tags-for-root-objects/in.json new file mode 100644 index 00000000..f8e731c4 --- /dev/null +++ b/testdata/yaml-test-suite/tags-for-root-objects/in.json @@ -0,0 +1,7 @@ +{ + "a": "b" +} +[ + "c" +] +"d e" diff --git a/testdata/yaml-test-suite/tags-for-root-objects/in.yaml b/testdata/yaml-test-suite/tags-for-root-objects/in.yaml new file mode 100644 index 00000000..f0d91aa4 --- /dev/null +++ b/testdata/yaml-test-suite/tags-for-root-objects/in.yaml @@ -0,0 +1,8 @@ +--- !!map +? a +: b +--- !!seq +- !!str c +--- !!str +d +e diff --git a/testdata/yaml-test-suite/tags-for-root-objects/out.yaml b/testdata/yaml-test-suite/tags-for-root-objects/out.yaml new file mode 100644 index 00000000..75f8192b --- /dev/null +++ b/testdata/yaml-test-suite/tags-for-root-objects/out.yaml @@ -0,0 +1,5 @@ +--- !!map +a: b +--- !!seq +- !!str c +--- !!str d e diff --git a/testdata/yaml-test-suite/tags-in-block-sequence/in.json b/testdata/yaml-test-suite/tags-in-block-sequence/in.json new file mode 100644 index 00000000..87bffddb --- /dev/null +++ b/testdata/yaml-test-suite/tags-in-block-sequence/in.json @@ -0,0 +1,6 @@ +[ + "a", + "b", + 42, + "d" +] diff --git a/testdata/yaml-test-suite/tags-in-block-sequence/in.yaml b/testdata/yaml-test-suite/tags-in-block-sequence/in.yaml new file mode 100644 index 00000000..51529617 --- /dev/null +++ b/testdata/yaml-test-suite/tags-in-block-sequence/in.yaml @@ -0,0 +1,4 @@ + - !!str a + - b + - !!int 42 + - d diff --git a/testdata/yaml-test-suite/tags-in-block-sequence/out.yaml b/testdata/yaml-test-suite/tags-in-block-sequence/out.yaml new file mode 100644 index 00000000..7369ee6e --- /dev/null +++ b/testdata/yaml-test-suite/tags-in-block-sequence/out.yaml @@ -0,0 +1,4 @@ +- !!str a +- b +- !!int 42 +- d diff --git a/testdata/yaml-test-suite/tags-in-explicit-mapping/in.json b/testdata/yaml-test-suite/tags-in-explicit-mapping/in.json new file mode 100644 index 00000000..07ded623 --- /dev/null +++ b/testdata/yaml-test-suite/tags-in-explicit-mapping/in.json @@ -0,0 +1,4 @@ +{ + "a": 47, + "c": "d" +} diff --git a/testdata/yaml-test-suite/tags-in-explicit-mapping/in.yaml b/testdata/yaml-test-suite/tags-in-explicit-mapping/in.yaml new file mode 100644 index 00000000..c5e6ceb7 --- /dev/null +++ b/testdata/yaml-test-suite/tags-in-explicit-mapping/in.yaml @@ -0,0 +1,4 @@ +? !!str a +: !!int 47 +? c +: !!str d diff --git a/testdata/yaml-test-suite/tags-in-explicit-mapping/out.yaml b/testdata/yaml-test-suite/tags-in-explicit-mapping/out.yaml new file mode 100644 index 00000000..d4845b59 --- /dev/null +++ b/testdata/yaml-test-suite/tags-in-explicit-mapping/out.yaml @@ -0,0 +1,2 @@ +!!str a: !!int 47 +c: !!str d diff --git a/testdata/yaml-test-suite/tags-in-implicit-mapping/in.json b/testdata/yaml-test-suite/tags-in-implicit-mapping/in.json new file mode 100644 index 00000000..5890c517 --- /dev/null +++ b/testdata/yaml-test-suite/tags-in-implicit-mapping/in.json @@ -0,0 +1,7 @@ +{ + "a": "b", + "c": 42, + "e": "f", + "g": "h", + "23": false +} diff --git a/testdata/yaml-test-suite/tags-in-implicit-mapping/in.yaml b/testdata/yaml-test-suite/tags-in-implicit-mapping/in.yaml new file mode 100644 index 00000000..dd1a8fa0 --- /dev/null +++ b/testdata/yaml-test-suite/tags-in-implicit-mapping/in.yaml @@ -0,0 +1,5 @@ +!!str a: b +c: !!int 42 +e: !!str f +g: h +!!str 23: !!bool false diff --git a/testdata/yaml-test-suite/tags-in-implicit-mapping/out.yaml b/testdata/yaml-test-suite/tags-in-implicit-mapping/out.yaml new file mode 100644 index 00000000..dd1a8fa0 --- /dev/null +++ b/testdata/yaml-test-suite/tags-in-implicit-mapping/out.yaml @@ -0,0 +1,5 @@ +!!str a: b +c: !!int 42 +e: !!str f +g: h +!!str 23: !!bool false diff --git a/testdata/yaml-test-suite/tags-on-empty-scalars/in.yaml b/testdata/yaml-test-suite/tags-on-empty-scalars/in.yaml new file mode 100644 index 00000000..2b07b28b --- /dev/null +++ b/testdata/yaml-test-suite/tags-on-empty-scalars/in.yaml @@ -0,0 +1,5 @@ +- !!str +- + !!null : a + b: !!str +- !!str : !!null diff --git a/testdata/yaml-test-suite/tags-on-empty-scalars/out.yaml b/testdata/yaml-test-suite/tags-on-empty-scalars/out.yaml new file mode 100644 index 00000000..13199d0b --- /dev/null +++ b/testdata/yaml-test-suite/tags-on-empty-scalars/out.yaml @@ -0,0 +1,4 @@ +- !!str +- !!null : a + b: !!str +- !!str : !!null diff --git a/testdata/yaml-test-suite/three-dashes-and-content-without-space-1-3/in.json b/testdata/yaml-test-suite/three-dashes-and-content-without-space-1-3/in.json new file mode 100644 index 00000000..62a7caa3 --- /dev/null +++ b/testdata/yaml-test-suite/three-dashes-and-content-without-space-1-3/in.json @@ -0,0 +1 @@ +"---word1 word2" diff --git a/testdata/yaml-test-suite/three-dashes-and-content-without-space-1-3/in.yaml b/testdata/yaml-test-suite/three-dashes-and-content-without-space-1-3/in.yaml new file mode 100644 index 00000000..8ebd5d27 --- /dev/null +++ b/testdata/yaml-test-suite/three-dashes-and-content-without-space-1-3/in.yaml @@ -0,0 +1,3 @@ +--- +---word1 +word2 diff --git a/testdata/yaml-test-suite/three-dashes-and-content-without-space-1-3/out.yaml b/testdata/yaml-test-suite/three-dashes-and-content-without-space-1-3/out.yaml new file mode 100644 index 00000000..a14c65b4 --- /dev/null +++ b/testdata/yaml-test-suite/three-dashes-and-content-without-space-1-3/out.yaml @@ -0,0 +1 @@ +'---word1 word2' diff --git a/testdata/yaml-test-suite/three-dashes-and-content-without-space/in.json b/testdata/yaml-test-suite/three-dashes-and-content-without-space/in.json new file mode 100644 index 00000000..62a7caa3 --- /dev/null +++ b/testdata/yaml-test-suite/three-dashes-and-content-without-space/in.json @@ -0,0 +1 @@ +"---word1 word2" diff --git a/testdata/yaml-test-suite/three-dashes-and-content-without-space/in.yaml b/testdata/yaml-test-suite/three-dashes-and-content-without-space/in.yaml new file mode 100644 index 00000000..fffaf580 --- /dev/null +++ b/testdata/yaml-test-suite/three-dashes-and-content-without-space/in.yaml @@ -0,0 +1,2 @@ +---word1 +word2 diff --git a/testdata/yaml-test-suite/three-dashes-and-content-without-space/out.yaml b/testdata/yaml-test-suite/three-dashes-and-content-without-space/out.yaml new file mode 100644 index 00000000..a14c65b4 --- /dev/null +++ b/testdata/yaml-test-suite/three-dashes-and-content-without-space/out.yaml @@ -0,0 +1 @@ +'---word1 word2' diff --git a/testdata/yaml-test-suite/three-explicit-integers-in-a-block-sequence/in.json b/testdata/yaml-test-suite/three-explicit-integers-in-a-block-sequence/in.json new file mode 100644 index 00000000..bc331166 --- /dev/null +++ b/testdata/yaml-test-suite/three-explicit-integers-in-a-block-sequence/in.json @@ -0,0 +1,5 @@ +[ + 1, + -2, + 33 +] diff --git a/testdata/yaml-test-suite/three-explicit-integers-in-a-block-sequence/in.yaml b/testdata/yaml-test-suite/three-explicit-integers-in-a-block-sequence/in.yaml new file mode 100644 index 00000000..c30779e3 --- /dev/null +++ b/testdata/yaml-test-suite/three-explicit-integers-in-a-block-sequence/in.yaml @@ -0,0 +1,4 @@ +--- +- !!int 1 +- !!int -2 +- !!int 33 diff --git a/testdata/yaml-test-suite/three-explicit-integers-in-a-block-sequence/out.yaml b/testdata/yaml-test-suite/three-explicit-integers-in-a-block-sequence/out.yaml new file mode 100644 index 00000000..c30779e3 --- /dev/null +++ b/testdata/yaml-test-suite/three-explicit-integers-in-a-block-sequence/out.yaml @@ -0,0 +1,4 @@ +--- +- !!int 1 +- !!int -2 +- !!int 33 diff --git a/testdata/yaml-test-suite/trailing-comment-in-multiline-plain-scalar/error b/testdata/yaml-test-suite/trailing-comment-in-multiline-plain-scalar/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/trailing-comment-in-multiline-plain-scalar/in.yaml b/testdata/yaml-test-suite/trailing-comment-in-multiline-plain-scalar/in.yaml new file mode 100644 index 00000000..8afd770e --- /dev/null +++ b/testdata/yaml-test-suite/trailing-comment-in-multiline-plain-scalar/in.yaml @@ -0,0 +1,4 @@ +--- +plain: a + b # end of scalar + c diff --git a/testdata/yaml-test-suite/trailing-content-after-quoted-value/error b/testdata/yaml-test-suite/trailing-content-after-quoted-value/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/trailing-content-after-quoted-value/in.yaml b/testdata/yaml-test-suite/trailing-content-after-quoted-value/in.yaml new file mode 100644 index 00000000..425342aa --- /dev/null +++ b/testdata/yaml-test-suite/trailing-content-after-quoted-value/in.yaml @@ -0,0 +1,3 @@ +key1: "quoted1" +key2: "quoted2" trailing content +key3: "quoted3" diff --git a/testdata/yaml-test-suite/trailing-content-that-looks-like-a-mapping/error b/testdata/yaml-test-suite/trailing-content-that-looks-like-a-mapping/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/trailing-content-that-looks-like-a-mapping/in.yaml b/testdata/yaml-test-suite/trailing-content-that-looks-like-a-mapping/in.yaml new file mode 100644 index 00000000..85546782 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-content-that-looks-like-a-mapping/in.yaml @@ -0,0 +1,3 @@ +key1: "quoted1" +key2: "quoted2" no key: nor value +key3: "quoted3" diff --git a/testdata/yaml-test-suite/trailing-line-of-spaces/00/in.json b/testdata/yaml-test-suite/trailing-line-of-spaces/00/in.json new file mode 100644 index 00000000..6548965b --- /dev/null +++ b/testdata/yaml-test-suite/trailing-line-of-spaces/00/in.json @@ -0,0 +1,3 @@ +{ + "foo" : "x\n \n" +} diff --git a/testdata/yaml-test-suite/trailing-line-of-spaces/00/in.yaml b/testdata/yaml-test-suite/trailing-line-of-spaces/00/in.yaml new file mode 100644 index 00000000..6a1854b2 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-line-of-spaces/00/in.yaml @@ -0,0 +1,3 @@ +foo: | + x + diff --git a/testdata/yaml-test-suite/trailing-line-of-spaces/01/in.json b/testdata/yaml-test-suite/trailing-line-of-spaces/01/in.json new file mode 100644 index 00000000..6548965b --- /dev/null +++ b/testdata/yaml-test-suite/trailing-line-of-spaces/01/in.json @@ -0,0 +1,3 @@ +{ + "foo" : "x\n \n" +} diff --git a/testdata/yaml-test-suite/trailing-line-of-spaces/01/in.yaml b/testdata/yaml-test-suite/trailing-line-of-spaces/01/in.yaml new file mode 100644 index 00000000..b5768af1 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-line-of-spaces/01/in.yaml @@ -0,0 +1,3 @@ +foo: | + x + \ No newline at end of file diff --git a/testdata/yaml-test-suite/trailing-spaces-after-flow-collection/in.json b/testdata/yaml-test-suite/trailing-spaces-after-flow-collection/in.json new file mode 100644 index 00000000..a85b7c92 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-spaces-after-flow-collection/in.json @@ -0,0 +1,5 @@ +[ + 1, + 2, + 3 +] diff --git a/testdata/yaml-test-suite/trailing-spaces-after-flow-collection/in.yaml b/testdata/yaml-test-suite/trailing-spaces-after-flow-collection/in.yaml new file mode 100644 index 00000000..4337a642 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-spaces-after-flow-collection/in.yaml @@ -0,0 +1,2 @@ + [1, 2, 3] + \ No newline at end of file diff --git a/testdata/yaml-test-suite/trailing-spaces-after-flow-collection/out.yaml b/testdata/yaml-test-suite/trailing-spaces-after-flow-collection/out.yaml new file mode 100644 index 00000000..a0cd6f38 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-spaces-after-flow-collection/out.yaml @@ -0,0 +1,3 @@ +- 1 +- 2 +- 3 diff --git a/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/00/in.json b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/00/in.json new file mode 100644 index 00000000..03179cd6 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/00/in.json @@ -0,0 +1 @@ +"1 trailing\t tab" diff --git a/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/00/in.yaml b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/00/in.yaml new file mode 100644 index 00000000..a2350944 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/00/in.yaml @@ -0,0 +1,2 @@ +"1 trailing\t + tab" diff --git a/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/00/out.yaml b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/00/out.yaml new file mode 100644 index 00000000..03179cd6 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/00/out.yaml @@ -0,0 +1 @@ +"1 trailing\t tab" diff --git a/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/01/in.json b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/01/in.json new file mode 100644 index 00000000..ade64817 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/01/in.json @@ -0,0 +1 @@ +"2 trailing\t tab" diff --git a/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/01/in.yaml b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/01/in.yaml new file mode 100644 index 00000000..006f12ad --- /dev/null +++ b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/01/in.yaml @@ -0,0 +1,2 @@ +"2 trailing\t + tab" diff --git a/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/01/out.yaml b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/01/out.yaml new file mode 100644 index 00000000..ade64817 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/01/out.yaml @@ -0,0 +1 @@ +"2 trailing\t tab" diff --git a/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/02/in.json b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/02/in.json new file mode 100644 index 00000000..611058e8 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/02/in.json @@ -0,0 +1 @@ +"3 trailing\t tab" diff --git a/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/02/in.yaml b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/02/in.yaml new file mode 100644 index 00000000..b06a045a --- /dev/null +++ b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/02/in.yaml @@ -0,0 +1,2 @@ +"3 trailing\ + tab" diff --git a/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/02/out.yaml b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/02/out.yaml new file mode 100644 index 00000000..611058e8 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/02/out.yaml @@ -0,0 +1 @@ +"3 trailing\t tab" diff --git a/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/03/in.json b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/03/in.json new file mode 100644 index 00000000..388f4e46 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/03/in.json @@ -0,0 +1 @@ +"4 trailing\t tab" diff --git a/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/03/in.yaml b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/03/in.yaml new file mode 100644 index 00000000..13694b07 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/03/in.yaml @@ -0,0 +1,2 @@ +"4 trailing\ + tab" diff --git a/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/03/out.yaml b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/03/out.yaml new file mode 100644 index 00000000..388f4e46 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/03/out.yaml @@ -0,0 +1 @@ +"4 trailing\t tab" diff --git a/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/04/in.json b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/04/in.json new file mode 100644 index 00000000..c83327dc --- /dev/null +++ b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/04/in.json @@ -0,0 +1 @@ +"5 trailing tab" diff --git a/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/04/in.yaml b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/04/in.yaml new file mode 100644 index 00000000..5f8ff1cb --- /dev/null +++ b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/04/in.yaml @@ -0,0 +1,2 @@ +"5 trailing + tab" diff --git a/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/04/out.yaml b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/04/out.yaml new file mode 100644 index 00000000..c83327dc --- /dev/null +++ b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/04/out.yaml @@ -0,0 +1 @@ +"5 trailing tab" diff --git a/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/05/in.json b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/05/in.json new file mode 100644 index 00000000..56138d1e --- /dev/null +++ b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/05/in.json @@ -0,0 +1 @@ +"6 trailing tab" diff --git a/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/05/in.yaml b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/05/in.yaml new file mode 100644 index 00000000..f25a33a9 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/05/in.yaml @@ -0,0 +1,2 @@ +"6 trailing + tab" diff --git a/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/05/out.yaml b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/05/out.yaml new file mode 100644 index 00000000..56138d1e --- /dev/null +++ b/testdata/yaml-test-suite/trailing-tabs-in-double-quoted/05/out.yaml @@ -0,0 +1 @@ +"6 trailing tab" diff --git a/testdata/yaml-test-suite/trailing-whitespace-in-streams/00/in.json b/testdata/yaml-test-suite/trailing-whitespace-in-streams/00/in.json new file mode 100644 index 00000000..c1d057c9 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-whitespace-in-streams/00/in.json @@ -0,0 +1,3 @@ +[ + "\n\n" +] diff --git a/testdata/yaml-test-suite/trailing-whitespace-in-streams/00/in.yaml b/testdata/yaml-test-suite/trailing-whitespace-in-streams/00/in.yaml new file mode 100644 index 00000000..be41666a --- /dev/null +++ b/testdata/yaml-test-suite/trailing-whitespace-in-streams/00/in.yaml @@ -0,0 +1,3 @@ +- |+ + + diff --git a/testdata/yaml-test-suite/trailing-whitespace-in-streams/00/out.yaml b/testdata/yaml-test-suite/trailing-whitespace-in-streams/00/out.yaml new file mode 100644 index 00000000..ca3b5815 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-whitespace-in-streams/00/out.yaml @@ -0,0 +1,4 @@ +- |+ + + +... diff --git a/testdata/yaml-test-suite/trailing-whitespace-in-streams/01/in.json b/testdata/yaml-test-suite/trailing-whitespace-in-streams/01/in.json new file mode 100644 index 00000000..a0757451 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-whitespace-in-streams/01/in.json @@ -0,0 +1,3 @@ +[ + "\n" +] diff --git a/testdata/yaml-test-suite/trailing-whitespace-in-streams/01/in.yaml b/testdata/yaml-test-suite/trailing-whitespace-in-streams/01/in.yaml new file mode 100644 index 00000000..522e56c1 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-whitespace-in-streams/01/in.yaml @@ -0,0 +1,2 @@ +- |+ + diff --git a/testdata/yaml-test-suite/trailing-whitespace-in-streams/01/out.yaml b/testdata/yaml-test-suite/trailing-whitespace-in-streams/01/out.yaml new file mode 100644 index 00000000..7e90528c --- /dev/null +++ b/testdata/yaml-test-suite/trailing-whitespace-in-streams/01/out.yaml @@ -0,0 +1,3 @@ +- |+ + +... diff --git a/testdata/yaml-test-suite/trailing-whitespace-in-streams/02/in.json b/testdata/yaml-test-suite/trailing-whitespace-in-streams/02/in.json new file mode 100644 index 00000000..a0757451 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-whitespace-in-streams/02/in.json @@ -0,0 +1,3 @@ +[ + "\n" +] diff --git a/testdata/yaml-test-suite/trailing-whitespace-in-streams/02/in.yaml b/testdata/yaml-test-suite/trailing-whitespace-in-streams/02/in.yaml new file mode 100644 index 00000000..acfa75d9 --- /dev/null +++ b/testdata/yaml-test-suite/trailing-whitespace-in-streams/02/in.yaml @@ -0,0 +1,2 @@ +- |+ + \ No newline at end of file diff --git a/testdata/yaml-test-suite/trailing-whitespace-in-streams/02/out.yaml b/testdata/yaml-test-suite/trailing-whitespace-in-streams/02/out.yaml new file mode 100644 index 00000000..7e90528c --- /dev/null +++ b/testdata/yaml-test-suite/trailing-whitespace-in-streams/02/out.yaml @@ -0,0 +1,3 @@ +- |+ + +... diff --git a/testdata/yaml-test-suite/two-document-start-markers/in.json b/testdata/yaml-test-suite/two-document-start-markers/in.json new file mode 100644 index 00000000..c1e4b6c1 --- /dev/null +++ b/testdata/yaml-test-suite/two-document-start-markers/in.json @@ -0,0 +1,2 @@ +null +null diff --git a/testdata/yaml-test-suite/two-document-start-markers/in.yaml b/testdata/yaml-test-suite/two-document-start-markers/in.yaml new file mode 100644 index 00000000..a845151c --- /dev/null +++ b/testdata/yaml-test-suite/two-document-start-markers/in.yaml @@ -0,0 +1,2 @@ +--- +--- diff --git a/testdata/yaml-test-suite/two-document-start-markers/out.yaml b/testdata/yaml-test-suite/two-document-start-markers/out.yaml new file mode 100644 index 00000000..a845151c --- /dev/null +++ b/testdata/yaml-test-suite/two-document-start-markers/out.yaml @@ -0,0 +1,2 @@ +--- +--- diff --git a/testdata/yaml-test-suite/two-scalar-docs-with-trailing-comments/in.json b/testdata/yaml-test-suite/two-scalar-docs-with-trailing-comments/in.json new file mode 100644 index 00000000..d53e1d64 --- /dev/null +++ b/testdata/yaml-test-suite/two-scalar-docs-with-trailing-comments/in.json @@ -0,0 +1,2 @@ +"foo" +"foo" diff --git a/testdata/yaml-test-suite/two-scalar-docs-with-trailing-comments/in.yaml b/testdata/yaml-test-suite/two-scalar-docs-with-trailing-comments/in.yaml new file mode 100644 index 00000000..235f2498 --- /dev/null +++ b/testdata/yaml-test-suite/two-scalar-docs-with-trailing-comments/in.yaml @@ -0,0 +1,2 @@ +--- foo # comment +--- foo # comment diff --git a/testdata/yaml-test-suite/two-scalar-docs-with-trailing-comments/out.yaml b/testdata/yaml-test-suite/two-scalar-docs-with-trailing-comments/out.yaml new file mode 100644 index 00000000..274fd323 --- /dev/null +++ b/testdata/yaml-test-suite/two-scalar-docs-with-trailing-comments/out.yaml @@ -0,0 +1,2 @@ +--- foo +--- foo diff --git a/testdata/yaml-test-suite/various-combinations-of-explicit-block-mappings/in.yaml b/testdata/yaml-test-suite/various-combinations-of-explicit-block-mappings/in.yaml new file mode 100644 index 00000000..872966f0 --- /dev/null +++ b/testdata/yaml-test-suite/various-combinations-of-explicit-block-mappings/in.yaml @@ -0,0 +1,16 @@ +complex1: + ? - a +complex2: + ? - a + : b +complex3: + ? - a + : > + b +complex4: + ? > + a + : +complex5: + ? - a + : - b diff --git a/testdata/yaml-test-suite/various-combinations-of-explicit-block-mappings/out.yaml b/testdata/yaml-test-suite/various-combinations-of-explicit-block-mappings/out.yaml new file mode 100644 index 00000000..081e6cf4 --- /dev/null +++ b/testdata/yaml-test-suite/various-combinations-of-explicit-block-mappings/out.yaml @@ -0,0 +1,17 @@ +complex1: + ? - a + : +complex2: + ? - a + : b +complex3: + ? - a + : > + b +complex4: + ? > + a + : +complex5: + ? - a + : - b diff --git a/testdata/yaml-test-suite/various-combinations-of-tags-and-anchors/in.json b/testdata/yaml-test-suite/various-combinations-of-tags-and-anchors/in.json new file mode 100644 index 00000000..6056492b --- /dev/null +++ b/testdata/yaml-test-suite/various-combinations-of-tags-and-anchors/in.json @@ -0,0 +1,17 @@ +"scalar1" +"scalar2" +"scalar3" +{ + "key5": "value4" +} +{ + "a6": 1, + "b6": 2 +} +{ + "key8": "value7" +} +{ + "key10": "value9" +} +"value11" diff --git a/testdata/yaml-test-suite/various-combinations-of-tags-and-anchors/in.yaml b/testdata/yaml-test-suite/various-combinations-of-tags-and-anchors/in.yaml new file mode 100644 index 00000000..0ade841d --- /dev/null +++ b/testdata/yaml-test-suite/various-combinations-of-tags-and-anchors/in.yaml @@ -0,0 +1,26 @@ +--- +&a1 +!!str +scalar1 +--- +!!str +&a2 +scalar2 +--- +&a3 +!!str scalar3 +--- +&a4 !!map +&a5 !!str key5: value4 +--- +a6: 1 +&anchor6 b6: 2 +--- +!!map +&a8 !!str key8: value7 +--- +!!map +!!str &a10 key10: value9 +--- +!!str &a11 +value11 diff --git a/testdata/yaml-test-suite/various-combinations-of-tags-and-anchors/out.yaml b/testdata/yaml-test-suite/various-combinations-of-tags-and-anchors/out.yaml new file mode 100644 index 00000000..21ace64f --- /dev/null +++ b/testdata/yaml-test-suite/various-combinations-of-tags-and-anchors/out.yaml @@ -0,0 +1,13 @@ +--- &a1 !!str scalar1 +--- &a2 !!str scalar2 +--- &a3 !!str scalar3 +--- &a4 !!map +&a5 !!str key5: value4 +--- +a6: 1 +&anchor6 b6: 2 +--- !!map +&a8 !!str key8: value7 +--- !!map +&a10 !!str key10: value9 +--- &a11 !!str value11 diff --git a/testdata/yaml-test-suite/various-empty-or-newline-only-quoted-strings/in.json b/testdata/yaml-test-suite/various-empty-or-newline-only-quoted-strings/in.json new file mode 100644 index 00000000..f2cc7e87 --- /dev/null +++ b/testdata/yaml-test-suite/various-empty-or-newline-only-quoted-strings/in.json @@ -0,0 +1,10 @@ +{ + "a": " ", + "b": " ", + "c": " ", + "d": " ", + "e": "\n", + "f": "\n", + "g": "\n\n", + "h": "\n\n" +} diff --git a/testdata/yaml-test-suite/various-empty-or-newline-only-quoted-strings/in.yaml b/testdata/yaml-test-suite/various-empty-or-newline-only-quoted-strings/in.yaml new file mode 100644 index 00000000..10d58e24 --- /dev/null +++ b/testdata/yaml-test-suite/various-empty-or-newline-only-quoted-strings/in.yaml @@ -0,0 +1,23 @@ +--- +a: ' + ' +b: ' + ' +c: " + " +d: " + " +e: ' + + ' +f: " + + " +g: ' + + + ' +h: " + + + " diff --git a/testdata/yaml-test-suite/various-location-of-anchors-in-flow-sequence/in.json b/testdata/yaml-test-suite/various-location-of-anchors-in-flow-sequence/in.json new file mode 100644 index 00000000..28eb29e8 --- /dev/null +++ b/testdata/yaml-test-suite/various-location-of-anchors-in-flow-sequence/in.json @@ -0,0 +1,14 @@ +[ + { + "a": "b" + }, + { + "c": "d" + }, + { + "e": "f" + }, + { + "g": "h" + } +] diff --git a/testdata/yaml-test-suite/various-location-of-anchors-in-flow-sequence/in.yaml b/testdata/yaml-test-suite/various-location-of-anchors-in-flow-sequence/in.yaml new file mode 100644 index 00000000..8345dfc9 --- /dev/null +++ b/testdata/yaml-test-suite/various-location-of-anchors-in-flow-sequence/in.yaml @@ -0,0 +1,6 @@ +&flowseq [ + a: b, + &c c: d, + { &e e: f }, + &g { g: h } +] diff --git a/testdata/yaml-test-suite/various-location-of-anchors-in-flow-sequence/out.yaml b/testdata/yaml-test-suite/various-location-of-anchors-in-flow-sequence/out.yaml new file mode 100644 index 00000000..2e5a6476 --- /dev/null +++ b/testdata/yaml-test-suite/various-location-of-anchors-in-flow-sequence/out.yaml @@ -0,0 +1,6 @@ +&flowseq +- a: b +- &c c: d +- &e e: f +- &g + g: h diff --git a/testdata/yaml-test-suite/various-trailing-comments-1-3/in.yaml b/testdata/yaml-test-suite/various-trailing-comments-1-3/in.yaml new file mode 100644 index 00000000..a18e3459 --- /dev/null +++ b/testdata/yaml-test-suite/various-trailing-comments-1-3/in.yaml @@ -0,0 +1,15 @@ +a: "double + quotes" # lala +b: plain + value # lala +c : #lala + d +? # lala + - seq1 +: # lala + - #lala + seq2 +e: &node # lala + - x: y +block: > # lala + abcde diff --git a/testdata/yaml-test-suite/various-trailing-comments-1-3/out.yaml b/testdata/yaml-test-suite/various-trailing-comments-1-3/out.yaml new file mode 100644 index 00000000..d964a91c --- /dev/null +++ b/testdata/yaml-test-suite/various-trailing-comments-1-3/out.yaml @@ -0,0 +1,9 @@ +a: "double quotes" +b: plain value +c: d +? - seq1 +: - seq2 +e: &node +- x: y +block: > + abcde diff --git a/testdata/yaml-test-suite/various-trailing-comments/in.yaml b/testdata/yaml-test-suite/various-trailing-comments/in.yaml new file mode 100644 index 00000000..4fcc93e7 --- /dev/null +++ b/testdata/yaml-test-suite/various-trailing-comments/in.yaml @@ -0,0 +1,16 @@ +a: "double + quotes" # lala +b: plain + value # lala +c : #lala + d +? # lala + - seq1 +: # lala + - #lala + seq2 +e: + &node # lala + - x: y +block: > # lala + abcde diff --git a/testdata/yaml-test-suite/various-trailing-comments/out.yaml b/testdata/yaml-test-suite/various-trailing-comments/out.yaml new file mode 100644 index 00000000..d964a91c --- /dev/null +++ b/testdata/yaml-test-suite/various-trailing-comments/out.yaml @@ -0,0 +1,9 @@ +a: "double quotes" +b: plain value +c: d +? - seq1 +: - seq2 +e: &node +- x: y +block: > + abcde diff --git a/testdata/yaml-test-suite/various-trailing-tabs/in.json b/testdata/yaml-test-suite/various-trailing-tabs/in.json new file mode 100644 index 00000000..f76eb33a --- /dev/null +++ b/testdata/yaml-test-suite/various-trailing-tabs/in.json @@ -0,0 +1,7 @@ +{ + "a": "b", + "seq": [ + "a" + ], + "c": "d" +} diff --git a/testdata/yaml-test-suite/various-trailing-tabs/in.yaml b/testdata/yaml-test-suite/various-trailing-tabs/in.yaml new file mode 100644 index 00000000..42ad1a99 --- /dev/null +++ b/testdata/yaml-test-suite/various-trailing-tabs/in.yaml @@ -0,0 +1,4 @@ +a: b +seq: + - a +c: d #X diff --git a/testdata/yaml-test-suite/various-trailing-tabs/out.yaml b/testdata/yaml-test-suite/various-trailing-tabs/out.yaml new file mode 100644 index 00000000..b0a33bd4 --- /dev/null +++ b/testdata/yaml-test-suite/various-trailing-tabs/out.yaml @@ -0,0 +1,4 @@ +a: b +seq: +- a +c: d diff --git a/testdata/yaml-test-suite/whitespace-after-scalars-in-flow/in.json b/testdata/yaml-test-suite/whitespace-after-scalars-in-flow/in.json new file mode 100644 index 00000000..178c43c3 --- /dev/null +++ b/testdata/yaml-test-suite/whitespace-after-scalars-in-flow/in.json @@ -0,0 +1,13 @@ +[ + [ + "a", + "b", + "c" + ], + { + "a": "b", + "c": "d", + "e": "f" + }, + [] +] diff --git a/testdata/yaml-test-suite/whitespace-after-scalars-in-flow/in.yaml b/testdata/yaml-test-suite/whitespace-after-scalars-in-flow/in.yaml new file mode 100644 index 00000000..3a609096 --- /dev/null +++ b/testdata/yaml-test-suite/whitespace-after-scalars-in-flow/in.yaml @@ -0,0 +1,6 @@ +- [a, b , c ] +- { "a" : b + , c : 'd' , + e : "f" + } +- [ ] diff --git a/testdata/yaml-test-suite/whitespace-after-scalars-in-flow/out.yaml b/testdata/yaml-test-suite/whitespace-after-scalars-in-flow/out.yaml new file mode 100644 index 00000000..19d72ae9 --- /dev/null +++ b/testdata/yaml-test-suite/whitespace-after-scalars-in-flow/out.yaml @@ -0,0 +1,7 @@ +- - a + - b + - c +- "a": b + c: 'd' + e: "f" +- [] diff --git a/testdata/yaml-test-suite/whitespace-around-colon-in-mappings/in.json b/testdata/yaml-test-suite/whitespace-around-colon-in-mappings/in.json new file mode 100644 index 00000000..508c2c14 --- /dev/null +++ b/testdata/yaml-test-suite/whitespace-around-colon-in-mappings/in.json @@ -0,0 +1,18 @@ +{ + "top1": { + "key1": "scalar1" + }, + "top2": { + "key2": "scalar2" + }, + "top3": { + "scalar1": "scalar3" + }, + "top4": { + "scalar2": "scalar4" + }, + "top5": "scalar5", + "top6": { + "key6": "scalar6" + } +} diff --git a/testdata/yaml-test-suite/whitespace-around-colon-in-mappings/in.yaml b/testdata/yaml-test-suite/whitespace-around-colon-in-mappings/in.yaml new file mode 100644 index 00000000..5df48e7c --- /dev/null +++ b/testdata/yaml-test-suite/whitespace-around-colon-in-mappings/in.yaml @@ -0,0 +1,12 @@ +"top1" : + "key1" : &alias1 scalar1 +'top2' : + 'key2' : &alias2 scalar2 +top3: &node3 + *alias1 : scalar3 +top4: + *alias2 : scalar4 +top5 : + scalar5 +top6: + &anchor6 'key6' : scalar6 diff --git a/testdata/yaml-test-suite/whitespace-around-colon-in-mappings/out.yaml b/testdata/yaml-test-suite/whitespace-around-colon-in-mappings/out.yaml new file mode 100644 index 00000000..4f6efdf5 --- /dev/null +++ b/testdata/yaml-test-suite/whitespace-around-colon-in-mappings/out.yaml @@ -0,0 +1,11 @@ +"top1": + "key1": &alias1 scalar1 +'top2': + 'key2': &alias2 scalar2 +top3: &node3 + *alias1 : scalar3 +top4: + *alias2 : scalar4 +top5: scalar5 +top6: + &anchor6 'key6': scalar6 diff --git a/testdata/yaml-test-suite/wrong-indendation-in-map/error b/testdata/yaml-test-suite/wrong-indendation-in-map/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/wrong-indendation-in-map/in.yaml b/testdata/yaml-test-suite/wrong-indendation-in-map/in.yaml new file mode 100644 index 00000000..148a6939 --- /dev/null +++ b/testdata/yaml-test-suite/wrong-indendation-in-map/in.yaml @@ -0,0 +1,3 @@ +key: + ok: 1 + wrong: 2 diff --git a/testdata/yaml-test-suite/wrong-indendation-in-mapping/error b/testdata/yaml-test-suite/wrong-indendation-in-mapping/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/wrong-indendation-in-mapping/in.yaml b/testdata/yaml-test-suite/wrong-indendation-in-mapping/in.yaml new file mode 100644 index 00000000..433a5f1c --- /dev/null +++ b/testdata/yaml-test-suite/wrong-indendation-in-mapping/in.yaml @@ -0,0 +1,2 @@ +k1: v1 + k2: v2 diff --git a/testdata/yaml-test-suite/wrong-indendation-in-sequence/error b/testdata/yaml-test-suite/wrong-indendation-in-sequence/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/wrong-indendation-in-sequence/in.yaml b/testdata/yaml-test-suite/wrong-indendation-in-sequence/in.yaml new file mode 100644 index 00000000..d4118cb0 --- /dev/null +++ b/testdata/yaml-test-suite/wrong-indendation-in-sequence/in.yaml @@ -0,0 +1,4 @@ +key: + - ok + - also ok + - wrong diff --git a/testdata/yaml-test-suite/wrong-indented-flow-sequence/error b/testdata/yaml-test-suite/wrong-indented-flow-sequence/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/wrong-indented-flow-sequence/in.yaml b/testdata/yaml-test-suite/wrong-indented-flow-sequence/in.yaml new file mode 100644 index 00000000..6378c085 --- /dev/null +++ b/testdata/yaml-test-suite/wrong-indented-flow-sequence/in.yaml @@ -0,0 +1,4 @@ +--- +flow: [a, +b, +c] diff --git a/testdata/yaml-test-suite/wrong-indented-multiline-quoted-scalar/error b/testdata/yaml-test-suite/wrong-indented-multiline-quoted-scalar/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/wrong-indented-multiline-quoted-scalar/in.yaml b/testdata/yaml-test-suite/wrong-indented-multiline-quoted-scalar/in.yaml new file mode 100644 index 00000000..cdbb0dae --- /dev/null +++ b/testdata/yaml-test-suite/wrong-indented-multiline-quoted-scalar/in.yaml @@ -0,0 +1,4 @@ +--- +quoted: "a +b +c" diff --git a/testdata/yaml-test-suite/wrong-indented-sequence-item/error b/testdata/yaml-test-suite/wrong-indented-sequence-item/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/wrong-indented-sequence-item/in.yaml b/testdata/yaml-test-suite/wrong-indented-sequence-item/in.yaml new file mode 100644 index 00000000..9db12c9f --- /dev/null +++ b/testdata/yaml-test-suite/wrong-indented-sequence-item/in.yaml @@ -0,0 +1,2 @@ +- key: value + - item1 diff --git a/testdata/yaml-test-suite/yaml-directive-without-document-end-marker/error b/testdata/yaml-test-suite/yaml-directive-without-document-end-marker/error new file mode 100644 index 00000000..e69de29b diff --git a/testdata/yaml-test-suite/yaml-directive-without-document-end-marker/in.yaml b/testdata/yaml-test-suite/yaml-directive-without-document-end-marker/in.yaml new file mode 100644 index 00000000..8ff83371 --- /dev/null +++ b/testdata/yaml-test-suite/yaml-directive-without-document-end-marker/in.yaml @@ -0,0 +1,4 @@ +--- +key: value +%YAML 1.2 +--- diff --git a/testdata/yaml-test-suite/yaml.go b/testdata/yaml-test-suite/yaml.go new file mode 100644 index 00000000..73ac92f6 --- /dev/null +++ b/testdata/yaml-test-suite/yaml.go @@ -0,0 +1,85 @@ +package yamltestsuite + +import ( + "bytes" + "encoding/json" + "fmt" + "io" + "io/fs" + "os" + "path/filepath" + "sort" + "strings" +) + +type TestSuite struct { + Name string + InYAML []byte + InJSON []any + OutYAML []byte + Error bool +} + +func TestSuites() ([]*TestSuite, error) { + testMap := make(map[string]*TestSuite) + if err := filepath.Walk(".", func(path string, info fs.FileInfo, err error) error { + if strings.HasSuffix(path, ".go") { + // this file. + return nil + } + if info.IsDir() { + return nil + } + if err != nil { + return err + } + name := strings.TrimPrefix(path, "yaml-test-suite/") + name = strings.TrimSuffix(name, "/"+filepath.Base(name)) + if _, exists := testMap[name]; !exists { + testMap[name] = &TestSuite{} + } + f, err := os.ReadFile(path) + if err != nil { + return err + } + fileName := filepath.Base(path) + switch fileName { + case "in.yaml": + testMap[name].InYAML = f + case "in.json": + dec := json.NewDecoder(bytes.NewReader(f)) + var inJSON []any + for { + var v any + if err := dec.Decode(&v); err != nil { + if err == io.EOF { + break + } + return fmt.Errorf("failed to decode json: %s: %s: %w", name, string(f), err) + } + inJSON = append(inJSON, v) + } + testMap[name].InJSON = inJSON + case "out.yaml": + testMap[name].OutYAML = f + case "error": + testMap[name].Error = true + } + testMap[name].Name = name + return nil + }); err != nil { + return nil, err + } + + tests := make([]*TestSuite, 0, len(testMap)) + for _, test := range testMap { + if test.InYAML == nil { + continue + } + tests = append(tests, test) + } + sort.Slice(tests, func(i, j int) bool { + return tests[i].Name < tests[j].Name + }) + return tests, nil +} diff --git a/testdata/yaml-test-suite/zero-indented-block-scalar-with-line-that-looks-like-a-comment/in.json b/testdata/yaml-test-suite/zero-indented-block-scalar-with-line-that-looks-like-a-comment/in.json new file mode 100644 index 00000000..ce8e8366 --- /dev/null +++ b/testdata/yaml-test-suite/zero-indented-block-scalar-with-line-that-looks-like-a-comment/in.json @@ -0,0 +1 @@ +"line1 # no comment line3\n" diff --git a/testdata/yaml-test-suite/zero-indented-block-scalar-with-line-that-looks-like-a-comment/in.yaml b/testdata/yaml-test-suite/zero-indented-block-scalar-with-line-that-looks-like-a-comment/in.yaml new file mode 100644 index 00000000..ffb9aebc --- /dev/null +++ b/testdata/yaml-test-suite/zero-indented-block-scalar-with-line-that-looks-like-a-comment/in.yaml @@ -0,0 +1,4 @@ +--- > +line1 +# no comment +line3 diff --git a/testdata/yaml-test-suite/zero-indented-block-scalar-with-line-that-looks-like-a-comment/out.yaml b/testdata/yaml-test-suite/zero-indented-block-scalar-with-line-that-looks-like-a-comment/out.yaml new file mode 100644 index 00000000..e196aa25 --- /dev/null +++ b/testdata/yaml-test-suite/zero-indented-block-scalar-with-line-that-looks-like-a-comment/out.yaml @@ -0,0 +1,2 @@ +--- > + line1 # no comment line3 diff --git a/testdata/yaml-test-suite/zero-indented-block-scalar/in.json b/testdata/yaml-test-suite/zero-indented-block-scalar/in.json new file mode 100644 index 00000000..15c6a363 --- /dev/null +++ b/testdata/yaml-test-suite/zero-indented-block-scalar/in.json @@ -0,0 +1 @@ +"line1 line2 line3\n" diff --git a/testdata/yaml-test-suite/zero-indented-block-scalar/in.yaml b/testdata/yaml-test-suite/zero-indented-block-scalar/in.yaml new file mode 100644 index 00000000..b4e414d7 --- /dev/null +++ b/testdata/yaml-test-suite/zero-indented-block-scalar/in.yaml @@ -0,0 +1,4 @@ +--- > +line1 +line2 +line3 diff --git a/testdata/yaml-test-suite/zero-indented-block-scalar/out.yaml b/testdata/yaml-test-suite/zero-indented-block-scalar/out.yaml new file mode 100644 index 00000000..a6670d4f --- /dev/null +++ b/testdata/yaml-test-suite/zero-indented-block-scalar/out.yaml @@ -0,0 +1,2 @@ +--- > + line1 line2 line3 diff --git a/testdata/yaml-test-suite/zero-indented-sequences-in-explicit-mapping-keys/in.yaml b/testdata/yaml-test-suite/zero-indented-sequences-in-explicit-mapping-keys/in.yaml new file mode 100644 index 00000000..5637a1ae --- /dev/null +++ b/testdata/yaml-test-suite/zero-indented-sequences-in-explicit-mapping-keys/in.yaml @@ -0,0 +1,7 @@ +--- +? +- a +- b +: +- c +- d diff --git a/testdata/yamltestsuite_test.go b/testdata/yamltestsuite_test.go new file mode 100644 index 00000000..3bc1be21 --- /dev/null +++ b/testdata/yamltestsuite_test.go @@ -0,0 +1,97 @@ +package yaml_test + +import ( + "bytes" + "encoding/json" + "io" + "runtime/debug" + "testing" + + "github.com/goccy/go-yaml" + "github.com/goccy/go-yaml/testdata/yaml-test-suite" +) + +const wip = true + +func fatal(t *testing.T, msg string, args ...any) { + t.Helper() + if wip { + t.Logf(msg, args...) + return + } + t.Fatalf(msg, args...) +} + +func TestYAMLTestSuite(t *testing.T) { + tests, err := yamltestsuite.TestSuites() + if err != nil { + t.Fatal(err) + } + + var ( + success int + failure int + ) + for _, test := range tests { + t.Run(test.Name, func(t *testing.T) { + defer func() { + if e := recover(); e != nil { + failure++ + fatal(t, "panic occurred.\n[input]\n%s\nstack[%s]", string(test.InYAML), debug.Stack()) + return + } + }() + + if test.Error { + var v any + if err := yaml.Unmarshal(test.InYAML, &v); err == nil { + failure++ + fatal(t, "expected error.\n[input]\n%s\n", string(test.InYAML)) + return + } + success++ + return + } + + dec := yaml.NewDecoder(bytes.NewReader(test.InYAML)) + var idx int + for { + var v any + if err := dec.Decode(&v); err != nil { + if err == io.EOF { + break + } + failure++ + fatal(t, err.Error()) + return + } + if len(test.InJSON) <= idx { + failure++ + fatal(t, "expected json value is nothing but got %v", v) + return + } + expected, err := json.Marshal(test.InJSON[idx]) + if err != nil { + fatal(t, "failed to encode json value: %v", err) + return + } + got, err := json.Marshal(v) + if err != nil { + fatal(t, "failed to encode json value: %v", err) + return + } + if !bytes.Equal(expected, got) { + failure++ + fatal(t, "json mismatch [%s]:\n[expected]\n%s\n[got]\n%s\n", test.Name, string(expected), string(got)) + return + } + idx++ + } + success++ + }) + } + total := len(tests) + if success+failure == total { + t.Logf("yaml-test-suite result: success/total = %d/%d (%f %%)\n", success, total, float32(success)/float32(total)*100) + } +} From 2e21e42019cf2b13ecb86c63360ed808b0c6e44a Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Sat, 16 Nov 2024 11:57:54 +0900 Subject: [PATCH 2/6] add threshold to prevent degrade --- testdata/yamltestsuite_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/testdata/yamltestsuite_test.go b/testdata/yamltestsuite_test.go index 3bc1be21..93d862b8 100644 --- a/testdata/yamltestsuite_test.go +++ b/testdata/yamltestsuite_test.go @@ -11,7 +11,10 @@ import ( "github.com/goccy/go-yaml/testdata/yaml-test-suite" ) -const wip = true +const ( + wip = true + successCountThreshold = 199 +) func fatal(t *testing.T, msg string, args ...any) { t.Helper() @@ -94,4 +97,8 @@ func TestYAMLTestSuite(t *testing.T) { if success+failure == total { t.Logf("yaml-test-suite result: success/total = %d/%d (%f %%)\n", success, total, float32(success)/float32(total)*100) } + if success < successCountThreshold { + // degrade occurred. + t.Fatalf("expected success count is over %d but got %d", successCountThreshold, success) + } } From 823d87c41e1dcd91939f553036c4ce5f3121e11a Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Sat, 16 Nov 2024 12:11:02 +0900 Subject: [PATCH 3/6] remove recursive option from test --- decode_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/decode_test.go b/decode_test.go index 902ba046..9be730e8 100644 --- a/decode_test.go +++ b/decode_test.go @@ -1440,7 +1440,6 @@ func TestDecoder_AnchorReferenceDirsRecursive(t *testing.T) { buf := bytes.NewBufferString("a: *a\n") dec := yaml.NewDecoder( buf, - yaml.RecursiveDir(true), yaml.ReferenceDirs("testdata"), ) var v struct { From 96656f38276019cfd58dff499c21d8c3ff062cd6 Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Sat, 16 Nov 2024 12:12:19 +0900 Subject: [PATCH 4/6] move test file --- testdata/yamltestsuite_test.go => yaml_test_suite_test.go | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename testdata/yamltestsuite_test.go => yaml_test_suite_test.go (100%) diff --git a/testdata/yamltestsuite_test.go b/yaml_test_suite_test.go similarity index 100% rename from testdata/yamltestsuite_test.go rename to yaml_test_suite_test.go From 573d9198fb82b7d3f3585e6bd016108d895a3550 Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Sat, 16 Nov 2024 12:23:49 +0900 Subject: [PATCH 5/6] fix lint error --- yaml_test_suite_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml_test_suite_test.go b/yaml_test_suite_test.go index 93d862b8..5d517a6a 100644 --- a/yaml_test_suite_test.go +++ b/yaml_test_suite_test.go @@ -65,7 +65,7 @@ func TestYAMLTestSuite(t *testing.T) { break } failure++ - fatal(t, err.Error()) + fatal(t, err.Error()) //nolint: govet return } if len(test.InJSON) <= idx { From ea81607d89f7bc47edeb173b957c3c89deeba602 Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Sat, 16 Nov 2024 12:37:23 +0900 Subject: [PATCH 6/6] exclude windows --- yaml_test_suite_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yaml_test_suite_test.go b/yaml_test_suite_test.go index 5d517a6a..b627fb4e 100644 --- a/yaml_test_suite_test.go +++ b/yaml_test_suite_test.go @@ -1,3 +1,5 @@ +//go:build !windows + package yaml_test import (