diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:20:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:20:39 +0000 |
commit | 1376c5a617be5c25655d0d7cb63e3beaa5a6e026 (patch) | |
tree | 3bb8d61aee02bc7a15eab3f36e3b921afc2075d0 /vendor/basic-toml/tests/invalid | |
parent | Releasing progress-linux version 1.69.0+dfsg1-1~progress7.99u1. (diff) | |
download | rustc-1376c5a617be5c25655d0d7cb63e3beaa5a6e026.tar.xz rustc-1376c5a617be5c25655d0d7cb63e3beaa5a6e026.zip |
Merging upstream version 1.70.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/basic-toml/tests/invalid')
42 files changed, 90 insertions, 0 deletions
diff --git a/vendor/basic-toml/tests/invalid/datetime-malformed-no-leads.toml b/vendor/basic-toml/tests/invalid/datetime-malformed-no-leads.toml new file mode 100644 index 000000000..123f173be --- /dev/null +++ b/vendor/basic-toml/tests/invalid/datetime-malformed-no-leads.toml @@ -0,0 +1 @@ +no-leads = 1987-7-05T17:45:00Z diff --git a/vendor/basic-toml/tests/invalid/datetime-malformed-no-secs.toml b/vendor/basic-toml/tests/invalid/datetime-malformed-no-secs.toml new file mode 100644 index 000000000..ba9390076 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/datetime-malformed-no-secs.toml @@ -0,0 +1 @@ +no-secs = 1987-07-05T17:45Z diff --git a/vendor/basic-toml/tests/invalid/datetime-malformed-no-t.toml b/vendor/basic-toml/tests/invalid/datetime-malformed-no-t.toml new file mode 100644 index 000000000..617e3c56d --- /dev/null +++ b/vendor/basic-toml/tests/invalid/datetime-malformed-no-t.toml @@ -0,0 +1 @@ +no-t = 1987-07-0517:45:00Z diff --git a/vendor/basic-toml/tests/invalid/datetime-malformed-with-milli.toml b/vendor/basic-toml/tests/invalid/datetime-malformed-with-milli.toml new file mode 100644 index 000000000..eef792f34 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/datetime-malformed-with-milli.toml @@ -0,0 +1 @@ +with-milli = 1987-07-5T17:45:00.12Z diff --git a/vendor/basic-toml/tests/invalid/duplicate-key-table.toml b/vendor/basic-toml/tests/invalid/duplicate-key-table.toml new file mode 100644 index 000000000..cedf05fc5 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/duplicate-key-table.toml @@ -0,0 +1,5 @@ +[fruit] +type = "apple" + +[fruit.type] +apple = "yes" diff --git a/vendor/basic-toml/tests/invalid/duplicate-keys.toml b/vendor/basic-toml/tests/invalid/duplicate-keys.toml new file mode 100644 index 000000000..9b5aee0e5 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/duplicate-keys.toml @@ -0,0 +1,2 @@ +dupe = false +dupe = true diff --git a/vendor/basic-toml/tests/invalid/duplicate-table.toml b/vendor/basic-toml/tests/invalid/duplicate-table.toml new file mode 100644 index 000000000..5bd2571e6 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/duplicate-table.toml @@ -0,0 +1,8 @@ +[dependencies.openssl-sys] +version = "0.5.2" + +[dependencies] +libc = "0.1" + +[dependencies] +bitflags = "0.1.1" diff --git a/vendor/basic-toml/tests/invalid/duplicate-tables.toml b/vendor/basic-toml/tests/invalid/duplicate-tables.toml new file mode 100644 index 000000000..8ddf49b4e --- /dev/null +++ b/vendor/basic-toml/tests/invalid/duplicate-tables.toml @@ -0,0 +1,2 @@ +[a] +[a] diff --git a/vendor/basic-toml/tests/invalid/empty-implicit-table.toml b/vendor/basic-toml/tests/invalid/empty-implicit-table.toml new file mode 100644 index 000000000..0cc36d0d2 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/empty-implicit-table.toml @@ -0,0 +1 @@ +[naughty..naughty] diff --git a/vendor/basic-toml/tests/invalid/empty-table.toml b/vendor/basic-toml/tests/invalid/empty-table.toml new file mode 100644 index 000000000..fe51488c7 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/empty-table.toml @@ -0,0 +1 @@ +[] diff --git a/vendor/basic-toml/tests/invalid/float-no-leading-zero.toml b/vendor/basic-toml/tests/invalid/float-no-leading-zero.toml new file mode 100644 index 000000000..cab76bfd1 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/float-no-leading-zero.toml @@ -0,0 +1,2 @@ +answer = .12345 +neganswer = -.12345 diff --git a/vendor/basic-toml/tests/invalid/float-no-suffix.toml b/vendor/basic-toml/tests/invalid/float-no-suffix.toml new file mode 100644 index 000000000..76106de75 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/float-no-suffix.toml @@ -0,0 +1 @@ +a = 1.2f diff --git a/vendor/basic-toml/tests/invalid/float-no-trailing-digits.toml b/vendor/basic-toml/tests/invalid/float-no-trailing-digits.toml new file mode 100644 index 000000000..cbff2d06f --- /dev/null +++ b/vendor/basic-toml/tests/invalid/float-no-trailing-digits.toml @@ -0,0 +1,2 @@ +answer = 1. +neganswer = -1. diff --git a/vendor/basic-toml/tests/invalid/key-after-array.toml b/vendor/basic-toml/tests/invalid/key-after-array.toml new file mode 100644 index 000000000..5c1a1b0a9 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/key-after-array.toml @@ -0,0 +1 @@ +[[agencies]] owner = "S Cjelli" diff --git a/vendor/basic-toml/tests/invalid/key-after-table.toml b/vendor/basic-toml/tests/invalid/key-after-table.toml new file mode 100644 index 000000000..4bc82136c --- /dev/null +++ b/vendor/basic-toml/tests/invalid/key-after-table.toml @@ -0,0 +1 @@ +[history] guard = "sleeping" diff --git a/vendor/basic-toml/tests/invalid/key-empty.toml b/vendor/basic-toml/tests/invalid/key-empty.toml new file mode 100644 index 000000000..09f998f41 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/key-empty.toml @@ -0,0 +1 @@ + = 1 diff --git a/vendor/basic-toml/tests/invalid/key-hash.toml b/vendor/basic-toml/tests/invalid/key-hash.toml new file mode 100644 index 000000000..e321b1fbd --- /dev/null +++ b/vendor/basic-toml/tests/invalid/key-hash.toml @@ -0,0 +1 @@ +a# = 1 diff --git a/vendor/basic-toml/tests/invalid/key-newline.toml b/vendor/basic-toml/tests/invalid/key-newline.toml new file mode 100644 index 000000000..707aad54e --- /dev/null +++ b/vendor/basic-toml/tests/invalid/key-newline.toml @@ -0,0 +1,2 @@ +a += 1 diff --git a/vendor/basic-toml/tests/invalid/key-open-bracket.toml b/vendor/basic-toml/tests/invalid/key-open-bracket.toml new file mode 100644 index 000000000..f0aeb16e5 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/key-open-bracket.toml @@ -0,0 +1 @@ +[abc = 1 diff --git a/vendor/basic-toml/tests/invalid/key-single-open-bracket.toml b/vendor/basic-toml/tests/invalid/key-single-open-bracket.toml new file mode 100644 index 000000000..8e2f0bef1 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/key-single-open-bracket.toml @@ -0,0 +1 @@ +[
\ No newline at end of file diff --git a/vendor/basic-toml/tests/invalid/key-space.toml b/vendor/basic-toml/tests/invalid/key-space.toml new file mode 100644 index 000000000..201806d28 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/key-space.toml @@ -0,0 +1 @@ +a b = 1
\ No newline at end of file diff --git a/vendor/basic-toml/tests/invalid/key-start-bracket.toml b/vendor/basic-toml/tests/invalid/key-start-bracket.toml new file mode 100644 index 000000000..e0597ae1c --- /dev/null +++ b/vendor/basic-toml/tests/invalid/key-start-bracket.toml @@ -0,0 +1,3 @@ +[a] +[xyz = 5 +[b] diff --git a/vendor/basic-toml/tests/invalid/key-two-equals.toml b/vendor/basic-toml/tests/invalid/key-two-equals.toml new file mode 100644 index 000000000..25a037894 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/key-two-equals.toml @@ -0,0 +1 @@ +key= = 1 diff --git a/vendor/basic-toml/tests/invalid/string-bad-byte-escape.toml b/vendor/basic-toml/tests/invalid/string-bad-byte-escape.toml new file mode 100644 index 000000000..4c7be59f4 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/string-bad-byte-escape.toml @@ -0,0 +1 @@ +naughty = "\xAg" diff --git a/vendor/basic-toml/tests/invalid/string-bad-escape.toml b/vendor/basic-toml/tests/invalid/string-bad-escape.toml new file mode 100644 index 000000000..60acb0ccc --- /dev/null +++ b/vendor/basic-toml/tests/invalid/string-bad-escape.toml @@ -0,0 +1 @@ +invalid-escape = "This string has a bad \a escape character." diff --git a/vendor/basic-toml/tests/invalid/string-bad-line-ending-escape.toml b/vendor/basic-toml/tests/invalid/string-bad-line-ending-escape.toml new file mode 100644 index 000000000..32e2c4862 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/string-bad-line-ending-escape.toml @@ -0,0 +1,3 @@ +invalid-escape = """\ + This string has a non whitespace-character after the line ending escape. \ a +""" diff --git a/vendor/basic-toml/tests/invalid/string-byte-escapes.toml b/vendor/basic-toml/tests/invalid/string-byte-escapes.toml new file mode 100644 index 000000000..e94452a8d --- /dev/null +++ b/vendor/basic-toml/tests/invalid/string-byte-escapes.toml @@ -0,0 +1 @@ +answer = "\x33" diff --git a/vendor/basic-toml/tests/invalid/string-no-close.toml b/vendor/basic-toml/tests/invalid/string-no-close.toml new file mode 100644 index 000000000..0c292fcab --- /dev/null +++ b/vendor/basic-toml/tests/invalid/string-no-close.toml @@ -0,0 +1 @@ +no-ending-quote = "One time, at band camp diff --git a/vendor/basic-toml/tests/invalid/table-array-implicit.toml b/vendor/basic-toml/tests/invalid/table-array-implicit.toml new file mode 100644 index 000000000..05f2507ec --- /dev/null +++ b/vendor/basic-toml/tests/invalid/table-array-implicit.toml @@ -0,0 +1,14 @@ +# This test is a bit tricky. It should fail because the first use of +# `[[albums.songs]]` without first declaring `albums` implies that `albums` +# must be a table. The alternative would be quite weird. Namely, it wouldn't +# comply with the TOML spec: "Each double-bracketed sub-table will belong to +# the most *recently* defined table element *above* it." +# +# This is in contrast to the *valid* test, table-array-implicit where +# `[[albums.songs]]` works by itself, so long as `[[albums]]` isn't declared +# later. (Although, `[albums]` could be.) +[[albums.songs]] +name = "Glory Days" + +[[albums]] +name = "Born in the USA" diff --git a/vendor/basic-toml/tests/invalid/table-array-malformed-bracket.toml b/vendor/basic-toml/tests/invalid/table-array-malformed-bracket.toml new file mode 100644 index 000000000..39c73b05c --- /dev/null +++ b/vendor/basic-toml/tests/invalid/table-array-malformed-bracket.toml @@ -0,0 +1,2 @@ +[[albums] +name = "Born to Run" diff --git a/vendor/basic-toml/tests/invalid/table-array-malformed-empty.toml b/vendor/basic-toml/tests/invalid/table-array-malformed-empty.toml new file mode 100644 index 000000000..a470ca332 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/table-array-malformed-empty.toml @@ -0,0 +1,2 @@ +[[]] +name = "Born to Run" diff --git a/vendor/basic-toml/tests/invalid/table-empty.toml b/vendor/basic-toml/tests/invalid/table-empty.toml new file mode 100644 index 000000000..fe51488c7 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/table-empty.toml @@ -0,0 +1 @@ +[] diff --git a/vendor/basic-toml/tests/invalid/table-nested-brackets-close.toml b/vendor/basic-toml/tests/invalid/table-nested-brackets-close.toml new file mode 100644 index 000000000..c8b5a6785 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/table-nested-brackets-close.toml @@ -0,0 +1,2 @@ +[a]b] +zyx = 42 diff --git a/vendor/basic-toml/tests/invalid/table-nested-brackets-open.toml b/vendor/basic-toml/tests/invalid/table-nested-brackets-open.toml new file mode 100644 index 000000000..246d7e91f --- /dev/null +++ b/vendor/basic-toml/tests/invalid/table-nested-brackets-open.toml @@ -0,0 +1,2 @@ +[a[b] +zyx = 42 diff --git a/vendor/basic-toml/tests/invalid/table-whitespace.toml b/vendor/basic-toml/tests/invalid/table-whitespace.toml new file mode 100644 index 000000000..79bbcb1e2 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/table-whitespace.toml @@ -0,0 +1 @@ +[invalid key]
\ No newline at end of file diff --git a/vendor/basic-toml/tests/invalid/table-with-pound.toml b/vendor/basic-toml/tests/invalid/table-with-pound.toml new file mode 100644 index 000000000..0d8edb524 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/table-with-pound.toml @@ -0,0 +1,2 @@ +[key#group] +answer = 42
\ No newline at end of file diff --git a/vendor/basic-toml/tests/invalid/text-after-array-entries.toml b/vendor/basic-toml/tests/invalid/text-after-array-entries.toml new file mode 100644 index 000000000..1a7289074 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/text-after-array-entries.toml @@ -0,0 +1,4 @@ +array = [ + "Is there life after an array separator?", No + "Entry" +] diff --git a/vendor/basic-toml/tests/invalid/text-after-integer.toml b/vendor/basic-toml/tests/invalid/text-after-integer.toml new file mode 100644 index 000000000..42de7aff4 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/text-after-integer.toml @@ -0,0 +1 @@ +answer = 42 the ultimate answer? diff --git a/vendor/basic-toml/tests/invalid/text-after-string.toml b/vendor/basic-toml/tests/invalid/text-after-string.toml new file mode 100644 index 000000000..c92a6f11d --- /dev/null +++ b/vendor/basic-toml/tests/invalid/text-after-string.toml @@ -0,0 +1 @@ +string = "Is there life after strings?" No. diff --git a/vendor/basic-toml/tests/invalid/text-after-table.toml b/vendor/basic-toml/tests/invalid/text-after-table.toml new file mode 100644 index 000000000..87da9db26 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/text-after-table.toml @@ -0,0 +1 @@ +[error] this shouldn't be here diff --git a/vendor/basic-toml/tests/invalid/text-before-array-separator.toml b/vendor/basic-toml/tests/invalid/text-before-array-separator.toml new file mode 100644 index 000000000..9b06a3924 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/text-before-array-separator.toml @@ -0,0 +1,4 @@ +array = [ + "Is there life before an array separator?" No, + "Entry" +] diff --git a/vendor/basic-toml/tests/invalid/text-in-array.toml b/vendor/basic-toml/tests/invalid/text-in-array.toml new file mode 100644 index 000000000..a6a6c4207 --- /dev/null +++ b/vendor/basic-toml/tests/invalid/text-in-array.toml @@ -0,0 +1,5 @@ +array = [ + "Entry 1", + I don't belong, + "Entry 2", +] |