├── .swift-version ├── Tests └── TOMLDecoderTests │ ├── valid_fixtures │ ├── empty-tab.toml │ ├── empty-lf.json │ ├── empty-lf.toml │ ├── empty-nothing.toml │ ├── empty-space.toml │ ├── comment │ │ ├── noeol.json │ │ ├── nonascii.json │ │ ├── nonascii.toml │ │ ├── noeol.toml │ │ ├── at-eof.json │ │ ├── at-eof2.json │ │ ├── at-eof.toml │ │ ├── at-eof2.toml │ │ ├── after-literal-no-ws.toml │ │ └── after-literal-no-ws.json │ ├── empty-crlf.json │ ├── empty-crlf.toml │ ├── empty-nothing.json │ ├── empty-space.json │ ├── empty-tab.json │ ├── key │ │ ├── empty-3.toml │ │ ├── zero.toml │ │ ├── empty-1.toml │ │ ├── empty-2.toml │ │ ├── equals-nospace.toml │ │ ├── numeric-01.toml │ │ ├── numeric-02.toml │ │ ├── numeric-03.toml │ │ ├── numeric-04.toml │ │ ├── numeric-05.toml │ │ ├── numeric-06.toml │ │ ├── numeric-07.toml │ │ ├── numeric-08.toml │ │ ├── special-chars.toml │ │ ├── empty-3.json │ │ ├── zero.json │ │ ├── empty-1.json │ │ ├── empty-2.json │ │ ├── numeric-01.json │ │ ├── numeric-06.json │ │ ├── numeric-07.json │ │ ├── numeric-03.json │ │ ├── equals-nospace.json │ │ ├── dotted-empty.toml │ │ ├── dotted-1.toml │ │ ├── numeric-02.json │ │ ├── numeric-04.json │ │ ├── numeric-05.json │ │ ├── special-word.toml │ │ ├── dotted-4.toml │ │ ├── numeric-08.json │ │ ├── special-chars.json │ │ ├── dotted-3.toml │ │ ├── space.toml │ │ ├── quoted-dots.toml │ │ ├── escapes.toml │ │ ├── alphanum.toml │ │ ├── special-word.json │ │ ├── quoted-unicode.toml │ │ └── case-sensitive.toml │ ├── table │ │ ├── empty.toml │ │ ├── no-eol.toml │ │ ├── array-empty.toml │ │ ├── sub-empty.toml │ │ ├── whitespace.toml │ │ ├── empty.json │ │ ├── no-eol.json │ │ ├── array-empty.json │ │ ├── with-pound.toml │ │ ├── whitespace.json │ │ ├── array-implicit.toml │ │ ├── sub-empty.json │ │ ├── with-single-quotes.toml │ │ ├── array-implicit-and-explicit-after.toml │ │ ├── array-one.toml │ │ ├── with-literal-string.toml │ │ ├── empty-name.toml │ │ ├── keyword.toml │ │ ├── array-empty-name.toml │ │ ├── array-within-dotted.toml │ │ ├── keyword.json │ │ ├── with-pound.json │ │ ├── keyword-with-values.toml │ │ ├── array-implicit.json │ │ ├── names.toml │ │ ├── sub.toml │ │ ├── array-table-array.toml │ │ ├── without-super.toml │ │ ├── array-empty-name.json │ │ ├── without-super.json │ │ ├── array-one.json │ │ ├── with-single-quotes.json │ │ ├── with-literal-string.json │ │ ├── array-implicit-and-explicit-after.json │ │ ├── without-super-with-values.toml │ │ ├── array-many.toml │ │ ├── array-within-dotted.json │ │ └── names-with-values.toml │ ├── spec-1.0.0 │ │ ├── table-0.toml │ │ ├── keys-7.toml │ │ ├── key-value-pair-0.toml │ │ ├── local-date-0.toml │ │ ├── float-1.toml │ │ ├── table-0.json │ │ ├── boolean-0.toml │ │ ├── local-time-0.toml │ │ ├── offset-date-time-1.toml │ │ ├── table-2.toml │ │ ├── integer-0.toml │ │ ├── string-1.toml │ │ ├── table-6.toml │ │ ├── float-1.json │ │ ├── key-value-pair-0.json │ │ ├── local-date-time-0.toml │ │ ├── keys-0.toml │ │ ├── local-date-0.json │ │ ├── string-0.toml │ │ ├── table-5.toml │ │ ├── inline-table-2.toml │ │ ├── inline-table-3.toml │ │ ├── keys-7.json │ │ ├── string-1.json │ │ ├── offset-date-time-1.json │ │ ├── array-1.toml │ │ ├── keys-3.toml │ │ ├── table-1.toml │ │ ├── table-5.json │ │ ├── table-6.json │ │ ├── boolean-0.json │ │ ├── offset-date-time-0.toml │ │ ├── string-0.json │ │ ├── inline-table-0.toml │ │ ├── array-of-tables-2.toml │ │ ├── keys-1.toml │ │ ├── comment-0.toml │ │ ├── integer-1.toml │ │ ├── local-time-0.json │ │ ├── comment-0.json │ │ ├── inline-table-2.json │ │ ├── inline-table-3.json │ │ ├── table-4.toml │ │ ├── inline-table-1.toml │ │ ├── table-4.json │ │ ├── keys-4.toml │ │ ├── table-7.toml │ │ ├── local-date-time-0.json │ │ ├── string-2.json │ │ ├── string-6.toml │ │ ├── table-3.toml │ │ ├── float-0.toml │ │ ├── keys-6.toml │ │ ├── string-5.toml │ │ ├── table-2.json │ │ ├── keys-5.toml │ │ ├── array-of-tables-0.toml │ │ ├── integer-0.json │ │ ├── keys-4.json │ │ ├── table-9.toml │ │ ├── integer-1.json │ │ ├── keys-0.json │ │ ├── table-8.toml │ │ ├── offset-date-time-0.json │ │ ├── string-2.toml │ │ ├── table-8.json │ │ ├── string-6.json │ │ └── integer-2.toml │ ├── string │ │ ├── empty.toml │ │ ├── raw-empty.toml │ │ ├── escaped-escape.toml │ │ ├── basic-escape-01.toml │ │ ├── simple.toml │ │ ├── basic-escape-02.toml │ │ ├── empty.json │ │ ├── raw-empty.json │ │ ├── basic-escape-01.json │ │ ├── basic-escape-02.json │ │ ├── basic-escape-03.toml │ │ ├── escaped-escape.json │ │ ├── multiline-escaped-crlf.json │ │ ├── basic-escape-03.json │ │ ├── ends-in-whitespace-escape.toml │ │ ├── ends-in-whitespace-escape.json │ │ ├── simple.json │ │ ├── with-pound.toml │ │ ├── nl.toml │ │ ├── multiline-escaped-crlf.toml │ │ ├── with-pound.json │ │ ├── multibyte.toml │ │ ├── multiline-empty.json │ │ ├── start-mb.toml │ │ ├── multibyte.json │ │ └── multibyte-escape.json │ ├── array │ │ ├── bool.toml │ │ ├── nospaces.toml │ │ ├── empty.toml │ │ ├── nested.toml │ │ ├── nested-inline-table.toml │ │ ├── string-quote-comma-2.toml │ │ ├── empty.json │ │ ├── mixed-int-float.toml │ │ ├── mixed-int-string.toml │ │ ├── hetergeneous.toml │ │ ├── table-array-string-backslash.toml │ │ ├── mixed-int-array.toml │ │ ├── nested-double.toml │ │ ├── nested-inline-table.json │ │ ├── strings.toml │ │ ├── string-quote-comma-2.json │ │ ├── string-with-comma.toml │ │ ├── string-quote-comma.toml │ │ ├── array-subtables.toml │ │ ├── string-with-comma-2.toml │ │ ├── open-parent-table.toml │ │ ├── table-array-string-backslash.json │ │ ├── bool.json │ │ ├── trailing-comma.toml │ │ ├── nested.json │ │ ├── mixed-int-float.json │ │ ├── mixed-int-string.json │ │ ├── mixed-int-array.json │ │ ├── string-with-comma-2.json │ │ ├── string-with-comma.json │ │ ├── nospaces.json │ │ ├── string-quote-comma.json │ │ ├── open-parent-table.json │ │ ├── strings.json │ │ └── array.toml │ ├── bool │ │ ├── bool.toml │ │ └── bool.json │ ├── implicit-groups.toml │ ├── newline-lf.toml │ ├── datetime │ │ ├── local-date.toml │ │ ├── invalid-date-in-string.toml │ │ ├── local-time.toml │ │ ├── invalid-date-in-string.json │ │ ├── local-date.json │ │ ├── local.toml │ │ ├── datetime.toml │ │ ├── timezone.toml │ │ ├── datetime.json │ │ ├── local-time.json │ │ ├── milliseconds.toml │ │ ├── edge.toml │ │ ├── local.json │ │ └── leap-year.toml │ ├── inline-table │ │ ├── bool.toml │ │ ├── array-02.json │ │ ├── key-dotted-7.toml │ │ ├── key-dotted-2.toml │ │ ├── array-03.toml │ │ ├── key-dotted-3.toml │ │ ├── end-in-bool.toml │ │ ├── key-dotted-6.toml │ │ ├── key-dotted-4.toml │ │ ├── multiline.toml │ │ ├── array-02.toml │ │ ├── bool.json │ │ ├── key-dotted-1.toml │ │ ├── key-dotted-5.toml │ │ ├── key-dotted-7.json │ │ ├── inline-table.toml │ │ ├── array-01.toml │ │ ├── empty.toml │ │ └── end-in-bool.json │ ├── newline-crlf.toml │ ├── integer │ │ ├── underscore.toml │ │ ├── integer.toml │ │ ├── underscore.json │ │ ├── float64-max.json │ │ ├── long.json │ │ ├── long.toml │ │ ├── float64-max.toml │ │ ├── zero.toml │ │ ├── literals.toml │ │ └── integer.json │ ├── float │ │ ├── long.toml │ │ ├── underscore.toml │ │ ├── float.toml │ │ ├── max-int.toml │ │ ├── exponent.toml │ │ ├── long.json │ │ ├── max-int.json │ │ ├── zero.toml │ │ ├── underscore.json │ │ └── inf-and-nan.toml │ ├── implicit-and-explicit-after.toml │ ├── implicit-and-explicit-before.toml │ ├── example.toml │ ├── newline-crlf.json │ ├── newline-lf.json │ ├── implicit-groups.json │ ├── implicit-and-explicit-after.json │ └── implicit-and-explicit-before.json │ └── invalid_fixtures │ ├── control │ ├── only-ff.toml │ ├── only-null.toml │ ├── only-vt.toml │ ├── string-cr.toml │ ├── string-lf.toml │ ├── string-us.toml │ ├── bare-formfeed.toml │ ├── multi-cr.toml │ ├── multi-del.toml │ ├── multi-lf.toml │ ├── multi-null.toml │ ├── multi-us.toml │ ├── string-bs.toml │ ├── string-del.toml │ ├── string-null.toml │ ├── bare-vertical-tab.toml │ ├── comment-del.toml │ ├── comment-ff.toml │ ├── comment-lf.toml │ ├── comment-null.toml │ ├── comment-us.toml │ ├── rawmulti-cr.toml │ ├── rawmulti-del.toml │ ├── rawmulti-lf.toml │ ├── rawmulti-null.toml │ ├── rawmulti-us.toml │ ├── rawstring-cr.toml │ ├── rawstring-del.toml │ ├── rawstring-lf.toml │ ├── rawstring-null.toml │ ├── rawstring-us.toml │ ├── bare-null.toml │ ├── comment-cr.toml │ └── bare-cr.toml │ ├── key │ ├── dot.toml │ ├── empty.toml │ ├── only-int.toml │ ├── dotdot.toml │ ├── hash.toml │ ├── only-float.toml │ ├── only-str.toml │ ├── space.toml │ ├── no-eol-02.toml │ ├── start-dot.toml │ ├── two-equals-02.toml │ ├── two-equals-03.toml │ ├── without-value-01.toml │ ├── without-value-07.toml │ ├── newline-06.toml │ ├── no-eol-01.toml │ ├── no-eol-06.toml │ ├── open-bracket.toml │ ├── quoted-unclosed-02.toml │ ├── single-open-bracket.toml │ ├── two-equals-01.toml │ ├── without-value-02.toml │ ├── without-value-03.toml │ ├── without-value-04.toml │ ├── without-value-05.toml │ ├── without-value-06.toml │ ├── multiline-key-01.toml │ ├── multiline-key-02.toml │ ├── newline-01.toml │ ├── quoted-unclosed-01.toml │ ├── bare-invalid-character-01.toml │ ├── duplicate-keys-07.toml │ ├── newline-02.toml │ ├── newline-03.toml │ ├── newline-04.toml │ ├── newline-05.toml │ ├── no-eol-07.toml │ ├── partial-quoted.toml │ ├── bare-invalid-character-02.toml │ ├── multiline-key-03.toml │ ├── multiline-key-04.toml │ ├── start-bracket.toml │ ├── after-array.toml │ ├── end-in-escape.toml │ ├── special-character.toml │ ├── after-table.toml │ ├── dotted-redefine-table-01.toml │ ├── duplicate-keys-02.toml │ ├── duplicate-keys-05.toml │ ├── no-eol-03.toml │ ├── duplicate-keys-01.toml │ ├── duplicate-keys-06.toml │ ├── escape.toml │ ├── after-value.toml │ ├── duplicate-keys-03.toml │ ├── duplicate-keys-04.toml │ ├── no-eol-04.toml │ ├── no-eol-05.toml │ └── dotted-redefine-table-02.toml │ ├── table │ ├── empty.toml │ ├── no-close-04.toml │ ├── dot.toml │ ├── llbrace.toml │ ├── no-close-07.toml │ ├── no-close-08.toml │ ├── rrbrace.toml │ ├── trailing-dot.toml │ ├── dotdot.toml │ ├── equals-sign.toml │ ├── no-close-05.toml │ ├── whitespace.toml │ ├── array-no-close-03.toml │ ├── array-no-close-04.toml │ ├── newline-01.toml │ ├── newline-02.toml │ ├── newline-03.toml │ ├── newline-04.toml │ ├── super-twice.toml │ ├── duplicate-key-06.toml │ ├── duplicate-key-07.toml │ ├── duplicate-key-10.toml │ ├── multiline-key-01.toml │ ├── multiline-key-02.toml │ ├── newline-05.toml │ ├── no-close-06.toml │ ├── with-pound.toml │ ├── array-empty.toml │ ├── bare-invalid-character-01.toml │ ├── empty-implicit-table.toml │ ├── nested-brackets-close.toml │ ├── nested-brackets-open.toml │ ├── overwrite-bool-with-array.toml │ ├── overwrite-with-deep-table.toml │ ├── append-with-dotted-keys-05.toml │ ├── append-with-dotted-keys-06.toml │ ├── bare-invalid-character-02.toml │ ├── no-close-02.toml │ ├── redefine-02.toml │ ├── redefine-03.toml │ ├── text-after-table.toml │ ├── array-no-close-01.toml │ ├── duplicate-key-01.toml │ ├── no-close-01.toml │ ├── no-close-09.toml │ ├── append-with-dotted-keys-07.toml │ ├── array-no-close-02.toml │ ├── no-close-03.toml │ ├── append-with-dotted-keys-03.toml │ ├── duplicate-key-08.toml │ ├── duplicate-key-09.toml │ ├── duplicate-key-03.toml │ ├── duplicate-key-02.toml │ ├── duplicate-key-04.toml │ ├── duplicate-key-05.toml │ ├── overwrite-array-in-parent.toml │ ├── redefine-01.toml │ └── append-with-dotted-keys-04.toml │ ├── datetime │ ├── only-T.toml │ ├── only-TZ.toml │ ├── only-Tdot.toml │ ├── trailing-x.toml │ ├── no-year-month-sep.toml │ ├── day-zero.toml │ ├── no-date-time-sep.toml │ ├── feb-29.toml │ ├── second-trailing-dot.toml │ ├── second-trailing-dotz.toml │ ├── offset-minus-no-minute.toml │ ├── offset-plus-no-minute.toml │ ├── offset-minus-minute-1digit.toml │ ├── offset-minus-no-hour-minute.toml │ ├── offset-plus-minute-1digit.toml │ ├── offset-plus-no-hour-minute.toml │ ├── feb-30.toml │ ├── no-secs.toml │ ├── offset-minus-no-hour-minute-sep.toml │ ├── offset-plus-no-hour-minute-sep.toml │ ├── y10k.toml │ ├── offset-overflow-hour.toml │ ├── time-no-leads.toml │ ├── hour-over.toml │ ├── month-over.toml │ ├── no-t.toml │ ├── minute-over.toml │ ├── month-under.toml │ ├── no-leads.toml │ ├── no-leads-month.toml │ ├── no-leads-with-milli.toml │ ├── mday-over.toml │ ├── mday-under.toml │ ├── offset-overflow-minute.toml │ └── second-over.toml │ ├── string │ ├── no-open-01.toml │ ├── no-open-03.toml │ ├── no-open-02.toml │ ├── no-open-04.toml │ ├── no-open-05.toml │ ├── no-open-06.toml │ ├── no-open-07.toml │ ├── no-open-08.toml │ ├── bad-escape-04.toml │ ├── missing-quotes.toml │ ├── multiline-no-close-02.toml │ ├── bad-byte-escape.toml │ ├── bad-escape-03.toml │ ├── bad-escape-05.toml │ ├── basic-unknown-escape.toml │ ├── multiline-lit-no-close-02.toml │ ├── bad-hex-esc-01.toml │ ├── bad-hex-esc-02.toml │ ├── bad-hex-esc-03.toml │ ├── bad-hex-esc-1.toml │ ├── bad-hex-esc-2.toml │ ├── bad-hex-esc-3.toml │ ├── bad-hex-esc-4.toml │ ├── basic-byte-escapes.toml │ ├── missing-quotes-array.toml │ ├── bad-concat.toml │ ├── bad-hex-esc-04.toml │ ├── bad-hex-esc-05.toml │ ├── bad-uni-esc-01.toml │ ├── bad-uni-esc-02.toml │ ├── bad-uni-esc-04.toml │ ├── bad-uni-esc-07.toml │ ├── bad-uni-esc-1.toml │ ├── bad-uni-esc-2.toml │ ├── bad-uni-esc-4.toml │ ├── bad-uni-esc-7.toml │ ├── multiline-bad-escape-01.toml │ ├── no-close-02.toml │ ├── no-close-04.toml │ ├── bad-uni-esc-03.toml │ ├── bad-uni-esc-05.toml │ ├── bad-uni-esc-3.toml │ ├── bad-uni-esc-5.toml │ ├── basic-multiline-unknown-escape.toml │ ├── multiline-bad-escape-04.toml │ ├── multiline-quotes-01.toml │ ├── bad-multiline.toml │ ├── bad-uni-esc-ml-1.toml │ ├── bad-uni-esc-ml-2.toml │ ├── bad-uni-esc-ml-4.toml │ ├── bad-uni-esc-ml-7.toml │ ├── missing-quotes-inline-table.toml │ ├── multiline-no-close-04.toml │ ├── multiline-no-close-05.toml │ ├── wrong-close.toml │ ├── bad-uni-esc-ml-3.toml │ ├── bad-uni-esc-ml-5.toml │ ├── basic-out-of-range-unicode-escape-01.toml │ ├── basic-out-of-range-unicode-escape-02.toml │ ├── multiline-lit-no-close-04.toml │ ├── no-close-01.toml │ ├── no-close-03.toml │ ├── literal-multiline-quotes-01.toml │ ├── multiline-escape-space-01.toml │ ├── multiline-lit-no-close-01.toml │ ├── multiline-no-close-01.toml │ ├── no-close-06.toml │ ├── no-close-08.toml │ ├── text-after-string.toml │ ├── basic-multiline-out-of-range-unicode-escape-01.toml │ ├── basic-multiline-out-of-range-unicode-escape-02.toml │ ├── multiline-escape-space-02.toml │ ├── basic-multiline-quotes.toml │ ├── literal-multiline-quotes-02.toml │ ├── no-close-05.toml │ ├── no-close-07.toml │ ├── no-close-09.toml │ ├── no-close-10.toml │ ├── bad-escape-01.toml │ ├── multiline-bad-escape-02.toml │ ├── multiline-lit-no-close-03.toml │ ├── multiline-no-close-03.toml │ ├── bad-escape-02.toml │ ├── bad-slash-escape.toml │ ├── multiline-bad-escape-03.toml │ ├── bad-uni-esc-06.toml │ ├── bad-uni-esc-6.toml │ └── bad-uni-esc-ml-6.toml │ ├── float │ ├── inf-capital.toml │ ├── nan-capital.toml │ ├── leading-us.toml │ ├── exp-dot-01.toml │ ├── exp-dot-02.toml │ ├── exp-dot-03.toml │ ├── exp-point-1.toml │ ├── exp-point-2.toml │ ├── exp-point-3.toml │ ├── leading-zero.toml │ ├── trailing-dot-02.toml │ ├── trailing-exp.toml │ ├── trailing-us.toml │ ├── double-dot-01.toml │ ├── double-dot-02.toml │ ├── double-point-1.toml │ ├── double-point-2.toml │ ├── exp-double-e-01.toml │ ├── exp-double-e-02.toml │ ├── exp-double-e-1.toml │ ├── exp-double-e-2.toml │ ├── exp-double-us.toml │ ├── exp-leading-us.toml │ ├── inf-incomplete-1.toml │ ├── inf_underscore.toml │ ├── leading-dot.toml │ ├── leading-point.toml │ ├── nan-incomplete-1.toml │ ├── nan_underscore.toml │ ├── trailing-dot-01.toml │ ├── trailing-point.toml │ ├── us-after-dot.toml │ ├── us-after-point.toml │ ├── us-before-dot.toml │ ├── us-before-point.toml │ ├── exp-trailing-us-01.toml │ ├── exp-trailing-us-1.toml │ ├── exp-trailing-us.toml │ ├── inf-incomplete-01.toml │ ├── inf-incomplete-02.toml │ ├── inf-incomplete-03.toml │ ├── inf-incomplete-2.toml │ ├── inf-incomplete-3.toml │ ├── leading-dot-neg.toml │ ├── leading-zero-neg.toml │ ├── nan-incomplete-01.toml │ ├── nan-incomplete-02.toml │ ├── nan-incomplete-03.toml │ ├── nan-incomplete-2.toml │ ├── nan-incomplete-3.toml │ ├── trailing-dot-min.toml │ ├── trailing-dot-plus.toml │ ├── trailing-exp-plus.toml │ ├── trailing-point-min.toml │ ├── trailing-us-exp-01.toml │ ├── exp-trailing-us-02.toml │ ├── exp-trailing-us-2.toml │ ├── leading-dot-plus.toml │ ├── leading-point-neg.toml │ ├── leading-point-plus.toml │ ├── leading-zero-plus.toml │ ├── trailing-exp-minus.toml │ ├── trailing-exp-point.toml │ ├── trailing-point-plus.toml │ └── trailing-us-exp-02.toml │ ├── inline-table │ ├── empty-01.toml │ ├── no-close-01.toml │ ├── empty-02.toml │ ├── no-close-02.toml │ ├── empty-03.toml │ ├── double-comma.toml │ ├── linebreak-02.toml │ ├── linebreak-03.toml │ ├── no-comma-01.toml │ ├── bad-key-syntax.toml │ ├── overwrite-06.toml │ ├── overwrite-03.toml │ ├── duplicate-key-04.toml │ ├── overwrite-07.toml │ ├── duplicate-key-02.toml │ ├── no-comma-02.toml │ ├── overwrite-04.toml │ ├── overwrite-05.toml │ ├── overwrite-08.toml │ ├── duplicate-key-01.toml │ ├── overwrite-02.toml │ ├── linebreak-04.toml │ ├── overwrite-09.toml │ ├── duplicate-key-03.toml │ ├── overwrite-01.toml │ ├── linebreak-01.toml │ ├── trailing-comma.toml │ └── overwrite-10.toml │ ├── array │ ├── no-close-02.toml │ ├── no-close-08.toml │ ├── no-close-2.toml │ ├── no-close-8.toml │ ├── no-close-03.toml │ ├── no-close-1.toml │ ├── no-close-3.toml │ ├── no-close-table-01.toml │ ├── no-comma-03.toml │ ├── no-comma-2.toml │ ├── no-comma-3.toml │ ├── only-comma-01.toml │ ├── only-comma-02.toml │ ├── only-comma-1.toml │ ├── only-comma-2.toml │ ├── double-comma-1.toml │ ├── missing-separator-02.toml │ ├── no-close-01.toml │ ├── no-close-04.toml │ ├── no-close-05.toml │ ├── no-close-4.toml │ ├── no-close-5.toml │ ├── no-close-table-02.toml │ ├── no-comma-01.toml │ ├── no-comma-02.toml │ ├── no-comma-1.toml │ ├── double-comma-01.toml │ ├── double-comma-02.toml │ ├── double-comma-2.toml │ ├── missing-separator-01.toml │ ├── no-close-06.toml │ ├── no-close-07.toml │ ├── no-close-6.toml │ ├── no-close-7.toml │ ├── extend-defined-aot.toml │ ├── tables-01.toml │ ├── text-in-array.toml │ ├── text-after-array-entries.toml │ ├── text-before-array-separator.toml │ ├── extending-table.toml │ └── tables-02.toml │ ├── encoding │ ├── utf16-key.toml │ ├── utf16-comment.toml │ ├── ideographic-space.toml │ ├── utf16-bom.toml │ ├── bad-codepoint.toml │ ├── bad-utf8-at-end.toml │ ├── bad-utf8-in-array.toml │ ├── bad-utf8-in-string.toml │ ├── bad-utf8-in-comment.toml │ ├── bad-utf8-in-multiline.toml │ ├── bom-not-at-start-01.toml │ ├── bom-not-at-start-02.toml │ ├── bad-utf8-in-string-literal.toml │ └── bad-utf8-in-multiline-literal.toml │ ├── integer │ ├── invalid-hex-03.toml │ ├── capital-bin.toml │ ├── capital-hex.toml │ ├── capital-oct.toml │ ├── double-us.toml │ ├── invalid-oct.toml │ ├── leading-us.toml │ ├── trailing-us.toml │ ├── incomplete-bin.toml │ ├── incomplete-hex.toml │ ├── incomplete-oct.toml │ ├── invalid-bin.toml │ ├── invalid-hex-1.toml │ ├── leading-us-bin.toml │ ├── leading-us-hex.toml │ ├── leading-us-oct.toml │ ├── leading-zero-01.toml │ ├── leading-zero-02.toml │ ├── leading-zero-03.toml │ ├── leading-zero-1.toml │ ├── leading-zero-2.toml │ ├── leading-zero-3.toml │ ├── negative-hex.toml │ ├── negative-oct.toml │ ├── positive-hex.toml │ ├── positive-oct.toml │ ├── us-after-bin.toml │ ├── us-after-hex.toml │ ├── us-after-oct.toml │ ├── double-sign-nex.toml │ ├── double-sign-plus.toml │ ├── invalid-hex-01.toml │ ├── invalid-hex-2.toml │ ├── negative-bin.toml │ ├── positive-bin.toml │ ├── trailing-us-bin.toml │ ├── trailing-us-hex.toml │ ├── trailing-us-oct.toml │ ├── invalid-hex-02.toml │ ├── leading-zero-sign-01.toml │ ├── leading-zero-sign-02.toml │ ├── leading-zero-sign-1.toml │ ├── leading-zero-sign-2.toml │ ├── leading-zero-sign-3.toml │ ├── leading-zero-sign-03.toml │ └── text-after-integer.toml │ ├── bool │ ├── just-f.toml │ ├── just-t.toml │ ├── almost-false.toml │ ├── almost-true.toml │ ├── capitalized-true.toml │ ├── mixed-case-false.toml │ ├── mixed-case-true.toml │ ├── wrong-case-false.toml │ ├── wrong-case-true.toml │ ├── capitalized-false.toml │ ├── mixed-case.toml │ ├── starting-same-false.toml │ ├── starting-same-true.toml │ ├── almost-false-with-extra.toml │ └── almost-true-with-extra.toml │ ├── local-date │ ├── day-1digit.toml │ ├── year-3digits.toml │ ├── feb-29.toml │ ├── feb-30.toml │ ├── y10k.toml │ ├── month-over.toml │ ├── month-under.toml │ ├── trailing-t.toml │ ├── no-leads.toml │ ├── no-leads-with-milli.toml │ ├── mday-over.toml │ └── mday-under.toml │ ├── local-time │ ├── trailing-dot.toml │ ├── trailing-dotdot.toml │ ├── no-secs.toml │ ├── hour-over.toml │ ├── minute-over.toml │ ├── time-no-leads-01.toml │ ├── time-no-leads-02.toml │ └── second-over.toml │ ├── spec-1.0.0 │ ├── key-value-pair-1.toml │ ├── inline-table-2-0.toml │ ├── inline-table-3-0.toml │ ├── keys-2.toml │ ├── table-9-0.toml │ └── table-9-1.toml │ └── local-datetime │ ├── feb-29.toml │ ├── no-secs.toml │ ├── feb-30.toml │ ├── y10k.toml │ ├── hour-over.toml │ ├── month-over.toml │ ├── time-no-leads.toml │ ├── minute-over.toml │ ├── month-under.toml │ ├── no-t.toml │ ├── no-leads.toml │ ├── no-leads-with-milli.toml │ ├── mday-over.toml │ ├── mday-under.toml │ └── second-over.toml ├── .spi.yml ├── .swiftformat ├── Scripts └── format.sh ├── Sources └── ProlepticGregorianTestHelpers │ └── include │ └── module.modulemap ├── .gitignore └── MODULE.bazel /.swift-version: -------------------------------------------------------------------------------- 1 | 6.2 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/empty-tab.toml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/empty-lf.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/empty-lf.toml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/empty-nothing.toml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/empty-space.toml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/only-ff.toml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/only-null.toml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/only-vt.toml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/dot.toml: -------------------------------------------------------------------------------- 1 | . = 1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/empty.toml: -------------------------------------------------------------------------------- 1 | = 1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/only-int.toml: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/empty.toml: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/comment/noeol.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/empty-crlf.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/empty-crlf.toml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/empty-nothing.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/empty-space.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/empty-tab.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/empty-3.toml: -------------------------------------------------------------------------------- 1 | ''=0 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/zero.toml: -------------------------------------------------------------------------------- 1 | 0=0 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/empty.toml: -------------------------------------------------------------------------------- 1 | [a] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/dotdot.toml: -------------------------------------------------------------------------------- 1 | .. = 1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/hash.toml: -------------------------------------------------------------------------------- 1 | a# = 1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/only-float.toml: -------------------------------------------------------------------------------- 1 | 1.1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/only-str.toml: -------------------------------------------------------------------------------- 1 | "" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/space.toml: -------------------------------------------------------------------------------- 1 | a b = 1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/no-close-04.toml: -------------------------------------------------------------------------------- 1 | [ 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/comment/nonascii.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/no-eol.toml: -------------------------------------------------------------------------------- 1 | [table] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/only-T.toml: -------------------------------------------------------------------------------- 1 | foo = T 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/no-eol-02.toml: -------------------------------------------------------------------------------- 1 | 0=0r=false 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/start-dot.toml: -------------------------------------------------------------------------------- 1 | .key = 1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/two-equals-02.toml: -------------------------------------------------------------------------------- 1 | a==1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/two-equals-03.toml: -------------------------------------------------------------------------------- 1 | a=b=1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/without-value-01.toml: -------------------------------------------------------------------------------- 1 | key 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/without-value-07.toml: -------------------------------------------------------------------------------- 1 | fs. 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/no-open-01.toml: -------------------------------------------------------------------------------- 1 | s = a" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/no-open-03.toml: -------------------------------------------------------------------------------- 1 | s = a' 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/dot.toml: -------------------------------------------------------------------------------- 1 | [.] 2 | k = 1 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/llbrace.toml: -------------------------------------------------------------------------------- 1 | [ [table]] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/no-close-07.toml: -------------------------------------------------------------------------------- 1 | ['] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/no-close-08.toml: -------------------------------------------------------------------------------- 1 | ['''] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/rrbrace.toml: -------------------------------------------------------------------------------- 1 | [[table] ] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/trailing-dot.toml: -------------------------------------------------------------------------------- 1 | [a.] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/empty-1.toml: -------------------------------------------------------------------------------- 1 | "" = "blank" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/empty-2.toml: -------------------------------------------------------------------------------- 1 | '' = "blank" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/table-0.toml: -------------------------------------------------------------------------------- 1 | [table] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/empty.toml: -------------------------------------------------------------------------------- 1 | answer = "" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/array-empty.toml: -------------------------------------------------------------------------------- 1 | [[a]] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/only-TZ.toml: -------------------------------------------------------------------------------- 1 | foo = TZ 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/only-Tdot.toml: -------------------------------------------------------------------------------- 1 | foo = T. 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/inf-capital.toml: -------------------------------------------------------------------------------- 1 | v = Inf 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/nan-capital.toml: -------------------------------------------------------------------------------- 1 | v = NaN 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/empty-01.toml: -------------------------------------------------------------------------------- 1 | t = {,} 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/no-close-01.toml: -------------------------------------------------------------------------------- 1 | a={ 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/newline-06.toml: -------------------------------------------------------------------------------- 1 | key = 2 | 1 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/no-eol-01.toml: -------------------------------------------------------------------------------- 1 | a = 1 b = 2 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/no-eol-06.toml: -------------------------------------------------------------------------------- 1 | 0=0r0=0r=false 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/open-bracket.toml: -------------------------------------------------------------------------------- 1 | [abc = 1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/quoted-unclosed-02.toml: -------------------------------------------------------------------------------- 1 | "key 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/single-open-bracket.toml: -------------------------------------------------------------------------------- 1 | [ 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/two-equals-01.toml: -------------------------------------------------------------------------------- 1 | key= = 1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/without-value-02.toml: -------------------------------------------------------------------------------- 1 | key = 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/without-value-03.toml: -------------------------------------------------------------------------------- 1 | "key" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/without-value-04.toml: -------------------------------------------------------------------------------- 1 | "key" = 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/without-value-05.toml: -------------------------------------------------------------------------------- 1 | fs.fw 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/without-value-06.toml: -------------------------------------------------------------------------------- 1 | fs.fw = 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/no-open-02.toml: -------------------------------------------------------------------------------- 1 | a = [a"] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/no-open-04.toml: -------------------------------------------------------------------------------- 1 | a = [a'] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/no-open-05.toml: -------------------------------------------------------------------------------- 1 | a = a""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/no-open-06.toml: -------------------------------------------------------------------------------- 1 | a = [a"""] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/no-open-07.toml: -------------------------------------------------------------------------------- 1 | a = a''' 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/no-open-08.toml: -------------------------------------------------------------------------------- 1 | a = [a'''] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/dotdot.toml: -------------------------------------------------------------------------------- 1 | [..] 2 | k = 1 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/equals-sign.toml: -------------------------------------------------------------------------------- 1 | [name=bad] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/no-close-05.toml: -------------------------------------------------------------------------------- 1 | [fwfw.wafw 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/bool.toml: -------------------------------------------------------------------------------- 1 | a = [true, false] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/nospaces.toml: -------------------------------------------------------------------------------- 1 | ints = [1,2,3] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/equals-nospace.toml: -------------------------------------------------------------------------------- 1 | answer=42 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/numeric-01.toml: -------------------------------------------------------------------------------- 1 | 1 = true 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/numeric-02.toml: -------------------------------------------------------------------------------- 1 | 1.2 = true 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/numeric-03.toml: -------------------------------------------------------------------------------- 1 | 0123 = true 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/numeric-04.toml: -------------------------------------------------------------------------------- 1 | 01.23 = true 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/numeric-05.toml: -------------------------------------------------------------------------------- 1 | 23.01 = true 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/numeric-06.toml: -------------------------------------------------------------------------------- 1 | -1 = true 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/numeric-07.toml: -------------------------------------------------------------------------------- 1 | -01 = true 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/raw-empty.toml: -------------------------------------------------------------------------------- 1 | empty = '' 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/sub-empty.toml: -------------------------------------------------------------------------------- 1 | [a] 2 | [a.b] 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/whitespace.toml: -------------------------------------------------------------------------------- 1 | ["valid key"] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-close-02.toml: -------------------------------------------------------------------------------- 1 | no-close-2 = [1, 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-close-08.toml: -------------------------------------------------------------------------------- 1 | no-close-8 = [ 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-close-2.toml: -------------------------------------------------------------------------------- 1 | no-close-2 = [1, 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-close-8.toml: -------------------------------------------------------------------------------- 1 | no-close-8 = [ 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/encoding/utf16-key.toml: -------------------------------------------------------------------------------- 1 | k = "v" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/leading-us.toml: -------------------------------------------------------------------------------- 1 | leading-us = _1.2 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/empty-02.toml: -------------------------------------------------------------------------------- 1 | t = {, 2 | } 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/no-close-02.toml: -------------------------------------------------------------------------------- 1 | a={b=1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/invalid-hex-03.toml: -------------------------------------------------------------------------------- 1 | a = 0x-1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/multiline-key-01.toml: -------------------------------------------------------------------------------- 1 | """key""" = 1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/multiline-key-02.toml: -------------------------------------------------------------------------------- 1 | '''key''' = 1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/newline-01.toml: -------------------------------------------------------------------------------- 1 | barekey 2 | = 1 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/quoted-unclosed-01.toml: -------------------------------------------------------------------------------- 1 | "key = x 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-escape-04.toml: -------------------------------------------------------------------------------- 1 | a = "a \\\ b" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/missing-quotes.toml: -------------------------------------------------------------------------------- 1 | name = value 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/multiline-no-close-02.toml: -------------------------------------------------------------------------------- 1 | x=""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/whitespace.toml: -------------------------------------------------------------------------------- 1 | [invalid key] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/empty.toml: -------------------------------------------------------------------------------- 1 | thevoid = [[[[[]]]]] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/nested.toml: -------------------------------------------------------------------------------- 1 | nest = [["a"], ["b"]] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/bool/bool.toml: -------------------------------------------------------------------------------- 1 | t = true 2 | f = false 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/comment/nonascii.toml: -------------------------------------------------------------------------------- 1 | # ~ € ÿ ퟿  ￿ 𐀀 􏿿 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/keys-7.toml: -------------------------------------------------------------------------------- 1 | 3.14159 = "pi" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/empty.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": {} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-close-03.toml: -------------------------------------------------------------------------------- 1 | no-close-3 = [42 #] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-close-1.toml: -------------------------------------------------------------------------------- 1 | no-close-1 = [ 1, 2, 3 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-close-3.toml: -------------------------------------------------------------------------------- 1 | no-close-3 = [42 #] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-close-table-01.toml: -------------------------------------------------------------------------------- 1 | x = [{ key = 42 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-comma-03.toml: -------------------------------------------------------------------------------- 1 | no-comma-3 = [ 1 #,] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-comma-2.toml: -------------------------------------------------------------------------------- 1 | no-comma-2 = [ 1 2 3 ] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-comma-3.toml: -------------------------------------------------------------------------------- 1 | no-comma-3 = [ 1 #,] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/only-comma-01.toml: -------------------------------------------------------------------------------- 1 | only-comma-1 = [,] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/only-comma-02.toml: -------------------------------------------------------------------------------- 1 | only-comma-2 = [,,] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/only-comma-1.toml: -------------------------------------------------------------------------------- 1 | only-comma-1 = [,] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/only-comma-2.toml: -------------------------------------------------------------------------------- 1 | only-comma-2 = [,,] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/bool/just-f.toml: -------------------------------------------------------------------------------- 1 | just-f = f 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/bool/just-t.toml: -------------------------------------------------------------------------------- 1 | just-t = t 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/string-cr.toml: -------------------------------------------------------------------------------- 1 | string-cr = "null " 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/string-lf.toml: -------------------------------------------------------------------------------- 1 | string-lf = "null" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/string-us.toml: -------------------------------------------------------------------------------- 1 | string-us = "null" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/trailing-x.toml: -------------------------------------------------------------------------------- 1 | sign=2020-01-01x 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/exp-dot-01.toml: -------------------------------------------------------------------------------- 1 | exp-point-1 = 1e2.3 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/exp-dot-02.toml: -------------------------------------------------------------------------------- 1 | exp-point-2 = 1.e2 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/exp-dot-03.toml: -------------------------------------------------------------------------------- 1 | exp-point-3 = 3.e+20 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/exp-point-1.toml: -------------------------------------------------------------------------------- 1 | exp-point-1 = 1e2.3 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/exp-point-2.toml: -------------------------------------------------------------------------------- 1 | exp-point-2 = 1.e2 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/exp-point-3.toml: -------------------------------------------------------------------------------- 1 | exp-point-3 = 3.e+20 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/leading-zero.toml: -------------------------------------------------------------------------------- 1 | leading-zero = 03.14 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/trailing-dot-02.toml: -------------------------------------------------------------------------------- 1 | a = 1. 2 | b = 2 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/trailing-exp.toml: -------------------------------------------------------------------------------- 1 | trailing-exp = 0.0E 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/trailing-us.toml: -------------------------------------------------------------------------------- 1 | trailing-us = 1.2_ 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/empty-03.toml: -------------------------------------------------------------------------------- 1 | t = { 2 | , 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/capital-bin.toml: -------------------------------------------------------------------------------- 1 | capital-bin = 0B0 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/capital-hex.toml: -------------------------------------------------------------------------------- 1 | capital-hex = 0X1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/capital-oct.toml: -------------------------------------------------------------------------------- 1 | capital-oct = 0O0 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/double-us.toml: -------------------------------------------------------------------------------- 1 | double-us = 1__23 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/invalid-oct.toml: -------------------------------------------------------------------------------- 1 | invalid-oct = 0o778 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/leading-us.toml: -------------------------------------------------------------------------------- 1 | leading-us = _123 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/trailing-us.toml: -------------------------------------------------------------------------------- 1 | trailing-us = 123_ 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/bare-invalid-character-01.toml: -------------------------------------------------------------------------------- 1 | ! = 123 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/duplicate-keys-07.toml: -------------------------------------------------------------------------------- 1 | "" = 1 2 | "" = 2 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/newline-02.toml: -------------------------------------------------------------------------------- 1 | "quoted 2 | key" = 1 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/newline-03.toml: -------------------------------------------------------------------------------- 1 | 'quoted 2 | key' = 1 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/newline-04.toml: -------------------------------------------------------------------------------- 1 | """long 2 | key""" = 1 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/newline-05.toml: -------------------------------------------------------------------------------- 1 | '''long 2 | key''' = 1 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/no-eol-07.toml: -------------------------------------------------------------------------------- 1 | 0=0r0=0r=falsefal=false 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/partial-quoted.toml: -------------------------------------------------------------------------------- 1 | partial"quoted" = 5 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-date/day-1digit.toml: -------------------------------------------------------------------------------- 1 | foo = 1997-09-9 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-date/year-3digits.toml: -------------------------------------------------------------------------------- 1 | foo = 199-09-09 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-time/trailing-dot.toml: -------------------------------------------------------------------------------- 1 | t = 12:13:14. 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-byte-escape.toml: -------------------------------------------------------------------------------- 1 | naughty = "\xAg" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-escape-03.toml: -------------------------------------------------------------------------------- 1 | backslash = "\" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-escape-05.toml: -------------------------------------------------------------------------------- 1 | a = "a \\\\\ b" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/basic-unknown-escape.toml: -------------------------------------------------------------------------------- 1 | a = "\@" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/multiline-lit-no-close-02.toml: -------------------------------------------------------------------------------- 1 | x=''' 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/array-no-close-03.toml: -------------------------------------------------------------------------------- 1 | [[a 2 | [[b]] 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/array-no-close-04.toml: -------------------------------------------------------------------------------- 1 | [[a 2 | b = 2 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/newline-01.toml: -------------------------------------------------------------------------------- 1 | [tbl 2 | ] 3 | k = 1 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/newline-02.toml: -------------------------------------------------------------------------------- 1 | ["tbl 2 | "] 3 | k = 1 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/newline-03.toml: -------------------------------------------------------------------------------- 1 | ["tbl" 2 | ] 3 | k = 1 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/newline-04.toml: -------------------------------------------------------------------------------- 1 | [tbl. 2 | ] 3 | k = 1 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/super-twice.toml: -------------------------------------------------------------------------------- 1 | [a.b] 2 | [a] 3 | [a] 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/implicit-groups.toml: -------------------------------------------------------------------------------- 1 | [a.b.c] 2 | answer = 42 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/newline-lf.toml: -------------------------------------------------------------------------------- 1 | os = "unix" 2 | newline = "lf" 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/key-value-pair-0.toml: -------------------------------------------------------------------------------- 1 | key = "value" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/local-date-0.toml: -------------------------------------------------------------------------------- 1 | ld1 = 1979-05-27 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/escaped-escape.toml: -------------------------------------------------------------------------------- 1 | answer = "\\x64" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/no-eol.json: -------------------------------------------------------------------------------- 1 | { 2 | "table": {} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/double-comma-1.toml: -------------------------------------------------------------------------------- 1 | double-comma-1 = [1,,2] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/missing-separator-02.toml: -------------------------------------------------------------------------------- 1 | wrong = [ 1 2 3 ] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-close-01.toml: -------------------------------------------------------------------------------- 1 | no-close-1 = [ 1, 2, 3 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-close-04.toml: -------------------------------------------------------------------------------- 1 | no-close-4 = [{ key = 42 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-close-05.toml: -------------------------------------------------------------------------------- 1 | no-close-5 = [{ key = 42} 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-close-4.toml: -------------------------------------------------------------------------------- 1 | no-close-4 = [{ key = 42 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-close-5.toml: -------------------------------------------------------------------------------- 1 | no-close-5 = [{ key = 42} 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-close-table-02.toml: -------------------------------------------------------------------------------- 1 | x = [{ key = 42 # 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-comma-01.toml: -------------------------------------------------------------------------------- 1 | no-comma-1 = [true false] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-comma-02.toml: -------------------------------------------------------------------------------- 1 | no-comma-2 = [ 1 2 3 ] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-comma-1.toml: -------------------------------------------------------------------------------- 1 | no-comma-1 = [true false] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/bare-formfeed.toml: -------------------------------------------------------------------------------- 1 | bare-formfeed = 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/multi-cr.toml: -------------------------------------------------------------------------------- 1 | multi-cr = """null """ 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/multi-del.toml: -------------------------------------------------------------------------------- 1 | multi-del = """null""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/multi-lf.toml: -------------------------------------------------------------------------------- 1 | multi-lf = """null""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/multi-null.toml: -------------------------------------------------------------------------------- 1 | multi-null = """null""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/multi-us.toml: -------------------------------------------------------------------------------- 1 | multi-us = """null""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/string-bs.toml: -------------------------------------------------------------------------------- 1 | string-bs = "backspace" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/string-del.toml: -------------------------------------------------------------------------------- 1 | string-del = "null" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/string-null.toml: -------------------------------------------------------------------------------- 1 | string-null = "null" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/no-year-month-sep.toml: -------------------------------------------------------------------------------- 1 | foo = 199709-09 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/double-dot-01.toml: -------------------------------------------------------------------------------- 1 | double-point-1 = 0..1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/double-dot-02.toml: -------------------------------------------------------------------------------- 1 | double-point-2 = 0.1.2 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/double-point-1.toml: -------------------------------------------------------------------------------- 1 | double-point-1 = 0..1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/double-point-2.toml: -------------------------------------------------------------------------------- 1 | double-point-2 = 0.1.2 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/exp-double-e-01.toml: -------------------------------------------------------------------------------- 1 | exp-double-e-1 = 1ee2 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/exp-double-e-02.toml: -------------------------------------------------------------------------------- 1 | exp-double-e-2 = 1e2e3 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/exp-double-e-1.toml: -------------------------------------------------------------------------------- 1 | exp-double-e-1 = 1ee2 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/exp-double-e-2.toml: -------------------------------------------------------------------------------- 1 | exp-double-e-2 = 1e2e3 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/exp-double-us.toml: -------------------------------------------------------------------------------- 1 | exp-double-us = 1e__23 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/exp-leading-us.toml: -------------------------------------------------------------------------------- 1 | exp-leading-us = 1e_23 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/inf-incomplete-1.toml: -------------------------------------------------------------------------------- 1 | inf-incomplete-1 = in 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/inf_underscore.toml: -------------------------------------------------------------------------------- 1 | inf_underscore = in_f 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/leading-dot.toml: -------------------------------------------------------------------------------- 1 | leading-point = .12345 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/leading-point.toml: -------------------------------------------------------------------------------- 1 | leading-point = .12345 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/nan-incomplete-1.toml: -------------------------------------------------------------------------------- 1 | nan-incomplete-1 = na 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/nan_underscore.toml: -------------------------------------------------------------------------------- 1 | nan_underscore = na_n 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/trailing-dot-01.toml: -------------------------------------------------------------------------------- 1 | trailing-point = 1. 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/trailing-point.toml: -------------------------------------------------------------------------------- 1 | trailing-point = 1. 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/us-after-dot.toml: -------------------------------------------------------------------------------- 1 | us-after-point = 1._2 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/us-after-point.toml: -------------------------------------------------------------------------------- 1 | us-after-point = 1._2 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/us-before-dot.toml: -------------------------------------------------------------------------------- 1 | us-before-point = 1_.2 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/us-before-point.toml: -------------------------------------------------------------------------------- 1 | us-before-point = 1_.2 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/double-comma.toml: -------------------------------------------------------------------------------- 1 | t = {x=3,,y=4} 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/linebreak-02.toml: -------------------------------------------------------------------------------- 1 | t = {a=1, 2 | b=2} 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/linebreak-03.toml: -------------------------------------------------------------------------------- 1 | t = {a=1 2 | ,b=2} 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/no-comma-01.toml: -------------------------------------------------------------------------------- 1 | t = {x = 3 y = 4} 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/incomplete-bin.toml: -------------------------------------------------------------------------------- 1 | incomplete-bin = 0b 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/incomplete-hex.toml: -------------------------------------------------------------------------------- 1 | incomplete-hex = 0x 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/incomplete-oct.toml: -------------------------------------------------------------------------------- 1 | incomplete-oct = 0o 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/invalid-bin.toml: -------------------------------------------------------------------------------- 1 | invalid-bin = 0b0012 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/invalid-hex-1.toml: -------------------------------------------------------------------------------- 1 | invalid-hex-1 = 0xaafz 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/leading-us-bin.toml: -------------------------------------------------------------------------------- 1 | leading-us-bin = _0b1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/leading-us-hex.toml: -------------------------------------------------------------------------------- 1 | leading-us-hex = _0x1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/leading-us-oct.toml: -------------------------------------------------------------------------------- 1 | leading-us-oct = _0o1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/leading-zero-01.toml: -------------------------------------------------------------------------------- 1 | leading-zero-1 = 01 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/leading-zero-02.toml: -------------------------------------------------------------------------------- 1 | leading-zero-2 = 00 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/leading-zero-03.toml: -------------------------------------------------------------------------------- 1 | leading-zero-3 = 0_0 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/leading-zero-1.toml: -------------------------------------------------------------------------------- 1 | leading-zero-1 = 01 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/leading-zero-2.toml: -------------------------------------------------------------------------------- 1 | leading-zero-2 = 00 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/leading-zero-3.toml: -------------------------------------------------------------------------------- 1 | leading-zero-3 = 0_0 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/negative-hex.toml: -------------------------------------------------------------------------------- 1 | negative-hex = -0xff 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/negative-oct.toml: -------------------------------------------------------------------------------- 1 | negative-oct = -0o755 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/positive-hex.toml: -------------------------------------------------------------------------------- 1 | positive-hex = +0xff 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/positive-oct.toml: -------------------------------------------------------------------------------- 1 | positive-oct = +0o755 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/us-after-bin.toml: -------------------------------------------------------------------------------- 1 | us-after-bin = 0b_1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/us-after-hex.toml: -------------------------------------------------------------------------------- 1 | us-after-hex = 0x_1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/us-after-oct.toml: -------------------------------------------------------------------------------- 1 | us-after-oct = 0o_1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/bare-invalid-character-02.toml: -------------------------------------------------------------------------------- 1 | bare!key = 123 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/multiline-key-03.toml: -------------------------------------------------------------------------------- 1 | """key""" = """v""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/multiline-key-04.toml: -------------------------------------------------------------------------------- 1 | '''key''' = '''v''' 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/start-bracket.toml: -------------------------------------------------------------------------------- 1 | [a] 2 | [xyz = 5 3 | [b] 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-time/trailing-dotdot.toml: -------------------------------------------------------------------------------- 1 | t = 12:13:14.. 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/spec-1.0.0/key-value-pair-1.toml: -------------------------------------------------------------------------------- 1 | key = # INVALID 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-hex-esc-01.toml: -------------------------------------------------------------------------------- 1 | bad-hex-esc-1 = "\x0g" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-hex-esc-02.toml: -------------------------------------------------------------------------------- 1 | bad-hex-esc-2 = "\xG0" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-hex-esc-03.toml: -------------------------------------------------------------------------------- 1 | bad-hex-esc-3 = "\x" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-hex-esc-1.toml: -------------------------------------------------------------------------------- 1 | bad-hex-esc-1 = "\x0g" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-hex-esc-2.toml: -------------------------------------------------------------------------------- 1 | bad-hex-esc-2 = "\xG0" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-hex-esc-3.toml: -------------------------------------------------------------------------------- 1 | bad-hex-esc-3 = "\x" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-hex-esc-4.toml: -------------------------------------------------------------------------------- 1 | bad-hex-esc-4 = "\x 50" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/basic-byte-escapes.toml: -------------------------------------------------------------------------------- 1 | answer = "\x33" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/missing-quotes-array.toml: -------------------------------------------------------------------------------- 1 | name = [value] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/duplicate-key-06.toml: -------------------------------------------------------------------------------- 1 | [tbl] 2 | [[tbl]] 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/duplicate-key-07.toml: -------------------------------------------------------------------------------- 1 | [[tbl]] 2 | [tbl] 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/duplicate-key-10.toml: -------------------------------------------------------------------------------- 1 | a = [] 2 | [[a.b]] 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/multiline-key-01.toml: -------------------------------------------------------------------------------- 1 | ["""tbl"""] 2 | k = 1 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/multiline-key-02.toml: -------------------------------------------------------------------------------- 1 | ['''tbl'''] 2 | k = 1 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/newline-05.toml: -------------------------------------------------------------------------------- 1 | [tbl 2 | .sub] 3 | k = 1 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/no-close-06.toml: -------------------------------------------------------------------------------- 1 | [a 2 | [b] 3 | [c 4 | [d] 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/with-pound.toml: -------------------------------------------------------------------------------- 1 | [key#group] 2 | answer = 42 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/nested-inline-table.toml: -------------------------------------------------------------------------------- 1 | a = [ { b = {} } ] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/string-quote-comma-2.toml: -------------------------------------------------------------------------------- 1 | title = [ " \", ",] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/datetime/local-date.toml: -------------------------------------------------------------------------------- 1 | bestdayever = 1987-07-05 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/inline-table/bool.toml: -------------------------------------------------------------------------------- 1 | a = {a = true, b = false} 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/numeric-08.toml: -------------------------------------------------------------------------------- 1 | 1 = 'one' 2 | 01 = 'zero one' 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/newline-crlf.toml: -------------------------------------------------------------------------------- 1 | os = "DOS" 2 | newline = "crlf" 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/float-1.toml: -------------------------------------------------------------------------------- 1 | flt8 = 224_617.445_991_228 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/table-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "table": {} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/array-empty.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": [{}] 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/with-pound.toml: -------------------------------------------------------------------------------- 1 | ["key#group"] 2 | answer = 42 3 | -------------------------------------------------------------------------------- /.spi.yml: -------------------------------------------------------------------------------- 1 | version: 1 2 | builder: 3 | configs: 4 | - documentation_targets: [TOMLDecoder] 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/double-comma-01.toml: -------------------------------------------------------------------------------- 1 | double-comma-1 = [1,,2] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/double-comma-02.toml: -------------------------------------------------------------------------------- 1 | double-comma-2 = [1,2,,] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/double-comma-2.toml: -------------------------------------------------------------------------------- 1 | double-comma-2 = [1,2,,] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/missing-separator-01.toml: -------------------------------------------------------------------------------- 1 | arrr = [true false] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-close-06.toml: -------------------------------------------------------------------------------- 1 | no-close-6 = [{ key = 42 #}] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-close-07.toml: -------------------------------------------------------------------------------- 1 | no-close-7 = [{ key = 42} #] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-close-6.toml: -------------------------------------------------------------------------------- 1 | no-close-6 = [{ key = 42 #}] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/no-close-7.toml: -------------------------------------------------------------------------------- 1 | no-close-7 = [{ key = 42} #] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/bool/almost-false.toml: -------------------------------------------------------------------------------- 1 | almost-false = fals 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/bool/almost-true.toml: -------------------------------------------------------------------------------- 1 | almost-true = tru 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/bare-vertical-tab.toml: -------------------------------------------------------------------------------- 1 | bare-vertical-tab = 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/comment-del.toml: -------------------------------------------------------------------------------- 1 | comment-del = "0x7f" #  2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/comment-ff.toml: -------------------------------------------------------------------------------- 1 | comment-ff = "0x7f" # 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/comment-lf.toml: -------------------------------------------------------------------------------- 1 | comment-lf = "ctrl-P" #  2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/comment-null.toml: -------------------------------------------------------------------------------- 1 | comment-null = "null" # 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/comment-us.toml: -------------------------------------------------------------------------------- 1 | comment-us = "ctrl-_" #  2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/rawmulti-cr.toml: -------------------------------------------------------------------------------- 1 | rawmulti-cr = '''null ''' 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/rawmulti-del.toml: -------------------------------------------------------------------------------- 1 | rawmulti-del = '''null''' 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/rawmulti-lf.toml: -------------------------------------------------------------------------------- 1 | rawmulti-lf = '''null''' 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/rawmulti-null.toml: -------------------------------------------------------------------------------- 1 | rawmulti-null = '''null''' 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/rawmulti-us.toml: -------------------------------------------------------------------------------- 1 | rawmulti-us = '''null''' 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/rawstring-cr.toml: -------------------------------------------------------------------------------- 1 | rawstring-cr = 'null ' 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/rawstring-del.toml: -------------------------------------------------------------------------------- 1 | rawstring-del = 'null' 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/rawstring-lf.toml: -------------------------------------------------------------------------------- 1 | rawstring-lf = 'null' 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/rawstring-null.toml: -------------------------------------------------------------------------------- 1 | rawstring-null = 'null' 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/rawstring-us.toml: -------------------------------------------------------------------------------- 1 | rawstring-us = 'null' 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/day-zero.toml: -------------------------------------------------------------------------------- 1 | foo = 1997-09-00T09:09:09.09Z 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/exp-trailing-us-01.toml: -------------------------------------------------------------------------------- 1 | exp-trailing-us-1 = 1_e2 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/exp-trailing-us-1.toml: -------------------------------------------------------------------------------- 1 | exp-trailing-us-1 = 1_e2 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/exp-trailing-us.toml: -------------------------------------------------------------------------------- 1 | exp-trailing-us = 1e23_ 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/inf-incomplete-01.toml: -------------------------------------------------------------------------------- 1 | inf-incomplete-1 = in 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/inf-incomplete-02.toml: -------------------------------------------------------------------------------- 1 | inf-incomplete-2 = +in 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/inf-incomplete-03.toml: -------------------------------------------------------------------------------- 1 | inf-incomplete-3 = -in 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/inf-incomplete-2.toml: -------------------------------------------------------------------------------- 1 | inf-incomplete-2 = +in 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/inf-incomplete-3.toml: -------------------------------------------------------------------------------- 1 | inf-incomplete-3 = -in 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/leading-dot-neg.toml: -------------------------------------------------------------------------------- 1 | leading-point-neg = -.12345 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/leading-zero-neg.toml: -------------------------------------------------------------------------------- 1 | leading-zero-neg = -03.14 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/nan-incomplete-01.toml: -------------------------------------------------------------------------------- 1 | nan-incomplete-1 = na 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/nan-incomplete-02.toml: -------------------------------------------------------------------------------- 1 | nan-incomplete-2 = +na 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/nan-incomplete-03.toml: -------------------------------------------------------------------------------- 1 | nan-incomplete-3 = -na 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/nan-incomplete-2.toml: -------------------------------------------------------------------------------- 1 | nan-incomplete-2 = +na 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/nan-incomplete-3.toml: -------------------------------------------------------------------------------- 1 | nan-incomplete-3 = -na 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/trailing-dot-min.toml: -------------------------------------------------------------------------------- 1 | trailing-point-min = -1. 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/trailing-dot-plus.toml: -------------------------------------------------------------------------------- 1 | trailing-point-plus = +1. 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/trailing-exp-plus.toml: -------------------------------------------------------------------------------- 1 | trailing-exp-plus = 0.0e+ 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/trailing-point-min.toml: -------------------------------------------------------------------------------- 1 | trailing-point-min = -1. 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/trailing-us-exp-01.toml: -------------------------------------------------------------------------------- 1 | trailing-us-exp-1 = 1_e2 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/bad-key-syntax.toml: -------------------------------------------------------------------------------- 1 | tbl = { a = 1, [b] } 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/overwrite-06.toml: -------------------------------------------------------------------------------- 1 | a = { b = 1, b.c = 2 } 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/double-sign-nex.toml: -------------------------------------------------------------------------------- 1 | double-sign-nex = --99 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/double-sign-plus.toml: -------------------------------------------------------------------------------- 1 | double-sign-plus = ++99 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/invalid-hex-01.toml: -------------------------------------------------------------------------------- 1 | invalid-hex-1 = 0xaafz 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/invalid-hex-2.toml: -------------------------------------------------------------------------------- 1 | invalid-hex-2 = 0xgabba00f1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/negative-bin.toml: -------------------------------------------------------------------------------- 1 | negative-bin = -0b11010110 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/positive-bin.toml: -------------------------------------------------------------------------------- 1 | positive-bin = +0b11010110 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/trailing-us-bin.toml: -------------------------------------------------------------------------------- 1 | trailing-us-bin = 0b1_ 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/trailing-us-hex.toml: -------------------------------------------------------------------------------- 1 | trailing-us-hex = 0x1_ 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/trailing-us-oct.toml: -------------------------------------------------------------------------------- 1 | trailing-us-oct = 0o1_ 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/after-array.toml: -------------------------------------------------------------------------------- 1 | [[agencies]] owner = "S Cjelli" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/end-in-escape.toml: -------------------------------------------------------------------------------- 1 | "backslash is the last char\ 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/special-character.toml: -------------------------------------------------------------------------------- 1 | μ = "greek small letter mu" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-date/feb-29.toml: -------------------------------------------------------------------------------- 1 | "not a leap year" = 2100-02-29 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-concat.toml: -------------------------------------------------------------------------------- 1 | no_concat = "first" "second" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-hex-esc-04.toml: -------------------------------------------------------------------------------- 1 | bad-hex-esc-4 = "\x 50" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-hex-esc-05.toml: -------------------------------------------------------------------------------- 1 | bad-hex-esc-5 = "\x 50" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-01.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-1 = "val\ue" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-02.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-2 = "val\Ux" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-04.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-4 = "val\U0000" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-07.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-7 = "\uabag" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-1.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-1 = "val\ue" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-2.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-2 = "val\Ux" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-4.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-4 = "val\U0000" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-7.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-7 = "\uabag" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/multiline-bad-escape-01.toml: -------------------------------------------------------------------------------- 1 | k = """t\a""" 2 | 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/no-close-02.toml: -------------------------------------------------------------------------------- 1 | "a-string".must-be = "closed 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/no-close-04.toml: -------------------------------------------------------------------------------- 1 | 'a-string'.must-be = 'closed 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/array-empty.toml: -------------------------------------------------------------------------------- 1 | [[]] 2 | name = "Born to Run" 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/bare-invalid-character-01.toml: -------------------------------------------------------------------------------- 1 | [!] 2 | k = 123 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/empty-implicit-table.toml: -------------------------------------------------------------------------------- 1 | [naughty..naughty] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/nested-brackets-close.toml: -------------------------------------------------------------------------------- 1 | [a]b] 2 | zyx = 42 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/nested-brackets-open.toml: -------------------------------------------------------------------------------- 1 | [a[b] 2 | zyx = 42 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/overwrite-bool-with-array.toml: -------------------------------------------------------------------------------- 1 | a=true 2 | [[a]] 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/overwrite-with-deep-table.toml: -------------------------------------------------------------------------------- 1 | a=1 2 | [a.b.c.d] 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/empty.json: -------------------------------------------------------------------------------- 1 | { 2 | "thevoid": [[[[[]]]]] 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/mixed-int-float.toml: -------------------------------------------------------------------------------- 1 | ints-and-floats = [1, 1.1] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/datetime/invalid-date-in-string.toml: -------------------------------------------------------------------------------- 1 | s = '2020-01-01x' 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/integer/underscore.toml: -------------------------------------------------------------------------------- 1 | kilo = 1_000 2 | x = 1_1_1_1 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/boolean-0.toml: -------------------------------------------------------------------------------- 1 | bool1 = true 2 | bool2 = false 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/whitespace.json: -------------------------------------------------------------------------------- 1 | { 2 | "valid key": {} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/bool/capitalized-true.toml: -------------------------------------------------------------------------------- 1 | capitalized-true = True 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/bool/mixed-case-false.toml: -------------------------------------------------------------------------------- 1 | mixed-case-false = falsE 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/bool/mixed-case-true.toml: -------------------------------------------------------------------------------- 1 | mixed-case-true = trUe 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/bool/wrong-case-false.toml: -------------------------------------------------------------------------------- 1 | wrong-case-false = FALSE 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/bool/wrong-case-true.toml: -------------------------------------------------------------------------------- 1 | wrong-case-true = TRUE 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/bare-null.toml: -------------------------------------------------------------------------------- 1 | bare-null = "some value" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/no-date-time-sep.toml: -------------------------------------------------------------------------------- 1 | foo = 1997-09-0909:09:09 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/exp-trailing-us-02.toml: -------------------------------------------------------------------------------- 1 | exp-trailing-us-2 = 1.2_e2 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/exp-trailing-us-2.toml: -------------------------------------------------------------------------------- 1 | exp-trailing-us-2 = 1.2_e2 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/leading-dot-plus.toml: -------------------------------------------------------------------------------- 1 | leading-point-plus = +.12345 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/leading-point-neg.toml: -------------------------------------------------------------------------------- 1 | leading-point-neg = -.12345 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/leading-point-plus.toml: -------------------------------------------------------------------------------- 1 | leading-point-plus = +.12345 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/leading-zero-plus.toml: -------------------------------------------------------------------------------- 1 | leading-zero-plus = +03.14 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/trailing-exp-minus.toml: -------------------------------------------------------------------------------- 1 | trailing-exp-minus = 0.0e- 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/trailing-exp-point.toml: -------------------------------------------------------------------------------- 1 | trailing-exp-point = 0.e 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/trailing-point-plus.toml: -------------------------------------------------------------------------------- 1 | trailing-point-plus = +1. 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/float/trailing-us-exp-02.toml: -------------------------------------------------------------------------------- 1 | trailing-us-exp-2 = 1.2_e2 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/overwrite-03.toml: -------------------------------------------------------------------------------- 1 | a = { b = 1 } 2 | a.b = 2 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/invalid-hex-02.toml: -------------------------------------------------------------------------------- 1 | invalid-hex-2 = 0xgabba00f1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/leading-zero-sign-01.toml: -------------------------------------------------------------------------------- 1 | leading-zero-sign-1 = -01 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/leading-zero-sign-02.toml: -------------------------------------------------------------------------------- 1 | leading-zero-sign-2 = +01 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/leading-zero-sign-1.toml: -------------------------------------------------------------------------------- 1 | leading-zero-sign-1 = -01 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/leading-zero-sign-2.toml: -------------------------------------------------------------------------------- 1 | leading-zero-sign-2 = +01 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/leading-zero-sign-3.toml: -------------------------------------------------------------------------------- 1 | leading-zero-sign-3 = +0_1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/after-table.toml: -------------------------------------------------------------------------------- 1 | [error] this = "should not be here" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/dotted-redefine-table-01.toml: -------------------------------------------------------------------------------- 1 | a = false 2 | a.b = true 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/duplicate-keys-02.toml: -------------------------------------------------------------------------------- 1 | dupe = false 2 | dupe = true 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/duplicate-keys-05.toml: -------------------------------------------------------------------------------- 1 | a = 1 2 | "\u0061" = 1 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/no-eol-03.toml: -------------------------------------------------------------------------------- 1 | 0=""o=""m=""r=""00="0"q="""0"""e="""0""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-03.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-3 = "val\U0000000" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-05.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-5 = "val\Ugggggggg" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-3.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-3 = "val\U0000000" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-5.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-5 = "val\Ugggggggg" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/basic-multiline-unknown-escape.toml: -------------------------------------------------------------------------------- 1 | a = """\@""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/multiline-bad-escape-04.toml: -------------------------------------------------------------------------------- 1 | backslash = """\""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/multiline-quotes-01.toml: -------------------------------------------------------------------------------- 1 | a = """6 quotes: """""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/append-with-dotted-keys-05.toml: -------------------------------------------------------------------------------- 1 | a.b.c = 1 2 | a.b = 2 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/append-with-dotted-keys-06.toml: -------------------------------------------------------------------------------- 1 | a = 1 2 | a.b = 2 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/bare-invalid-character-02.toml: -------------------------------------------------------------------------------- 1 | [bare!key] 2 | k = 123 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/no-close-02.toml: -------------------------------------------------------------------------------- 1 | [closing-bracket.missingö 2 | blaa=2 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/redefine-02.toml: -------------------------------------------------------------------------------- 1 | [t1] 2 | t2.t3.v = 0 3 | [t1.t2] 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/redefine-03.toml: -------------------------------------------------------------------------------- 1 | [t1] 2 | t2.t3.v = 0 3 | [t1.t2.t3] 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/text-after-table.toml: -------------------------------------------------------------------------------- 1 | [error] this shouldn't be here 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/mixed-int-string.toml: -------------------------------------------------------------------------------- 1 | strings-and-ints = ["hi", 42] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/comment/noeol.toml: -------------------------------------------------------------------------------- 1 | # single comment without any eol characters -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/inline-table/array-02.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": {"a": []} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/basic-escape-01.toml: -------------------------------------------------------------------------------- 1 | # Escape " 2 | test = "\"one\"" 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/bool/capitalized-false.toml: -------------------------------------------------------------------------------- 1 | capitalized-false = False 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/bool/mixed-case.toml: -------------------------------------------------------------------------------- 1 | mixed-case = valid = False 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/bool/starting-same-false.toml: -------------------------------------------------------------------------------- 1 | starting-same-false = falsey 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/bool/starting-same-true.toml: -------------------------------------------------------------------------------- 1 | starting-same-true = truer 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/feb-29.toml: -------------------------------------------------------------------------------- 1 | "not a leap year" = 2100-02-29T15:15:15Z 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/second-trailing-dot.toml: -------------------------------------------------------------------------------- 1 | foo = 1997-09-09T09:09:09. 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/second-trailing-dotz.toml: -------------------------------------------------------------------------------- 1 | foo = 2016-09-09T09:09:09.Z 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/leading-zero-sign-03.toml: -------------------------------------------------------------------------------- 1 | leading-zero-sign-3 = +0_1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/integer/text-after-integer.toml: -------------------------------------------------------------------------------- 1 | answer = 42 the ultimate answer? 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/duplicate-keys-01.toml: -------------------------------------------------------------------------------- 1 | name = "Tom" 2 | name = "Pradyun" 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/duplicate-keys-06.toml: -------------------------------------------------------------------------------- 1 | "a'b" = 1 2 | "a\u0027b" = 2 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/escape.toml: -------------------------------------------------------------------------------- 1 | \u00c0 = "latin capital letter A with grave" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-multiline.toml: -------------------------------------------------------------------------------- 1 | multi = "first line 2 | second line" 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-ml-1.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-ml-1 = """val\ue""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-ml-2.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-ml-2 = """val\Ux""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-ml-4.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-ml-4 = """val\U0000""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-ml-7.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-ml-7 = """\uabag""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/missing-quotes-inline-table.toml: -------------------------------------------------------------------------------- 1 | name = { key = value } 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/multiline-no-close-04.toml: -------------------------------------------------------------------------------- 1 | bee = """ 2 | hee 3 | gee "" 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/multiline-no-close-05.toml: -------------------------------------------------------------------------------- 1 | bee = """ 2 | hee 3 | gee\ 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/wrong-close.toml: -------------------------------------------------------------------------------- 1 | bad-ending-quote = "double and single' 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/array-no-close-01.toml: -------------------------------------------------------------------------------- 1 | [[albums] 2 | name = "Born to Run" 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/duplicate-key-01.toml: -------------------------------------------------------------------------------- 1 | [a] 2 | b = 1 3 | 4 | [a] 5 | c = 2 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/no-close-01.toml: -------------------------------------------------------------------------------- 1 | [where will it end 2 | name = value 3 | 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/no-close-09.toml: -------------------------------------------------------------------------------- 1 | ["where will it end""] 2 | name = value 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/hetergeneous.toml: -------------------------------------------------------------------------------- 1 | mixed = [[1, 2], ["a", "b"], [1.1, 2.1]] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/special-chars.toml: -------------------------------------------------------------------------------- 1 | "=~!@$^&*()_+-`1234567890[]|/?><.,;:'=" = 1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/local-time-0.toml: -------------------------------------------------------------------------------- 1 | lt1 = 07:32:00 2 | lt2 = 00:32:00.999 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/offset-date-time-1.toml: -------------------------------------------------------------------------------- 1 | odt4 = 1979-05-27 07:32:00Z 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/table-2.toml: -------------------------------------------------------------------------------- 1 | [dog."tater.man"] 2 | type.name = "pug" 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/simple.toml: -------------------------------------------------------------------------------- 1 | answer = "You are not drinking enough whisky." 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/array-implicit.toml: -------------------------------------------------------------------------------- 1 | [[albums.songs]] 2 | name = "Glory Days" 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/extend-defined-aot.toml: -------------------------------------------------------------------------------- 1 | [[tab.arr]] 2 | [tab] 3 | arr.val1=1 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/bool/almost-false-with-extra.toml: -------------------------------------------------------------------------------- 1 | almost-false-with-extra = falsify 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/bool/almost-true-with-extra.toml: -------------------------------------------------------------------------------- 1 | almost-true-with-extra = truthy 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/offset-minus-no-minute.toml: -------------------------------------------------------------------------------- 1 | foo = 1997-09-09T09:09:09.09+09 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/offset-plus-no-minute.toml: -------------------------------------------------------------------------------- 1 | foo = 1997-09-09T09:09:09.09+09 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/encoding/utf16-comment.toml: -------------------------------------------------------------------------------- 1 | # UTF-16 without BOM 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/after-value.toml: -------------------------------------------------------------------------------- 1 | first = "Tom" last = "Preston-Werner" # INVALID 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-datetime/feb-29.toml: -------------------------------------------------------------------------------- 1 | "not a leap year" = 2100-02-29T15:15:15 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-time/no-secs.toml: -------------------------------------------------------------------------------- 1 | # No seconds in time. 2 | no-secs = 17:45 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-ml-3.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-ml-3 = """val\U0000000""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-ml-5.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-ml-5 = """val\Ugggggggg""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/basic-out-of-range-unicode-escape-01.toml: -------------------------------------------------------------------------------- 1 | a = "\UFFFFFFFF" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/basic-out-of-range-unicode-escape-02.toml: -------------------------------------------------------------------------------- 1 | a = "\U00D80000" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/multiline-lit-no-close-04.toml: -------------------------------------------------------------------------------- 1 | bee = ''' 2 | hee 3 | gee '' 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/no-close-01.toml: -------------------------------------------------------------------------------- 1 | no-ending-quote = "One time, at band camp 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/no-close-03.toml: -------------------------------------------------------------------------------- 1 | no-ending-quote = 'One time, at band camp 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/append-with-dotted-keys-07.toml: -------------------------------------------------------------------------------- 1 | a = {k1 = 1, k1.name = "joe"} 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/array-no-close-02.toml: -------------------------------------------------------------------------------- 1 | [[closing-bracket.missing] 2 | blaa=2 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/no-close-03.toml: -------------------------------------------------------------------------------- 1 | ["where will it end] 2 | name = value 3 | 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/table-array-string-backslash.toml: -------------------------------------------------------------------------------- 1 | foo = [ { bar="\"{{baz}}\""} ] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/inline-table/key-dotted-7.toml: -------------------------------------------------------------------------------- 1 | arr = [ 2 | {a.b = [{c.d = 1}]} 3 | ] 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/empty-3.json: -------------------------------------------------------------------------------- 1 | { 2 | "": {"type": "integer", "value": "0"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/zero.json: -------------------------------------------------------------------------------- 1 | { 2 | "0": {"type": "integer", "value": "0"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/basic-escape-02.toml: -------------------------------------------------------------------------------- 1 | # Escape \ and then " 2 | test = "\\\"one" 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/comment-cr.toml: -------------------------------------------------------------------------------- 1 | comment-cr = "Carriage return in comment" # a=1 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/offset-minus-minute-1digit.toml: -------------------------------------------------------------------------------- 1 | foo = 1997-09-09T09:09:09.09+09:9 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/offset-minus-no-hour-minute.toml: -------------------------------------------------------------------------------- 1 | foo = 1997-09-09T09:09:09.09+ 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/offset-plus-minute-1digit.toml: -------------------------------------------------------------------------------- 1 | foo = 1997-09-09T09:09:09.09+09:9 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/offset-plus-no-hour-minute.toml: -------------------------------------------------------------------------------- 1 | foo = 1997-09-09T09:09:09.09+ 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/duplicate-key-04.toml: -------------------------------------------------------------------------------- 1 | tbl = { a.b = "a_b", a.b.c = "a_b_c" } 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-date/feb-30.toml: -------------------------------------------------------------------------------- 1 | "only 28 or 29 days in february" = 1988-02-30 2 | 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-date/y10k.toml: -------------------------------------------------------------------------------- 1 | # Maximum RFC3399 year is 9999. 2 | d = 10000-01-01 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/literal-multiline-quotes-01.toml: -------------------------------------------------------------------------------- 1 | a = '''6 apostrophes: '''''' 2 | 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/multiline-escape-space-01.toml: -------------------------------------------------------------------------------- 1 | a = """ 2 | foo \ \n 3 | bar""" 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/multiline-lit-no-close-01.toml: -------------------------------------------------------------------------------- 1 | invalid = ''' 2 | this will fail 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/multiline-no-close-01.toml: -------------------------------------------------------------------------------- 1 | invalid = """ 2 | this will fail 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/no-close-06.toml: -------------------------------------------------------------------------------- 1 | # No newline at end 2 | "a-string".must-be = "closed -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/no-close-08.toml: -------------------------------------------------------------------------------- 1 | # No newline at end 2 | 'a-string'.must-be = 'closed -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/text-after-string.toml: -------------------------------------------------------------------------------- 1 | string = "Is there life after strings?" No. 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/append-with-dotted-keys-03.toml: -------------------------------------------------------------------------------- 1 | [[a.b]] 2 | 3 | [a] 4 | b.y = 2 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/empty-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "": {"type": "string", "value": "blank"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/empty-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "": {"type": "string", "value": "blank"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/numeric-01.json: -------------------------------------------------------------------------------- 1 | { 2 | "1": {"type": "bool", "value": "true"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/numeric-06.json: -------------------------------------------------------------------------------- 1 | { 2 | "-1": {"type": "bool", "value": "true"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/numeric-07.json: -------------------------------------------------------------------------------- 1 | { 2 | "-01": {"type": "bool", "value": "true"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/empty.json: -------------------------------------------------------------------------------- 1 | { 2 | "answer": {"type": "string", "value": ""} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/sub-empty.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": { 3 | "b": {} 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/feb-30.toml: -------------------------------------------------------------------------------- 1 | "only 28 or 29 days in february" = 1988-02-30T15:15:15Z 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/no-secs.toml: -------------------------------------------------------------------------------- 1 | # No seconds in time. 2 | no-secs = 1987-07-05T17:45Z 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/offset-minus-no-hour-minute-sep.toml: -------------------------------------------------------------------------------- 1 | foo = 1997-09-09T09:09:09.09+0909 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/offset-plus-no-hour-minute-sep.toml: -------------------------------------------------------------------------------- 1 | foo = 1997-09-09T09:09:09.09+0909 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/overwrite-07.toml: -------------------------------------------------------------------------------- 1 | tab = { inner.table = [{}], inner.table.val = "bad" } -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/duplicate-keys-03.toml: -------------------------------------------------------------------------------- 1 | spelling = "favorite" 2 | "spelling" = "favourite" 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/duplicate-keys-04.toml: -------------------------------------------------------------------------------- 1 | spelling = "favorite" 2 | 'spelling' = "favourite" 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-time/hour-over.toml: -------------------------------------------------------------------------------- 1 | # time-hour = 2DIGIT ; 00-23 2 | d = 24:00:00 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/basic-multiline-out-of-range-unicode-escape-01.toml: -------------------------------------------------------------------------------- 1 | a = """\UFFFFFFFF""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/basic-multiline-out-of-range-unicode-escape-02.toml: -------------------------------------------------------------------------------- 1 | a = """\U00D80000""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/multiline-escape-space-02.toml: -------------------------------------------------------------------------------- 1 | bee = """ 2 | hee \ 3 | 4 | gee \ """ 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/duplicate-key-08.toml: -------------------------------------------------------------------------------- 1 | [a] 2 | b = { c = 2, d = {} } 3 | [a.b] 4 | c = 2 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/duplicate-key-09.toml: -------------------------------------------------------------------------------- 1 | [a] 2 | foo="bar" 3 | [a.b] 4 | foo="bar" 5 | [a] 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/mixed-int-array.toml: -------------------------------------------------------------------------------- 1 | arrays-and-ints = [1, ["Arrays are not integers."]] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/comment/at-eof.json: -------------------------------------------------------------------------------- 1 | { 2 | "key": {"type": "string", "value": "value"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/comment/at-eof2.json: -------------------------------------------------------------------------------- 1 | { 2 | "key": {"type": "string", "value": "value"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/datetime/local-time.toml: -------------------------------------------------------------------------------- 1 | besttimeever = 17:45:00 2 | milliseconds = 10:32:00.555 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/float/long.toml: -------------------------------------------------------------------------------- 1 | longpi = 3.141592653589793 2 | neglongpi = -3.141592653589793 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/numeric-03.json: -------------------------------------------------------------------------------- 1 | { 2 | "0123": {"type": "bool", "value": "true"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/integer-0.toml: -------------------------------------------------------------------------------- 1 | int1 = +99 2 | int2 = 42 3 | int3 = 0 4 | int4 = -17 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/string-1.toml: -------------------------------------------------------------------------------- 1 | str1 = """ 2 | Roses are red 3 | Violets are blue""" 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/raw-empty.json: -------------------------------------------------------------------------------- 1 | { 2 | "empty": {"type": "string", "value": ""} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/with-single-quotes.toml: -------------------------------------------------------------------------------- 1 | ['a'] 2 | [a.'b'] 3 | [a.'b'.c] 4 | answer = 42 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/y10k.toml: -------------------------------------------------------------------------------- 1 | # Maximum RFC3399 year is 9999. 2 | d = 10000-01-01 00:00:00z 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/duplicate-key-02.toml: -------------------------------------------------------------------------------- 1 | table1 = { table2.dupe = 1, table2.dupe = 2 } 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/no-comma-02.toml: -------------------------------------------------------------------------------- 1 | arrr = { comma-missing = true valid-toml = false } 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/overwrite-04.toml: -------------------------------------------------------------------------------- 1 | inline-t = { nest = {} } 2 | 3 | [[inline-t.nest]] 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/overwrite-05.toml: -------------------------------------------------------------------------------- 1 | inline-t = { nest = {} } 2 | 3 | [inline-t.nest] 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/overwrite-08.toml: -------------------------------------------------------------------------------- 1 | tab = { inner = { dog = "best" }, inner.cat = "worst" } -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/no-eol-04.toml: -------------------------------------------------------------------------------- 1 | [[0000l0]] 2 | 0="0"[[0000l0]] 3 | 0="0"[[0000l0]] 4 | 0="0"l="0" 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-date/month-over.toml: -------------------------------------------------------------------------------- 1 | # date-month = 2DIGIT ; 01-12 2 | d = 2006-13-01 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-date/month-under.toml: -------------------------------------------------------------------------------- 1 | # date-month = 2DIGIT ; 01-12 2 | d = 2007-00-01 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-date/trailing-t.toml: -------------------------------------------------------------------------------- 1 | # Date cannot end with trailing T 2 | d = 2006-01-30T 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-datetime/no-secs.toml: -------------------------------------------------------------------------------- 1 | # No seconds in time. 2 | no-secs = 1987-07-05T17:45 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-time/minute-over.toml: -------------------------------------------------------------------------------- 1 | # time-minute = 2DIGIT ; 00-59 2 | d = 00:60:00 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-time/time-no-leads-01.toml: -------------------------------------------------------------------------------- 1 | # Leading 0 is always required. 2 | d = 1:32:00 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-time/time-no-leads-02.toml: -------------------------------------------------------------------------------- 1 | # Leading 0 is always required. 2 | d = 01:32:0 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/basic-multiline-quotes.toml: -------------------------------------------------------------------------------- 1 | str5 = """Here are three quotation marks: """.""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/literal-multiline-quotes-02.toml: -------------------------------------------------------------------------------- 1 | a = '''15 apostrophes: '''''''''''''''''' 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/no-close-05.toml: -------------------------------------------------------------------------------- 1 | # No newline at end 2 | no-ending-quote = "One time, at band camp -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/no-close-07.toml: -------------------------------------------------------------------------------- 1 | # No newline at end 2 | no-ending-quote = 'One time, at band camp -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/no-close-09.toml: -------------------------------------------------------------------------------- 1 | # Newlines are not allowed in "-strings. 2 | a = " 3 | " 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/no-close-10.toml: -------------------------------------------------------------------------------- 1 | # Newlines are not allowed in '-strings. 2 | a = ' 3 | ' 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/duplicate-key-03.toml: -------------------------------------------------------------------------------- 1 | [fruit] 2 | apple.color = "red" 3 | 4 | [[fruit.apple]] 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/nested-double.toml: -------------------------------------------------------------------------------- 1 | nest = [ 2 | [ 3 | ["a"], 4 | [1, 2, [3]] 5 | ] 6 | ] 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/nested-inline-table.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": [{ 3 | "b": {} 4 | }] 5 | } 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/strings.toml: -------------------------------------------------------------------------------- 1 | string_array = [ "all", 'strings', """are the same""", '''type'''] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/float/underscore.toml: -------------------------------------------------------------------------------- 1 | before = 3_141.5927 2 | after = 3141.592_7 3 | exponent = 3e1_4 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/implicit-and-explicit-after.toml: -------------------------------------------------------------------------------- 1 | [a.b.c] 2 | answer = 42 3 | 4 | [a] 5 | better = 43 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/implicit-and-explicit-before.toml: -------------------------------------------------------------------------------- 1 | [a] 2 | better = 43 3 | 4 | [a.b.c] 5 | answer = 42 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/inline-table/key-dotted-2.toml: -------------------------------------------------------------------------------- 1 | many.dots.here.dot.dot.dot = {a.b.c = 1, a.b.d = 2} 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/integer/integer.toml: -------------------------------------------------------------------------------- 1 | answer = 42 2 | posanswer = +42 3 | neganswer = -42 4 | zero = 0 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/equals-nospace.json: -------------------------------------------------------------------------------- 1 | { 2 | "answer": {"type": "integer", "value": "42"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/array-implicit-and-explicit-after.toml: -------------------------------------------------------------------------------- 1 | [[a.b]] 2 | x = 1 3 | 4 | [a] 5 | y = 2 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/array-one.toml: -------------------------------------------------------------------------------- 1 | [[people]] 2 | first_name = "Bruce" 3 | last_name = "Springsteen" 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/with-literal-string.toml: -------------------------------------------------------------------------------- 1 | ['a'] 2 | [a.'"b"'] 3 | [a.'"b"'.c] 4 | answer = 42 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/tables-01.toml: -------------------------------------------------------------------------------- 1 | # INVALID TOML DOC 2 | fruit = [] 3 | 4 | [[fruit]] # Not allowed 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/offset-overflow-hour.toml: -------------------------------------------------------------------------------- 1 | # Hour must be 00-24 2 | d = 1985-06-18 17:04:07+25:00 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/time-no-leads.toml: -------------------------------------------------------------------------------- 1 | # Leading 0 is always required. 2 | d = 2023-10-01T1:32:00Z 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-datetime/feb-30.toml: -------------------------------------------------------------------------------- 1 | "only 28 or 29 days in february" = 1988-02-30T15:15:15 2 | 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-datetime/y10k.toml: -------------------------------------------------------------------------------- 1 | # Maximum RFC3399 year is 9999. 2 | d = 10000-01-01 00:00:00 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-escape-01.toml: -------------------------------------------------------------------------------- 1 | invalid-escape = "This string has a bad \a escape character." 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/multiline-bad-escape-02.toml: -------------------------------------------------------------------------------- 1 | # \ is not a valid escape. 2 | k = """t\ t""" 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/multiline-lit-no-close-03.toml: -------------------------------------------------------------------------------- 1 | not-closed= ''' 2 | diibaa 3 | blibae ete 4 | eteta 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/multiline-no-close-03.toml: -------------------------------------------------------------------------------- 1 | not-closed= """ 2 | diibaa 3 | blibae ete 4 | eteta 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/table-6.toml: -------------------------------------------------------------------------------- 1 | # RECOMMENDED 2 | [fruit.apple] 3 | [fruit.orange] 4 | [animal] 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/basic-escape-01.json: -------------------------------------------------------------------------------- 1 | { 2 | "test": {"type": "string", "value": "\"one\""} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/basic-escape-02.json: -------------------------------------------------------------------------------- 1 | { 2 | "test": {"type": "string", "value": "\\\"one"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/basic-escape-03.toml: -------------------------------------------------------------------------------- 1 | # Escape \ four times and then " 2 | test = "\\\\\\\\\"one" 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/escaped-escape.json: -------------------------------------------------------------------------------- 1 | { 2 | "answer": {"type": "string", "value": "\\x64"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/multiline-escaped-crlf.json: -------------------------------------------------------------------------------- 1 | { 2 | "0": {"type": "string", "value": ""} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/empty-name.toml: -------------------------------------------------------------------------------- 1 | [''] 2 | x = 1 3 | 4 | ["".a] 5 | x = 2 6 | 7 | [a.''] 8 | x = 3 9 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/hour-over.toml: -------------------------------------------------------------------------------- 1 | # time-hour = 2DIGIT ; 00-23 2 | d = 2006-01-01T24:00:00-00:00 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/month-over.toml: -------------------------------------------------------------------------------- 1 | # date-month = 2DIGIT ; 01-12 2 | d = 2006-13-01T00:00:00-00:00 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/no-t.toml: -------------------------------------------------------------------------------- 1 | # No "t" or "T" between the date and time. 2 | no-t = 1987-07-0517:45:00Z 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/no-eol-05.toml: -------------------------------------------------------------------------------- 1 | 0=[0]00=[0,0,0]t=["0","0","0"]s=[1000-00-00T00:00:00Z,2000-00-00T00:00:00Z] 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-datetime/hour-over.toml: -------------------------------------------------------------------------------- 1 | # time-hour = 2DIGIT ; 00-23 2 | d = 2006-01-01T24:00:00 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-datetime/month-over.toml: -------------------------------------------------------------------------------- 1 | # date-month = 2DIGIT ; 01-12 2 | d = 2006-13-01T00:00:00 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-datetime/time-no-leads.toml: -------------------------------------------------------------------------------- 1 | # Leading 0 is always required. 2 | d = 2023-10-01T1:32:00Z 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-escape-02.toml: -------------------------------------------------------------------------------- 1 | invalid-escape = "This string has a bad \ escape character." 2 | 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-slash-escape.toml: -------------------------------------------------------------------------------- 1 | invalid-escape = "This string has a bad \/ escape character." 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/multiline-bad-escape-03.toml: -------------------------------------------------------------------------------- 1 | # \ is not a valid escape. 2 | k = """t\ """ 3 | 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/duplicate-key-02.toml: -------------------------------------------------------------------------------- 1 | [fruit] 2 | type = "apple" 3 | 4 | [fruit.type] 5 | apple = "yes" 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/duplicate-key-04.toml: -------------------------------------------------------------------------------- 1 | [fruit] 2 | apple.color = "red" 3 | 4 | [fruit.apple] # INVALID 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/string-quote-comma-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": [{"type": "string", "value": " \", "}] 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/string-with-comma.toml: -------------------------------------------------------------------------------- 1 | title = [ 2 | "Client: XXXX, Job: XXXX", 3 | "Code: XXXX" 4 | ] 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/inline-table/array-03.toml: -------------------------------------------------------------------------------- 1 | b = { a = [ 2 | 1, 3 | 2, 4 | ], b = [ 5 | 3, 6 | 4, 7 | ]} 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/inline-table/key-dotted-3.toml: -------------------------------------------------------------------------------- 1 | [tbl] 2 | a.b.c = {d.e=1} 3 | 4 | [tbl.x] 5 | a.b.c = {d.e=1} 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/dotted-empty.toml: -------------------------------------------------------------------------------- 1 | ''.x = "empty.x" 2 | x."" = "x.empty" 3 | [a] 4 | "".'' = "empty.empty" 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/float-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "flt8": {"type": "float", "value": "224617.445991228"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/key-value-pair-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "key": {"type": "string", "value": "value"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/local-date-time-0.toml: -------------------------------------------------------------------------------- 1 | ldt1 = 1979-05-27T07:32:00 2 | ldt2 = 1979-05-27T00:32:00.999 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/basic-escape-03.json: -------------------------------------------------------------------------------- 1 | { 2 | "test": {"type": "string", "value": "\\\\\\\\\"one"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/ends-in-whitespace-escape.toml: -------------------------------------------------------------------------------- 1 | beee = """ 2 | heeee 3 | geeee\ 4 | 5 | 6 | """ 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/keyword.toml: -------------------------------------------------------------------------------- 1 | [true] 2 | 3 | [false] 4 | 5 | [inf] 6 | 7 | [nan] 8 | 9 | 10 | -------------------------------------------------------------------------------- /.swiftformat: -------------------------------------------------------------------------------- 1 | --disable redundantBackticks 2 | --extension-acl on-declarations 3 | --ifdef no-indent 4 | --trailing-commas collections-only 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/text-in-array.toml: -------------------------------------------------------------------------------- 1 | array = [ 2 | "Entry 1", 3 | I don't belong, 4 | "Entry 2", 5 | ] 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/control/bare-cr.toml: -------------------------------------------------------------------------------- 1 | # The following line contains a single carriage return control character 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/minute-over.toml: -------------------------------------------------------------------------------- 1 | # time-minute = 2DIGIT ; 00-59 2 | d = 2006-01-01T00:60:00-00:00 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/month-under.toml: -------------------------------------------------------------------------------- 1 | # date-month = 2DIGIT ; 01-12 2 | d = 2007-00-01T00:00:00-00:00 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/encoding/ideographic-space.toml: -------------------------------------------------------------------------------- 1 | # First on next line is U+3000 IDEOGRAPHIC SPACE 2 |  foo = "bar" 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-datetime/minute-over.toml: -------------------------------------------------------------------------------- 1 | # time-minute = 2DIGIT ; 00-59 2 | d = 2006-01-01T00:60:00 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-datetime/month-under.toml: -------------------------------------------------------------------------------- 1 | # date-month = 2DIGIT ; 01-12 2 | d = 2007-00-01T00:00:00 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-datetime/no-t.toml: -------------------------------------------------------------------------------- 1 | # No "t" or "T" between the date and time. 2 | no-t = 1987-07-0517:45:00 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/string-quote-comma.toml: -------------------------------------------------------------------------------- 1 | title = [ 2 | "Client: \"XXXX\", Job: XXXX", 3 | "Code: XXXX" 4 | ] 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/datetime/invalid-date-in-string.json: -------------------------------------------------------------------------------- 1 | { 2 | "s": {"type": "string", "value": "2020-01-01x"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/datetime/local-date.json: -------------------------------------------------------------------------------- 1 | { 2 | "bestdayever": {"type": "date-local", "value": "1987-07-05"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/inline-table/end-in-bool.toml: -------------------------------------------------------------------------------- 1 | black = { python=">3.6", version=">=18.9b0", allow_prereleases=true } 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/inline-table/key-dotted-6.toml: -------------------------------------------------------------------------------- 1 | top.dot.dot = [ 2 | {dot.dot.dot = 1}, 3 | {dot.dot.dot = 2}, 4 | ] 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/keys-0.toml: -------------------------------------------------------------------------------- 1 | key = "value" 2 | bare_key = "value" 3 | bare-key = "value" 4 | 1234 = "value" 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/local-date-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "ld1": {"type": "date-local", "value": "1979-05-27"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/string-0.toml: -------------------------------------------------------------------------------- 1 | str = "I'm a string. \"You can quote me\". Name\tJos\u00E9\nLocation\tSF." 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/table-5.toml: -------------------------------------------------------------------------------- 1 | # VALID BUT DISCOURAGED 2 | [fruit.apple] 3 | [animal] 4 | [fruit.orange] 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/duplicate-key-01.toml: -------------------------------------------------------------------------------- 1 | # Duplicate keys within an inline table are invalid 2 | a={b=1, b=2} 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/overwrite-02.toml: -------------------------------------------------------------------------------- 1 | a={} 2 | # Inline tables are immutable and can't be extended 3 | [a.b] 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-06.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-6 = "This string contains a non scalar unicode codepoint \uD801" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-6.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-6 = "This string contains a non scalar unicode codepoint \uD801" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/duplicate-key-05.toml: -------------------------------------------------------------------------------- 1 | [fruit] 2 | apple.taste.sweet = true 3 | 4 | [fruit.apple.taste] # INVALID 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/overwrite-array-in-parent.toml: -------------------------------------------------------------------------------- 1 | [[parent-table.arr]] 2 | [parent-table] 3 | not-arr = 1 4 | arr = 2 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/array-subtables.toml: -------------------------------------------------------------------------------- 1 | [[arr]] 2 | [arr.subtab] 3 | val=1 4 | 5 | [[arr]] 6 | [arr.subtab] 7 | val=2 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/string-with-comma-2.toml: -------------------------------------------------------------------------------- 1 | title = [ 2 | """Client: XXXX, 3 | Job: XXXX""", 4 | "Code: XXXX" 5 | ] 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/dotted-1.toml: -------------------------------------------------------------------------------- 1 | name.first = "Arthur" 2 | "name".'last' = "Dent" 3 | 4 | many.dots.dot.dot.dot = 42 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/numeric-02.json: -------------------------------------------------------------------------------- 1 | { 2 | "1": { 3 | "2": {"type": "bool", "value": "true"} 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/numeric-04.json: -------------------------------------------------------------------------------- 1 | { 2 | "01": { 3 | "23": {"type": "bool", "value": "true"} 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/numeric-05.json: -------------------------------------------------------------------------------- 1 | { 2 | "23": { 3 | "01": {"type": "bool", "value": "true"} 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/inline-table-2.toml: -------------------------------------------------------------------------------- 1 | [product] 2 | type = { name = "Nail" } 3 | # type.edible = false # INVALID 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/inline-table-3.toml: -------------------------------------------------------------------------------- 1 | [product] 2 | type.name = "Nail" 3 | # type = { edible = false } # INVALID 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/ends-in-whitespace-escape.json: -------------------------------------------------------------------------------- 1 | { 2 | "beee": {"type": "string", "value": "heeee\ngeeee"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/array-empty-name.toml: -------------------------------------------------------------------------------- 1 | # Silly thing to do, but valid. 2 | 3 | [['']] 4 | a = 1 5 | [['']] 6 | a = 2 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/array-within-dotted.toml: -------------------------------------------------------------------------------- 1 | [fruit] 2 | apple.color = "red" 3 | 4 | [[fruit.apple.seeds]] 5 | size = 2 6 | -------------------------------------------------------------------------------- /Scripts/format.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | TOMLDECODER_FORMATTING=1 swift package -c release plugin --allow-writing-to-package-directory swiftformat $@ 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-date/no-leads.toml: -------------------------------------------------------------------------------- 1 | # Month "7" instead of "07"; the leading zero is required. 2 | no-leads = 1987-7-05 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/spec-1.0.0/inline-table-2-0.toml: -------------------------------------------------------------------------------- 1 | [product] 2 | type = { name = "Nail" } 3 | type.edible = false # INVALID 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/spec-1.0.0/inline-table-3-0.toml: -------------------------------------------------------------------------------- 1 | [product] 2 | type.name = "Nail" 3 | type = { edible = false } # INVALID 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/open-parent-table.toml: -------------------------------------------------------------------------------- 1 | [[parent-table.arr]] 2 | [[parent-table.arr]] 3 | [parent-table] 4 | not-arr = 1 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/comment/at-eof.toml: -------------------------------------------------------------------------------- 1 | # This is a full-line comment 2 | key = "value" # This is a comment at the end of a line 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/comment/at-eof2.toml: -------------------------------------------------------------------------------- 1 | # This is a full-line comment 2 | key = "value" # This is a comment at the end of a line 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/special-word.toml: -------------------------------------------------------------------------------- 1 | false = false 2 | true = 1 3 | inf = 100000000 4 | nan = "ceci n'est pas un nombre" 5 | 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/keys-7.json: -------------------------------------------------------------------------------- 1 | { 2 | "3": { 3 | "14159": {"type": "string", "value": "pi"} 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/string-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "str1": {"type": "string", "value": "Roses are red\nViolets are blue"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/simple.json: -------------------------------------------------------------------------------- 1 | { 2 | "answer": {"type": "string", "value": "You are not drinking enough whisky."} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/keyword.json: -------------------------------------------------------------------------------- 1 | { 2 | "false": {}, 3 | "inf": {}, 4 | "nan": {}, 5 | "true": {} 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/string/bad-uni-esc-ml-6.toml: -------------------------------------------------------------------------------- 1 | bad-uni-esc-ml-6 = """This string contains a non scalar unicode codepoint \uD801""" 2 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/comment/after-literal-no-ws.toml: -------------------------------------------------------------------------------- 1 | inf=inf#infinity 2 | nan=nan#not a number 3 | true=true#true 4 | false=false#false 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/datetime/local.toml: -------------------------------------------------------------------------------- 1 | local = 1987-07-05T17:45:00 2 | milli = 1977-12-21T10:32:00.555 3 | space = 1987-07-05 17:45:00 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/offset-date-time-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "odt4": {"type": "datetime", "value": "1979-05-27T07:32:00Z"} 3 | } 4 | -------------------------------------------------------------------------------- /Sources/ProlepticGregorianTestHelpers/include/module.modulemap: -------------------------------------------------------------------------------- 1 | module ProlepticGregorianTestHelpers { 2 | umbrella header "DateRef.h" 3 | export * 4 | } -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/text-after-array-entries.toml: -------------------------------------------------------------------------------- 1 | array = [ 2 | "Is there life after an array separator?", No 3 | "Entry" 4 | ] 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/no-leads.toml: -------------------------------------------------------------------------------- 1 | # Month "7" instead of "07"; the leading zero is required. 2 | no-leads = 1987-7-05T17:45:00Z 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/linebreak-04.toml: -------------------------------------------------------------------------------- 1 | json_like = { 2 | first = "Tom", 3 | last = "Preston-Werner" 4 | } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/overwrite-09.toml: -------------------------------------------------------------------------------- 1 | [tab.nested] 2 | inline-t = { nest = {} } 3 | 4 | [tab] 5 | nested.inline-t.nest = 2 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-date/no-leads-with-milli.toml: -------------------------------------------------------------------------------- 1 | # Day "5" instead of "05"; the leading zero is required. 2 | with-milli = 1987-07-5 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/bool/bool.json: -------------------------------------------------------------------------------- 1 | { 2 | "f": {"type": "bool", "value": "false"}, 3 | "t": {"type": "bool", "value": "true"} 4 | } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/example.toml: -------------------------------------------------------------------------------- 1 | best-day-ever = 1987-07-05T17:45:00Z 2 | 3 | [numtheory] 4 | boring = false 5 | perfection = [6, 28, 496] 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/inline-table/key-dotted-4.toml: -------------------------------------------------------------------------------- 1 | [[arr]] 2 | t = {a.b=1} 3 | T = {a.b=1} 4 | 5 | [[arr]] 6 | t = {a.b=2} 7 | T = {a.b=2} 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/array-1.toml: -------------------------------------------------------------------------------- 1 | integers2 = [ 2 | 1, 2, 3 3 | ] 4 | 5 | integers3 = [ 6 | 1, 7 | 2, # this is ok 8 | ] 9 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/with-pound.json: -------------------------------------------------------------------------------- 1 | { 2 | "key#group": { 3 | "answer": {"type": "integer", "value": "42"} 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/text-before-array-separator.toml: -------------------------------------------------------------------------------- 1 | array = [ 2 | "Is there life before an array separator?" No, 3 | "Entry" 4 | ] 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/no-leads-month.toml: -------------------------------------------------------------------------------- 1 | # Month "7" instead of "07"; the leading zero is required. 2 | no-leads = 1987-7-05T17:45:00Z 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/duplicate-key-03.toml: -------------------------------------------------------------------------------- 1 | tbl = { fruit = { apple.color = "red" }, fruit.apple.texture = { smooth = true } } 2 | 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/key/dotted-redefine-table-02.toml: -------------------------------------------------------------------------------- 1 | # Defined a.b as int 2 | a.b = 1 3 | # Tries to access it as table: error 4 | a.b.c = 2 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-datetime/no-leads.toml: -------------------------------------------------------------------------------- 1 | # Month "7" instead of "07"; the leading zero is required. 2 | no-leads = 1987-7-05T17:45:00 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/redefine-01.toml: -------------------------------------------------------------------------------- 1 | # Define b as int, and try to use it as a table: error 2 | [a] 3 | b = 1 4 | 5 | [a.b] 6 | c = 2 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/float/float.toml: -------------------------------------------------------------------------------- 1 | pi = 3.14 2 | pospi = +3.14 3 | negpi = -3.14 4 | zero-intpart = 0.123 5 | leading-zero-fractional = 0.0123 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/keys-3.toml: -------------------------------------------------------------------------------- 1 | name = "Orange" 2 | physical.color = "orange" 3 | physical.shape = "round" 4 | site."google.com" = true 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/overwrite-01.toml: -------------------------------------------------------------------------------- 1 | a.b=0 2 | # Since table "a" is already defined, it can't be replaced by an inline table. 3 | a={} 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/inline-table/multiline.toml: -------------------------------------------------------------------------------- 1 | tbl_multiline = { a = 1, b = """ 2 | multiline 3 | """, c = """and yet 4 | another line""", d = 4 } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/dotted-4.toml: -------------------------------------------------------------------------------- 1 | top.key = 1 2 | 3 | [[arr]] 4 | a.b.c=1 5 | a.b.d=2 6 | 7 | [[arr]] 8 | a.b.c=3 9 | a.b.d=4 10 | 11 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/numeric-08.json: -------------------------------------------------------------------------------- 1 | { 2 | "01": {"type": "string", "value": "zero one"}, 3 | "1": {"type": "string", "value": "one"} 4 | } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/special-chars.json: -------------------------------------------------------------------------------- 1 | { 2 | "=~!@$^\u0026*()_+-`1234567890[]|/?\u003e\u003c.,;:'=": {"type": "integer", "value": "1"} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/no-leads-with-milli.toml: -------------------------------------------------------------------------------- 1 | # Day "5" instead of "05"; the leading zero is required. 2 | with-milli = 1987-07-5T17:45:00.12Z 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/newline-crlf.json: -------------------------------------------------------------------------------- 1 | { 2 | "newline": {"type": "string", "value": "crlf"}, 3 | "os": {"type": "string", "value": "DOS"} 4 | } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/newline-lf.json: -------------------------------------------------------------------------------- 1 | { 2 | "newline": {"type": "string", "value": "lf"}, 3 | "os": {"type": "string", "value": "unix"} 4 | } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/table-1.toml: -------------------------------------------------------------------------------- 1 | [table-1] 2 | key1 = "some string" 3 | key2 = 123 4 | 5 | [table-2] 6 | key1 = "another string" 7 | key2 = 456 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/table-5.json: -------------------------------------------------------------------------------- 1 | { 2 | "animal": {}, 3 | "fruit": { 4 | "apple": {}, 5 | "orange": {} 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/table-6.json: -------------------------------------------------------------------------------- 1 | { 2 | "animal": {}, 3 | "fruit": { 4 | "apple": {}, 5 | "orange": {} 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/keyword-with-values.toml: -------------------------------------------------------------------------------- 1 | [true] 2 | k = 1 3 | 4 | [false] 5 | k = 2 6 | 7 | [inf] 8 | k = 3 9 | 10 | [nan] 11 | k = 4 12 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/encoding/utf16-bom.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dduan/TOMLDecoder/HEAD/Tests/TOMLDecoderTests/invalid_fixtures/encoding/utf16-bom.toml -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-datetime/no-leads-with-milli.toml: -------------------------------------------------------------------------------- 1 | # Day "5" instead of "05"; the leading zero is required. 2 | with-milli = 1987-07-5T17:45:00.12 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/spec-1.0.0/keys-2.toml: -------------------------------------------------------------------------------- 1 | = "no key name" # INVALID 2 | "" = "blank" # VALID but discouraged 3 | '' = 'blank' # VALID but discouraged 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/table-array-string-backslash.json: -------------------------------------------------------------------------------- 1 | { 2 | "foo": [{ 3 | "bar": {"type": "string", "value": "\"{{baz}}\""} 4 | }] 5 | } 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/integer/underscore.json: -------------------------------------------------------------------------------- 1 | { 2 | "kilo": {"type": "integer", "value": "1000"}, 3 | "x": {"type": "integer", "value": "1111"} 4 | } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/boolean-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "bool1": {"type": "bool", "value": "true"}, 3 | "bool2": {"type": "bool", "value": "false"} 4 | } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/offset-date-time-0.toml: -------------------------------------------------------------------------------- 1 | odt1 = 1979-05-27T07:32:00Z 2 | odt2 = 1979-05-27T00:32:00-07:00 3 | odt3 = 1979-05-27T00:32:00.999-07:00 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/string-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "str": {"type": "string", "value": "I'm a string. \"You can quote me\". Name\tJosé\nLocation\tSF."} 3 | } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/with-pound.toml: -------------------------------------------------------------------------------- 1 | pound = "We see no # comments here." 2 | poundcomment = "But there are # some comments here." # Did I # mess you up? 3 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/array-implicit.json: -------------------------------------------------------------------------------- 1 | { 2 | "albums": {"songs": [{ 3 | "name": {"type": "string", "value": "Glory Days"} 4 | }]} 5 | } 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/encoding/bad-codepoint.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dduan/TOMLDecoder/HEAD/Tests/TOMLDecoderTests/invalid_fixtures/encoding/bad-codepoint.toml -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/bool.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": [ 3 | {"type": "bool", "value": "true"}, 4 | {"type": "bool", "value": "false"} 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/trailing-comma.toml: -------------------------------------------------------------------------------- 1 | arr-1 = [1,] 2 | 3 | arr-2 = [2,3,] 4 | 5 | arr-3 = [4, 6 | ] 7 | 8 | arr-4 = [ 9 | 5, 10 | 6, 11 | ] 12 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/float/max-int.toml: -------------------------------------------------------------------------------- 1 | # Maximum and minimum safe natural numbers. 2 | max_float = 9_007_199_254_740_991.0 3 | min_float = -9_007_199_254_740_991.0 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/inline-table-0.toml: -------------------------------------------------------------------------------- 1 | name = { first = "Tom", last = "Preston-Werner" } 2 | point = { x = 1, y = 2 } 3 | animal = { type.name = "pug" } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/encoding/bad-utf8-at-end.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dduan/TOMLDecoder/HEAD/Tests/TOMLDecoderTests/invalid_fixtures/encoding/bad-utf8-at-end.toml -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/nested.json: -------------------------------------------------------------------------------- 1 | { 2 | "nest": [ 3 | [{"type": "string", "value": "a"}], 4 | [{"type": "string", "value": "b"}] 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/inline-table/array-02.toml: -------------------------------------------------------------------------------- 1 | # "No newlines are allowed between the curly braces unless they are valid within 2 | # a value" 3 | 4 | a = { a = [ 5 | ]} 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/array-of-tables-2.toml: -------------------------------------------------------------------------------- 1 | points = [ { x = 1, y = 2, z = 3 }, 2 | { x = 7, y = 8, z = 9 }, 3 | { x = 2, y = 4, z = 8 } ] 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/keys-1.toml: -------------------------------------------------------------------------------- 1 | "127.0.0.1" = "value" 2 | "character encoding" = "value" 3 | "ʎǝʞ" = "value" 4 | 'key2' = "value" 5 | 'quoted "value"' = "value" 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/nl.toml: -------------------------------------------------------------------------------- 1 | nl_mid = "val\nue" 2 | nl_end = """value\n""" 3 | 4 | lit_nl_end = '''value\n''' 5 | lit_nl_mid = 'val\nue' 6 | lit_nl_uni = 'val\ue' 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/names.toml: -------------------------------------------------------------------------------- 1 | [a.b.c] 2 | [a."b.c"] 3 | [a.'d.e'] 4 | [a.' x '] 5 | [ d.e.f ] 6 | [ g . h . i ] 7 | [ j . "ʞ" . 'l' ] 8 | 9 | [x.1.2] 10 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/encoding/bad-utf8-in-array.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dduan/TOMLDecoder/HEAD/Tests/TOMLDecoderTests/invalid_fixtures/encoding/bad-utf8-in-array.toml -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/encoding/bad-utf8-in-string.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dduan/TOMLDecoder/HEAD/Tests/TOMLDecoderTests/invalid_fixtures/encoding/bad-utf8-in-string.toml -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/linebreak-01.toml: -------------------------------------------------------------------------------- 1 | # No newlines are allowed between the curly braces unless they are valid within 2 | # a value. 3 | simple = { a = 1 4 | } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/dotted-3.toml: -------------------------------------------------------------------------------- 1 | top.key = 1 2 | 3 | [tbl] 4 | a.b.c = 42.666 5 | 6 | [a.few.dots] 7 | polka.dot = "again?" 8 | polka.dance-with = "Dot" 9 | 10 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/comment-0.toml: -------------------------------------------------------------------------------- 1 | # This is a full-line comment 2 | key = "value" # This is a comment at the end of a line 3 | another = "# This is not a comment" 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/sub.toml: -------------------------------------------------------------------------------- 1 | [a] 2 | key = 1 3 | 4 | # a.extend is a key inside the "a" table. 5 | [a.extend] 6 | key = 2 7 | 8 | [a.extend.more] 9 | key = 3 10 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/encoding/bad-utf8-in-comment.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dduan/TOMLDecoder/HEAD/Tests/TOMLDecoderTests/invalid_fixtures/encoding/bad-utf8-in-comment.toml -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/encoding/bad-utf8-in-multiline.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dduan/TOMLDecoder/HEAD/Tests/TOMLDecoderTests/invalid_fixtures/encoding/bad-utf8-in-multiline.toml -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/encoding/bom-not-at-start-01.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dduan/TOMLDecoder/HEAD/Tests/TOMLDecoderTests/invalid_fixtures/encoding/bom-not-at-start-01.toml -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/encoding/bom-not-at-start-02.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dduan/TOMLDecoder/HEAD/Tests/TOMLDecoderTests/invalid_fixtures/encoding/bom-not-at-start-02.toml -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-date/mday-over.toml: -------------------------------------------------------------------------------- 1 | # date-mday = 2DIGIT ; 01-28, 01-29, 01-30, 01-31 based on 2 | # ; month/year 3 | d = 2006-01-32 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-date/mday-under.toml: -------------------------------------------------------------------------------- 1 | # date-mday = 2DIGIT ; 01-28, 01-29, 01-30, 01-31 based on 2 | # ; month/year 3 | d = 2006-01-00 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-time/second-over.toml: -------------------------------------------------------------------------------- 1 | # time-second = 2DIGIT ; 00-58, 00-59, 00-60 based on leap second 2 | # ; rules 3 | d = 00:00:61 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/datetime/datetime.toml: -------------------------------------------------------------------------------- 1 | space = 1987-07-05 17:45:00Z 2 | 3 | # ABNF is case-insensitive, both "Z" and "z" must be supported. 4 | lower = 1987-07-05t17:45:00z 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/float/exponent.toml: -------------------------------------------------------------------------------- 1 | lower = 3e2 2 | upper = 3E2 3 | neg = 3e-2 4 | pos = 3E+2 5 | zero = 3e0 6 | pointlower = 3.1e2 7 | pointupper = 3.1E2 8 | minustenth = -1E-1 9 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/inline-table/bool.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": { 3 | "a": {"type": "bool", "value": "true"}, 4 | "b": {"type": "bool", "value": "false"} 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/integer-1.toml: -------------------------------------------------------------------------------- 1 | int5 = 1_000 2 | int6 = 5_349_221 3 | int7 = 53_49_221 # Indian number system grouping 4 | int8 = 1_2_3_4_5 # VALID but discouraged 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/local-time-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "lt1": {"type": "time-local", "value": "07:32:00"}, 3 | "lt2": {"type": "time-local", "value": "00:32:00.999"} 4 | } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/array-table-array.toml: -------------------------------------------------------------------------------- 1 | [[a]] 2 | [[a.b]] 3 | [a.b.c] 4 | d = "val0" 5 | [[a.b]] 6 | [a.b.c] 7 | d = "val1" 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/without-super.toml: -------------------------------------------------------------------------------- 1 | # [x] you 2 | # [x.y] don't 3 | # [x.y.z] need these 4 | [x.y.z.w] # for this to work 5 | [x] # defining a super-table afterwards is ok 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/table/append-with-dotted-keys-04.toml: -------------------------------------------------------------------------------- 1 | [dependencies.foo] 2 | version = "0.16" 3 | 4 | [dependencies] 5 | libc = "0.2" 6 | 7 | [dependencies] 8 | rand = "0.3.14" 9 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/mixed-int-float.json: -------------------------------------------------------------------------------- 1 | { 2 | "ints-and-floats": [ 3 | {"type": "integer", "value": "1"}, 4 | {"type": "float", "value": "1.1"} 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/float/long.json: -------------------------------------------------------------------------------- 1 | { 2 | "longpi": {"type": "float", "value": "3.141592653589793"}, 3 | "neglongpi": {"type": "float", "value": "-3.141592653589793"} 4 | } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/float/max-int.json: -------------------------------------------------------------------------------- 1 | { 2 | "max_float": {"type": "float", "value": "9007199254740991"}, 3 | "min_float": {"type": "float", "value": "-9007199254740991"} 4 | } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/inline-table/key-dotted-1.toml: -------------------------------------------------------------------------------- 1 | a = { a.b = 1 } 2 | b = { "a"."b" = 1 } 3 | c = { a . b = 1 } 4 | d = { 'a' . "b" = 1 } 5 | e = {a.b=1} 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/inline-table/key-dotted-5.toml: -------------------------------------------------------------------------------- 1 | arr-1 = [{a.b = 1}] 2 | arr-2 = ["str", {a.b = 1}] 3 | 4 | arr-3 = [{a.b = 1}, {a.b = 2}] 5 | arr-4 = ["str", {a.b = 1}, {a.b = 2}] 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/comment-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "another": {"type": "string", "value": "# This is not a comment"}, 3 | "key": {"type": "string", "value": "value"} 4 | } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/inline-table-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "product": { 3 | "type": { 4 | "name": {"type": "string", "value": "Nail"} 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/inline-table-3.json: -------------------------------------------------------------------------------- 1 | { 2 | "product": { 3 | "type": { 4 | "name": {"type": "string", "value": "Nail"} 5 | } 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/table-4.toml: -------------------------------------------------------------------------------- 1 | # [x] you 2 | # [x.y] don't 3 | # [x.y.z] need these 4 | [x.y.z.w] # for this to work 5 | 6 | [x] # defining a super-table afterward is ok 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/multiline-escaped-crlf.toml: -------------------------------------------------------------------------------- 1 | # The following line should be an unescaped backslash followed by a Windows 2 | # newline sequence ("\r\n") 3 | 0="""\ 4 | """ 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/array-empty-name.json: -------------------------------------------------------------------------------- 1 | { 2 | "": [ 3 | {"a": {"type": "integer", "value": "1"}}, 4 | {"a": {"type": "integer", "value": "2"}} 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/extending-table.toml: -------------------------------------------------------------------------------- 1 | a = [{ b = 1 }] 2 | 3 | # Cannot extend tables within static arrays 4 | # https://github.com/toml-lang/toml/issues/908 5 | [a.c] 6 | foo = 1 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/mday-over.toml: -------------------------------------------------------------------------------- 1 | # date-mday = 2DIGIT ; 01-28, 01-29, 01-30, 01-31 based on 2 | # ; month/year 3 | d = 2006-01-32T00:00:00-00:00 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/mday-under.toml: -------------------------------------------------------------------------------- 1 | # date-mday = 2DIGIT ; 01-28, 01-29, 01-30, 01-31 based on 2 | # ; month/year 3 | d = 2006-01-00T00:00:00-00:00 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/offset-overflow-minute.toml: -------------------------------------------------------------------------------- 1 | # Minute must be 00-59; we allow 60 too because some people do write offsets of 2 | # 60 minutes 3 | d = 1985-06-18 17:04:07+12:61 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/encoding/bad-utf8-in-string-literal.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dduan/TOMLDecoder/HEAD/Tests/TOMLDecoderTests/invalid_fixtures/encoding/bad-utf8-in-string-literal.toml -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-datetime/mday-over.toml: -------------------------------------------------------------------------------- 1 | # date-mday = 2DIGIT ; 01-28, 01-29, 01-30, 01-31 based on 2 | # ; month/year 3 | d = 2006-01-32T00:00:00 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-datetime/mday-under.toml: -------------------------------------------------------------------------------- 1 | # date-mday = 2DIGIT ; 01-28, 01-29, 01-30, 01-31 based on 2 | # ; month/year 3 | d = 2006-01-00T00:00:00 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/mixed-int-string.json: -------------------------------------------------------------------------------- 1 | { 2 | "strings-and-ints": [ 3 | {"type": "string", "value": "hi"}, 4 | {"type": "integer", "value": "42"} 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/datetime/timezone.toml: -------------------------------------------------------------------------------- 1 | utc = 1987-07-05T17:45:56Z 2 | pdt = 1987-07-05T17:45:56-05:00 3 | nzst = 1987-07-05T17:45:56+12:00 4 | nzdt = 1987-07-05T17:45:56+13:00 # DST 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/integer/float64-max.json: -------------------------------------------------------------------------------- 1 | { 2 | "max_int": {"type": "integer", "value": "9007199254740991"}, 3 | "min_int": {"type": "integer", "value": "-9007199254740991"} 4 | } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/inline-table-1.toml: -------------------------------------------------------------------------------- 1 | [name] 2 | first = "Tom" 3 | last = "Preston-Werner" 4 | 5 | [point] 6 | x = 1 7 | y = 2 8 | 9 | [animal] 10 | type.name = "pug" 11 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/table-4.json: -------------------------------------------------------------------------------- 1 | { 2 | "x": { 3 | "y": { 4 | "z": { 5 | "w": {} 6 | } 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/without-super.json: -------------------------------------------------------------------------------- 1 | { 2 | "x": { 3 | "y": { 4 | "z": { 5 | "w": {} 6 | } 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/datetime/second-over.toml: -------------------------------------------------------------------------------- 1 | # time-second = 2DIGIT ; 00-58, 00-59, 00-60 based on leap second 2 | # ; rules 3 | d = 2006-01-01T00:00:61-00:00 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/local-datetime/second-over.toml: -------------------------------------------------------------------------------- 1 | # time-second = 2DIGIT ; 00-58, 00-59, 00-60 based on leap second 2 | # ; rules 3 | d = 2006-01-01T00:00:61 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/datetime/datetime.json: -------------------------------------------------------------------------------- 1 | { 2 | "lower": {"type": "datetime", "value": "1987-07-05T17:45:00Z"}, 3 | "space": {"type": "datetime", "value": "1987-07-05T17:45:00Z"} 4 | } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/datetime/local-time.json: -------------------------------------------------------------------------------- 1 | { 2 | "besttimeever": {"type": "time-local", "value": "17:45:00"}, 3 | "milliseconds": {"type": "time-local", "value": "10:32:00.555"} 4 | } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/datetime/milliseconds.toml: -------------------------------------------------------------------------------- 1 | utc1 = 1987-07-05T17:45:56.123Z 2 | utc2 = 1987-07-05T17:45:56.6Z 3 | wita1 = 1987-07-05T17:45:56.123+08:00 4 | wita2 = 1987-07-05T17:45:56.6+08:00 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/encoding/bad-utf8-in-multiline-literal.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dduan/TOMLDecoder/HEAD/Tests/TOMLDecoderTests/invalid_fixtures/encoding/bad-utf8-in-multiline-literal.toml -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/float/zero.toml: -------------------------------------------------------------------------------- 1 | zero = 0.0 2 | signed-pos = +0.0 3 | signed-neg = -0.0 4 | exponent = 0e0 5 | exponent-two-0 = 0e00 6 | exponent-signed-pos = +0e0 7 | exponent-signed-neg = -0e0 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/integer/long.json: -------------------------------------------------------------------------------- 1 | { 2 | "int64-max": {"type": "integer", "value": "9223372036854775807"}, 3 | "int64-max-neg": {"type": "integer", "value": "-9223372036854775808"} 4 | } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/keys-4.toml: -------------------------------------------------------------------------------- 1 | fruit.name = "banana" # this is best practice 2 | fruit. color = "yellow" # same as fruit.color 3 | fruit . flavor = "banana" # same as fruit.flavor 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/trailing-comma.toml: -------------------------------------------------------------------------------- 1 | # A terminating comma (also called trailing comma) is not permitted after the 2 | # last key/value pair in an inline table 3 | abc = { abc = 123, } 4 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/integer/long.toml: -------------------------------------------------------------------------------- 1 | # int64 "should" be supported, but is not mandatory. It's fine to skip this 2 | # test. 3 | int64-max = 9223372036854775807 4 | int64-max-neg = -9223372036854775808 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/mixed-int-array.json: -------------------------------------------------------------------------------- 1 | { 2 | "arrays-and-ints": [ 3 | {"type": "integer", "value": "1"}, 4 | [{"type": "string", "value": "Arrays are not integers."}] 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/string-with-comma-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": [ 3 | {"type": "string", "value": "Client: XXXX,\nJob: XXXX"}, 4 | {"type": "string", "value": "Code: XXXX"} 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/string-with-comma.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": [ 3 | {"type": "string", "value": "Client: XXXX, Job: XXXX"}, 4 | {"type": "string", "value": "Code: XXXX"} 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/integer/float64-max.toml: -------------------------------------------------------------------------------- 1 | # Maximum and minimum safe float64 natural numbers. Mainly here for 2 | # -int-as-float. 3 | max_int = 9_007_199_254_740_991 4 | min_int = -9_007_199_254_740_991 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/table-7.toml: -------------------------------------------------------------------------------- 1 | # Top-level table begins. 2 | name = "Fido" 3 | breed = "pug" 4 | 5 | # Top-level table ends. 6 | [owner] 7 | name = "Regina Dogman" 8 | member_since = 1999-08-04 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | /.build 3 | /Packages 4 | xcuserdata 5 | .swiftpm 6 | tmp 7 | /result 8 | /bazel-* 9 | MODULE.bazel.lock 10 | /.vscode 11 | .claude 12 | tmp 13 | Docs 14 | Package.resolved 15 | .benchmarkBaselines 16 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/nospaces.json: -------------------------------------------------------------------------------- 1 | { 2 | "ints": [ 3 | {"type": "integer", "value": "1"}, 4 | {"type": "integer", "value": "2"}, 5 | {"type": "integer", "value": "3"} 6 | ] 7 | } 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/string-quote-comma.json: -------------------------------------------------------------------------------- 1 | { 2 | "title": [ 3 | {"type": "string", "value": "Client: \"XXXX\", Job: XXXX"}, 4 | {"type": "string", "value": "Code: XXXX"} 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/space.toml: -------------------------------------------------------------------------------- 1 | # Keep whitespace inside quotes keys at all positions. 2 | "a b" = 1 3 | " c d " = 2 4 | " much whitespace \n \r\n " = 3 5 | 6 | [ " tbl " ] 7 | "\ttab\ttab\t" = "tab" 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/local-date-time-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "ldt1": {"type": "datetime-local", "value": "1979-05-27T07:32:00"}, 3 | "ldt2": {"type": "datetime-local", "value": "1979-05-27T00:32:00.999"} 4 | } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/string-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "str2": {"type": "string", "value": "Roses are red\nViolets are blue"}, 3 | "str3": {"type": "string", "value": "Roses are red\r\nViolets are blue"} 4 | } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/string-6.toml: -------------------------------------------------------------------------------- 1 | regex2 = '''I [dw]on't need \d{2} apples''' 2 | lines = ''' 3 | The first newline is 4 | trimmed in raw strings. 5 | All other whitespace 6 | is preserved. 7 | ''' 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/table-3.toml: -------------------------------------------------------------------------------- 1 | [a.b.c] # this is best practice 2 | [ d.e.f ] # same as [d.e.f] 3 | [ g . h . i ] # same as [g.h.i] 4 | [ j . "ʞ" . 'l' ] # same as [j."ʞ".'l'] 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/array-one.json: -------------------------------------------------------------------------------- 1 | { 2 | "people": [{ 3 | "first_name": {"type": "string", "value": "Bruce"}, 4 | "last_name": {"type": "string", "value": "Springsteen"} 5 | }] 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/implicit-groups.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": { 3 | "b": { 4 | "c": { 5 | "answer": {"type": "integer", "value": "42"} 6 | } 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/with-pound.json: -------------------------------------------------------------------------------- 1 | { 2 | "pound": {"type": "string", "value": "We see no # comments here."}, 3 | "poundcomment": {"type": "string", "value": "But there are # some comments here."} 4 | } 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/float/underscore.json: -------------------------------------------------------------------------------- 1 | { 2 | "after": {"type": "float", "value": "3141.5927"}, 3 | "before": {"type": "float", "value": "3141.5927"}, 4 | "exponent": {"type": "float", "value": "3.0e14"} 5 | } 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/integer/zero.toml: -------------------------------------------------------------------------------- 1 | d1 = 0 2 | d2 = +0 3 | d3 = -0 4 | 5 | h1 = 0x0 6 | h2 = 0x00 7 | h3 = 0x00000 8 | 9 | o1 = 0o0 10 | a2 = 0o00 11 | a3 = 0o00000 12 | 13 | b1 = 0b0 14 | b2 = 0b00 15 | b3 = 0b00000 16 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/quoted-dots.toml: -------------------------------------------------------------------------------- 1 | plain = 1 2 | "with.dot" = 2 3 | 4 | [plain_table] 5 | plain = 3 6 | "with.dot" = 4 7 | 8 | [table.withdot] 9 | plain = 5 10 | "key.with.dots" = 6 11 | "escaped\u002edot" = 7 12 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/float-0.toml: -------------------------------------------------------------------------------- 1 | # fractional 2 | flt1 = +1.0 3 | flt2 = 3.1415 4 | flt3 = -0.01 5 | 6 | # exponent 7 | flt4 = 5e+22 8 | flt5 = 1e06 9 | flt6 = -2E-2 10 | 11 | # both 12 | flt7 = 6.626e-34 13 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/keys-6.toml: -------------------------------------------------------------------------------- 1 | # RECOMMENDED 2 | 3 | apple.type = "fruit" 4 | apple.skin = "thin" 5 | apple.color = "red" 6 | 7 | orange.type = "fruit" 8 | orange.skin = "thick" 9 | orange.color = "orange" 10 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/with-single-quotes.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": { 3 | "b": { 4 | "c": { 5 | "answer": {"type": "integer", "value": "42"} 6 | } 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/inline-table/overwrite-10.toml: -------------------------------------------------------------------------------- 1 | # Set implicit "b", overwrite "b" (illegal!) and then set another implicit. 2 | # 3 | # Caused panic: https://github.com/BurntSushi/toml/issues/403 4 | a = {b.a = 1, b = 2, b.c = 3} 5 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/open-parent-table.json: -------------------------------------------------------------------------------- 1 | { 2 | "parent-table": { 3 | "not-arr": {"type": "integer", "value": "1"}, 4 | "arr": [ 5 | {}, 6 | {} 7 | ] 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/string-5.toml: -------------------------------------------------------------------------------- 1 | # What you see is what you get. 2 | winpath = 'C:\Users\nodejs\templates' 3 | winpath2 = '\\ServerX\admin$\system32\' 4 | quoted = 'Tom "Dubs" Preston-Werner' 5 | regex = '<\i\c*\s*>' 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/table-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "dog": { 3 | "tater.man": { 4 | "type": { 5 | "name": {"type": "string", "value": "pug"} 6 | } 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/multibyte.toml: -------------------------------------------------------------------------------- 1 | # Test each multibyte length: 2, 3, and 4 bytes: 2 | # ɑ € 𐫱 3 | 4 | basic = "ɑ € 𐫱 ɑ€𐫱" 5 | raw = 'ɑ € 𐫱 ɑ€𐫱' 6 | ml-basic = """ɑ € 𐫱 ɑ€𐫱""" 7 | ml-raw = '''ɑ € 𐫱 ɑ€𐫱''' 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/with-literal-string.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": { 3 | "\"b\"": { 4 | "c": { 5 | "answer": {"type": "integer", "value": "42"} 6 | } 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/inline-table/key-dotted-7.json: -------------------------------------------------------------------------------- 1 | { 2 | "arr": [{ 3 | "a": {"b": [{ 4 | "c": { 5 | "d": {"type": "integer", "value": "1"} 6 | } 7 | }]} 8 | }] 9 | } 10 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/array-implicit-and-explicit-after.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": { 3 | "b": [{ 4 | "x": {"type": "integer", "value": "1"} 5 | }], 6 | "y": {"type": "integer", "value": "2"} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/inline-table/inline-table.toml: -------------------------------------------------------------------------------- 1 | name = { first = "Tom", last = "Preston-Werner" } 2 | point = { x = 1, y = 2 } 3 | simple = { a = 1 } 4 | str-key = { "a" = 1 } 5 | table-array = [{ "a" = 1 }, { "b" = 2 }] 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/integer/literals.toml: -------------------------------------------------------------------------------- 1 | bin1 = 0b11010110 2 | bin2 = 0b1_0_1 3 | 4 | oct1 = 0o01234567 5 | oct2 = 0o755 6 | oct3 = 0o7_6_5 7 | 8 | hex1 = 0xDEADBEEF 9 | hex2 = 0xdeadbeef 10 | hex3 = 0xdead_beef 11 | hex4 = 0x00987 12 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/keys-5.toml: -------------------------------------------------------------------------------- 1 | # VALID BUT DISCOURAGED 2 | 3 | apple.type = "fruit" 4 | orange.type = "fruit" 5 | 6 | apple.skin = "thin" 7 | orange.skin = "thick" 8 | 9 | apple.color = "red" 10 | orange.color = "orange" 11 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/without-super-with-values.toml: -------------------------------------------------------------------------------- 1 | # [x] you 2 | # [x.y] don't 3 | # [x.y.z] need these 4 | [x.y.z.w] # for this to work 5 | a = 1 6 | b = 2 7 | [x] # defining a super-table afterwards is ok 8 | c = 3 9 | d = 4 10 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/escapes.toml: -------------------------------------------------------------------------------- 1 | "\n" = "newline" 2 | "\b" = "bell" 3 | "\u00c0" = "latin capital letter A with grave" 4 | "\"" = "just a quote" 5 | 6 | ["backsp\b\b"] 7 | 8 | ["\"quoted\""] 9 | quote = true 10 | 11 | ["a.b"."\u00c0"] 12 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/datetime/edge.toml: -------------------------------------------------------------------------------- 1 | first-offset = 0001-01-01 00:00:00Z 2 | first-local = 0001-01-01 00:00:00 3 | first-date = 0001-01-01 4 | 5 | last-offset = 9999-12-31 23:59:59Z 6 | last-local = 9999-12-31 23:59:59 7 | last-date = 9999-12-31 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/array-of-tables-0.toml: -------------------------------------------------------------------------------- 1 | [[products]] 2 | name = "Hammer" 3 | sku = 738594937 4 | 5 | [[products]] # empty table within the array 6 | 7 | [[products]] 8 | name = "Nail" 9 | sku = 284758393 10 | 11 | color = "gray" 12 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/array-many.toml: -------------------------------------------------------------------------------- 1 | [[people]] 2 | first_name = "Bruce" 3 | last_name = "Springsteen" 4 | 5 | [[people]] 6 | first_name = "Eric" 7 | last_name = "Clapton" 8 | 9 | [[people]] 10 | first_name = "Bob" 11 | last_name = "Seger" 12 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/integer-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "int1": {"type": "integer", "value": "99"}, 3 | "int2": {"type": "integer", "value": "42"}, 4 | "int3": {"type": "integer", "value": "0"}, 5 | "int4": {"type": "integer", "value": "-17"} 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/keys-4.json: -------------------------------------------------------------------------------- 1 | { 2 | "fruit": { 3 | "color": {"type": "string", "value": "yellow"}, 4 | "flavor": {"type": "string", "value": "banana"}, 5 | "name": {"type": "string", "value": "banana"} 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/spec-1.0.0/table-9-0.toml: -------------------------------------------------------------------------------- 1 | [fruit] 2 | apple.color = "red" 3 | apple.taste.sweet = true 4 | 5 | [fruit.apple] # INVALID 6 | # [fruit.apple.taste] # INVALID 7 | 8 | [fruit.apple.texture] # you can add sub-tables 9 | smooth = true 10 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/spec-1.0.0/table-9-1.toml: -------------------------------------------------------------------------------- 1 | [fruit] 2 | apple.color = "red" 3 | apple.taste.sweet = true 4 | 5 | # [fruit.apple] # INVALID 6 | [fruit.apple.taste] # INVALID 7 | 8 | [fruit.apple.texture] # you can add sub-tables 9 | smooth = true 10 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/inline-table/array-01.toml: -------------------------------------------------------------------------------- 1 | arr = [ {'a'= 1}, {'a'= 2} ] 2 | 3 | people = [{first_name = "Bruce", last_name = "Springsteen"}, 4 | {first_name = "Eric", last_name = "Clapton"}, 5 | {first_name = "Bob", last_name = "Seger"}] 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/inline-table/empty.toml: -------------------------------------------------------------------------------- 1 | empty1 = {} 2 | empty2 = { } 3 | empty_in_array = [ { not_empty = 1 }, {} ] 4 | empty_in_array2 = [{},{not_empty=1}] 5 | many_empty = [{},{},{}] 6 | nested_empty = {"empty"={}} 7 | with_cmt ={ }#nothing here 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/table-9.toml: -------------------------------------------------------------------------------- 1 | [fruit] 2 | apple.color = "red" 3 | apple.taste.sweet = true 4 | 5 | # [fruit.apple] # INVALID 6 | # [fruit.apple.taste] # INVALID 7 | 8 | [fruit.apple.texture] # you can add sub-tables 9 | smooth = true 10 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/multiline-empty.json: -------------------------------------------------------------------------------- 1 | { 2 | "empty-1": {"type": "string", "value": ""}, 3 | "empty-2": {"type": "string", "value": ""}, 4 | "empty-3": {"type": "string", "value": ""}, 5 | "empty-4": {"type": "string", "value": ""} 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/comment/after-literal-no-ws.json: -------------------------------------------------------------------------------- 1 | { 2 | "false": {"type": "bool", "value": "false"}, 3 | "inf": {"type": "float", "value": "inf"}, 4 | "nan": {"type": "float", "value": "nan"}, 5 | "true": {"type": "bool", "value": "true"} 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/integer/integer.json: -------------------------------------------------------------------------------- 1 | { 2 | "answer": {"type": "integer", "value": "42"}, 3 | "neganswer": {"type": "integer", "value": "-42"}, 4 | "posanswer": {"type": "integer", "value": "42"}, 5 | "zero": {"type": "integer", "value": "0"} 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/integer-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "int5": {"type": "integer", "value": "1000"}, 3 | "int6": {"type": "integer", "value": "5349221"}, 4 | "int7": {"type": "integer", "value": "5349221"}, 5 | "int8": {"type": "integer", "value": "12345"} 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/invalid_fixtures/array/tables-02.toml: -------------------------------------------------------------------------------- 1 | # INVALID TOML DOC 2 | [[fruit]] 3 | name = "apple" 4 | 5 | [[fruit.variety]] 6 | name = "red delicious" 7 | 8 | # This table conflicts with the previous table 9 | [fruit.variety] 10 | name = "granny smith" 11 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/datetime/local.json: -------------------------------------------------------------------------------- 1 | { 2 | "local": {"type": "datetime-local", "value": "1987-07-05T17:45:00"}, 3 | "milli": {"type": "datetime-local", "value": "1977-12-21T10:32:00.555"}, 4 | "space": {"type": "datetime-local", "value": "1987-07-05T17:45:00"} 5 | } 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/alphanum.toml: -------------------------------------------------------------------------------- 1 | alpha = "a" 2 | 123 = "num" 3 | 000111 = "leading" 4 | 10e3 = "false float" 5 | one1two2 = "mixed" 6 | with-dash = "dashed" 7 | under_score = "___" 8 | 34-11 = 23 9 | 10 | [2018_10] 11 | 001 = 1 12 | 13 | [a-a-a] 14 | _ = false 15 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/keys-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "1234": {"type": "string", "value": "value"}, 3 | "bare-key": {"type": "string", "value": "value"}, 4 | "bare_key": {"type": "string", "value": "value"}, 5 | "key": {"type": "string", "value": "value"} 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/table-8.toml: -------------------------------------------------------------------------------- 1 | fruit.apple.color = "red" 2 | # Defines a table named fruit 3 | # Defines a table named fruit.apple 4 | 5 | fruit.apple.taste.sweet = true 6 | # Defines a table named fruit.apple.taste 7 | # fruit and fruit.apple were already created 8 | -------------------------------------------------------------------------------- /MODULE.bazel: -------------------------------------------------------------------------------- 1 | module( 2 | name = "swift-tomldecoder", 3 | version = "0.3.1", 4 | compatibility_level = 0, 5 | ) 6 | 7 | bazel_dep(name = "apple_support", version = "1.24.5") 8 | bazel_dep(name = "rules_swift", version = "3.3.0") 9 | bazel_dep(name = "rules_cc", version = "0.2.14") 10 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/strings.json: -------------------------------------------------------------------------------- 1 | { 2 | "string_array": [ 3 | {"type": "string", "value": "all"}, 4 | {"type": "string", "value": "strings"}, 5 | {"type": "string", "value": "are the same"}, 6 | {"type": "string", "value": "type"} 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/special-word.json: -------------------------------------------------------------------------------- 1 | { 2 | "false": {"type": "bool", "value": "false"}, 3 | "inf": {"type": "integer", "value": "100000000"}, 4 | "nan": {"type": "string", "value": "ceci n'est pas un nombre"}, 5 | "true": {"type": "integer", "value": "1"} 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/offset-date-time-0.json: -------------------------------------------------------------------------------- 1 | { 2 | "odt1": {"type": "datetime", "value": "1979-05-27T07:32:00Z"}, 3 | "odt2": {"type": "datetime", "value": "1979-05-27T00:32:00-07:00"}, 4 | "odt3": {"type": "datetime", "value": "1979-05-27T00:32:00.999-07:00"} 5 | } 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/string-2.toml: -------------------------------------------------------------------------------- 1 | # On a Unix system, the above multi-line string will most likely be the same as: 2 | str2 = "Roses are red\nViolets are blue" 3 | 4 | # On a Windows system, it will most likely be equivalent to: 5 | str3 = "Roses are red\r\nViolets are blue" 6 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/start-mb.toml: -------------------------------------------------------------------------------- 1 | # Start first line with a multibyte character. 2 | # 3 | # https://github.com/marzer/tomlplusplus/issues/190 4 | s1 = "§" 5 | s2 = '§' 6 | s3 = """\ 7 | §""" 8 | s4 = """ 9 | §""" 10 | s5 = """§""" 11 | s6 = ''' 12 | §''' 13 | s7 = '''§''' 14 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/implicit-and-explicit-after.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": { 3 | "better": {"type": "integer", "value": "43"}, 4 | "b": { 5 | "c": { 6 | "answer": {"type": "integer", "value": "42"} 7 | } 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/implicit-and-explicit-before.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": { 3 | "better": {"type": "integer", "value": "43"}, 4 | "b": { 5 | "c": { 6 | "answer": {"type": "integer", "value": "42"} 7 | } 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/quoted-unicode.toml: -------------------------------------------------------------------------------- 1 | 2 | "\u0000" = "null" 3 | '\u0000' = "different key" 4 | "\u0008 \u000c \U00000041 \u007f \u0080 \u00ff \ud7ff \ue000 \uffff \U00010000 \U0010ffff" = "escaped key" 5 | 6 | "~ € ÿ ퟿  ￿ 𐀀 􏿿" = "basic key" 7 | 'l ~ € ÿ ퟿  ￿ 𐀀 􏿿' = "literal key" 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/array/array.toml: -------------------------------------------------------------------------------- 1 | ints = [1, 2, 3, ] 2 | floats = [1.1, 2.1, 3.1] 3 | strings = ["a", "b", "c"] 4 | dates = [ 5 | 1987-07-05T17:45:00Z, 6 | 1979-05-27T07:32:00, 7 | 2006-06-01, 8 | 11:00:00, 9 | ] 10 | comments = [ 11 | 1, 12 | 2, #this is ok 13 | ] 14 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/table-8.json: -------------------------------------------------------------------------------- 1 | { 2 | "fruit": { 3 | "apple": { 4 | "color": {"type": "string", "value": "red"}, 5 | "taste": { 6 | "sweet": {"type": "bool", "value": "true"} 7 | } 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/datetime/leap-year.toml: -------------------------------------------------------------------------------- 1 | 2000-datetime = 2000-02-29 15:15:15Z 2 | 2000-datetime-local = 2000-02-29 15:15:15 3 | 2000-date = 2000-02-29 4 | 5 | 2024-datetime = 2024-02-29 15:15:15Z 6 | 2024-datetime-local = 2024-02-29 15:15:15 7 | 2024-date = 2024-02-29 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/float/inf-and-nan.toml: -------------------------------------------------------------------------------- 1 | # We don't encode +nan and -nan back with the signs; many languages don't 2 | # support a sign on NaN (it doesn't really make much sense). 3 | nan = nan 4 | nan_neg = -nan 5 | nan_plus = +nan 6 | infinity = inf 7 | infinity_neg = -inf 8 | infinity_plus = +inf 9 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/key/case-sensitive.toml: -------------------------------------------------------------------------------- 1 | sectioN = "NN" 2 | 3 | [section] 4 | name = "lower" 5 | NAME = "upper" 6 | Name = "capitalized" 7 | 8 | [Section] 9 | name = "different section!!" 10 | "μ" = "greek small letter mu" 11 | "Μ" = "greek capital letter MU" 12 | M = "latin letter M" 13 | 14 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/string-6.json: -------------------------------------------------------------------------------- 1 | { 2 | "regex2": {"type": "string", "value": "I [dw]on't need \\d{2} apples"}, 3 | "lines": { 4 | "type": "string", 5 | "value": "The first newline is\ntrimmed in raw strings.\n All other whitespace\n is preserved.\n" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/multibyte.json: -------------------------------------------------------------------------------- 1 | { 2 | "basic": {"type": "string", "value": "ɑ € 𐫱 ɑ€𐫱"}, 3 | "ml-basic": {"type": "string", "value": "ɑ € 𐫱 ɑ€𐫱"}, 4 | "ml-raw": {"type": "string", "value": "ɑ € 𐫱 ɑ€𐫱"}, 5 | "raw": {"type": "string", "value": "ɑ € 𐫱 ɑ€𐫱"} 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/array-within-dotted.json: -------------------------------------------------------------------------------- 1 | { 2 | "fruit": { 3 | "apple": { 4 | "color": {"type": "string", "value": "red"}, 5 | "seeds": [{ 6 | "size": {"type": "integer", "value": "2"} 7 | }] 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/inline-table/end-in-bool.json: -------------------------------------------------------------------------------- 1 | { 2 | "black": { 3 | "allow_prereleases": {"type": "bool", "value": "true"}, 4 | "python": {"type": "string", "value": "\u003e3.6"}, 5 | "version": {"type": "string", "value": "\u003e=18.9b0"} 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/spec-1.0.0/integer-2.toml: -------------------------------------------------------------------------------- 1 | # hexadecimal with prefix `0x` 2 | hex1 = 0xDEADBEEF 3 | hex2 = 0xdeadbeef 4 | hex3 = 0xdead_beef 5 | 6 | # octal with prefix `0o` 7 | oct1 = 0o01234567 8 | oct2 = 0o755 # useful for Unix file permissions 9 | 10 | # binary with prefix `0b` 11 | bin1 = 0b11010110 12 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/string/multibyte-escape.json: -------------------------------------------------------------------------------- 1 | { 2 | "basic-1": {"type": "string", "value": "ɑ € 𐫱 ɑ€𐫱"}, 3 | "ml-basic-1": {"type": "string", "value": "ɑ € 𐫱 ɑ€𐫱"}, 4 | "basic-2": {"type": "string", "value": "ɑ € 𐫱 ɑ€𐫱"}, 5 | "ml-basic-2": {"type": "string", "value": "ɑ € 𐫱 ɑ€𐫱"} 6 | } 7 | -------------------------------------------------------------------------------- /Tests/TOMLDecoderTests/valid_fixtures/table/names-with-values.toml: -------------------------------------------------------------------------------- 1 | [a.b.c] 2 | key = 1 3 | 4 | [a."b.c"] 5 | key = 2 6 | 7 | [a.'d.e'] 8 | key = 3 9 | 10 | [a.' x '] 11 | key = 4 12 | 13 | [ d.e.f ] 14 | key = 5 15 | 16 | [ g . h . i ] 17 | key = 6 18 | 19 | [ j . "ʞ" . 'l' ] 20 | key = 7 21 | 22 | [x.1.2] 23 | key = 8 24 | --------------------------------------------------------------------------------