From 7bbbfd046324363c8db1fb15d39aeb02fe7331b5 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sun, 21 Mar 2021 14:10:24 -0600 Subject: hilarious and original joke --- test-suite/tests/invalid/datetime-malformed-no-leads.milf | 1 + test-suite/tests/invalid/datetime-malformed-no-leads.toml | 1 - test-suite/tests/invalid/datetime-malformed-no-secs.milf | 1 + test-suite/tests/invalid/datetime-malformed-no-secs.toml | 1 - test-suite/tests/invalid/datetime-malformed-no-t.milf | 1 + test-suite/tests/invalid/datetime-malformed-no-t.toml | 1 - .../tests/invalid/datetime-malformed-with-milli.milf | 1 + .../tests/invalid/datetime-malformed-with-milli.toml | 1 - test-suite/tests/invalid/duplicate-key-table.milf | 5 +++++ test-suite/tests/invalid/duplicate-key-table.toml | 5 ----- test-suite/tests/invalid/duplicate-keys.milf | 2 ++ test-suite/tests/invalid/duplicate-keys.toml | 2 -- test-suite/tests/invalid/duplicate-table.milf | 8 ++++++++ test-suite/tests/invalid/duplicate-table.toml | 8 -------- test-suite/tests/invalid/duplicate-tables.milf | 2 ++ test-suite/tests/invalid/duplicate-tables.toml | 2 -- test-suite/tests/invalid/empty-implicit-table.milf | 1 + test-suite/tests/invalid/empty-implicit-table.toml | 1 - test-suite/tests/invalid/empty-table.milf | 1 + test-suite/tests/invalid/empty-table.toml | 1 - test-suite/tests/invalid/float-no-leading-zero.milf | 2 ++ test-suite/tests/invalid/float-no-leading-zero.toml | 2 -- test-suite/tests/invalid/float-no-suffix.milf | 1 + test-suite/tests/invalid/float-no-suffix.toml | 1 - test-suite/tests/invalid/float-no-trailing-digits.milf | 2 ++ test-suite/tests/invalid/float-no-trailing-digits.toml | 2 -- test-suite/tests/invalid/key-after-array.milf | 1 + test-suite/tests/invalid/key-after-array.toml | 1 - test-suite/tests/invalid/key-after-table.milf | 1 + test-suite/tests/invalid/key-after-table.toml | 1 - test-suite/tests/invalid/key-empty.milf | 1 + test-suite/tests/invalid/key-empty.toml | 1 - test-suite/tests/invalid/key-hash.milf | 1 + test-suite/tests/invalid/key-hash.toml | 1 - test-suite/tests/invalid/key-newline.milf | 2 ++ test-suite/tests/invalid/key-newline.toml | 2 -- test-suite/tests/invalid/key-open-bracket.milf | 1 + test-suite/tests/invalid/key-open-bracket.toml | 1 - test-suite/tests/invalid/key-single-open-bracket.milf | 1 + test-suite/tests/invalid/key-single-open-bracket.toml | 1 - test-suite/tests/invalid/key-space.milf | 1 + test-suite/tests/invalid/key-space.toml | 1 - test-suite/tests/invalid/key-start-bracket.milf | 3 +++ test-suite/tests/invalid/key-start-bracket.toml | 3 --- test-suite/tests/invalid/key-two-equals.milf | 1 + test-suite/tests/invalid/key-two-equals.toml | 1 - test-suite/tests/invalid/string-bad-byte-escape.milf | 1 + test-suite/tests/invalid/string-bad-byte-escape.toml | 1 - test-suite/tests/invalid/string-bad-escape.milf | 1 + test-suite/tests/invalid/string-bad-escape.toml | 1 - .../tests/invalid/string-bad-line-ending-escape.milf | 3 +++ .../tests/invalid/string-bad-line-ending-escape.toml | 3 --- test-suite/tests/invalid/string-byte-escapes.milf | 1 + test-suite/tests/invalid/string-byte-escapes.toml | 1 - test-suite/tests/invalid/string-no-close.milf | 1 + test-suite/tests/invalid/string-no-close.toml | 1 - test-suite/tests/invalid/table-array-implicit.milf | 14 ++++++++++++++ test-suite/tests/invalid/table-array-implicit.toml | 14 -------------- .../tests/invalid/table-array-malformed-bracket.milf | 2 ++ .../tests/invalid/table-array-malformed-bracket.toml | 2 -- test-suite/tests/invalid/table-array-malformed-empty.milf | 2 ++ test-suite/tests/invalid/table-array-malformed-empty.toml | 2 -- test-suite/tests/invalid/table-empty.milf | 1 + test-suite/tests/invalid/table-empty.toml | 1 - test-suite/tests/invalid/table-nested-brackets-close.milf | 2 ++ test-suite/tests/invalid/table-nested-brackets-close.toml | 2 -- test-suite/tests/invalid/table-nested-brackets-open.milf | 2 ++ test-suite/tests/invalid/table-nested-brackets-open.toml | 2 -- test-suite/tests/invalid/table-whitespace.milf | 1 + test-suite/tests/invalid/table-whitespace.toml | 1 - test-suite/tests/invalid/table-with-pound.milf | 2 ++ test-suite/tests/invalid/table-with-pound.toml | 2 -- test-suite/tests/invalid/text-after-array-entries.milf | 4 ++++ test-suite/tests/invalid/text-after-array-entries.toml | 4 ---- test-suite/tests/invalid/text-after-integer.milf | 1 + test-suite/tests/invalid/text-after-integer.toml | 1 - test-suite/tests/invalid/text-after-string.milf | 1 + test-suite/tests/invalid/text-after-string.toml | 1 - test-suite/tests/invalid/text-after-table.milf | 1 + test-suite/tests/invalid/text-after-table.toml | 1 - test-suite/tests/invalid/text-before-array-separator.milf | 4 ++++ test-suite/tests/invalid/text-before-array-separator.toml | 4 ---- test-suite/tests/invalid/text-in-array.milf | 5 +++++ test-suite/tests/invalid/text-in-array.toml | 5 ----- 84 files changed, 90 insertions(+), 90 deletions(-) create mode 100644 test-suite/tests/invalid/datetime-malformed-no-leads.milf delete mode 100644 test-suite/tests/invalid/datetime-malformed-no-leads.toml create mode 100644 test-suite/tests/invalid/datetime-malformed-no-secs.milf delete mode 100644 test-suite/tests/invalid/datetime-malformed-no-secs.toml create mode 100644 test-suite/tests/invalid/datetime-malformed-no-t.milf delete mode 100644 test-suite/tests/invalid/datetime-malformed-no-t.toml create mode 100644 test-suite/tests/invalid/datetime-malformed-with-milli.milf delete mode 100644 test-suite/tests/invalid/datetime-malformed-with-milli.toml create mode 100644 test-suite/tests/invalid/duplicate-key-table.milf delete mode 100644 test-suite/tests/invalid/duplicate-key-table.toml create mode 100644 test-suite/tests/invalid/duplicate-keys.milf delete mode 100644 test-suite/tests/invalid/duplicate-keys.toml create mode 100644 test-suite/tests/invalid/duplicate-table.milf delete mode 100644 test-suite/tests/invalid/duplicate-table.toml create mode 100644 test-suite/tests/invalid/duplicate-tables.milf delete mode 100644 test-suite/tests/invalid/duplicate-tables.toml create mode 100644 test-suite/tests/invalid/empty-implicit-table.milf delete mode 100644 test-suite/tests/invalid/empty-implicit-table.toml create mode 100644 test-suite/tests/invalid/empty-table.milf delete mode 100644 test-suite/tests/invalid/empty-table.toml create mode 100644 test-suite/tests/invalid/float-no-leading-zero.milf delete mode 100644 test-suite/tests/invalid/float-no-leading-zero.toml create mode 100644 test-suite/tests/invalid/float-no-suffix.milf delete mode 100644 test-suite/tests/invalid/float-no-suffix.toml create mode 100644 test-suite/tests/invalid/float-no-trailing-digits.milf delete mode 100644 test-suite/tests/invalid/float-no-trailing-digits.toml create mode 100644 test-suite/tests/invalid/key-after-array.milf delete mode 100644 test-suite/tests/invalid/key-after-array.toml create mode 100644 test-suite/tests/invalid/key-after-table.milf delete mode 100644 test-suite/tests/invalid/key-after-table.toml create mode 100644 test-suite/tests/invalid/key-empty.milf delete mode 100644 test-suite/tests/invalid/key-empty.toml create mode 100644 test-suite/tests/invalid/key-hash.milf delete mode 100644 test-suite/tests/invalid/key-hash.toml create mode 100644 test-suite/tests/invalid/key-newline.milf delete mode 100644 test-suite/tests/invalid/key-newline.toml create mode 100644 test-suite/tests/invalid/key-open-bracket.milf delete mode 100644 test-suite/tests/invalid/key-open-bracket.toml create mode 100644 test-suite/tests/invalid/key-single-open-bracket.milf delete mode 100644 test-suite/tests/invalid/key-single-open-bracket.toml create mode 100644 test-suite/tests/invalid/key-space.milf delete mode 100644 test-suite/tests/invalid/key-space.toml create mode 100644 test-suite/tests/invalid/key-start-bracket.milf delete mode 100644 test-suite/tests/invalid/key-start-bracket.toml create mode 100644 test-suite/tests/invalid/key-two-equals.milf delete mode 100644 test-suite/tests/invalid/key-two-equals.toml create mode 100644 test-suite/tests/invalid/string-bad-byte-escape.milf delete mode 100644 test-suite/tests/invalid/string-bad-byte-escape.toml create mode 100644 test-suite/tests/invalid/string-bad-escape.milf delete mode 100644 test-suite/tests/invalid/string-bad-escape.toml create mode 100644 test-suite/tests/invalid/string-bad-line-ending-escape.milf delete mode 100644 test-suite/tests/invalid/string-bad-line-ending-escape.toml create mode 100644 test-suite/tests/invalid/string-byte-escapes.milf delete mode 100644 test-suite/tests/invalid/string-byte-escapes.toml create mode 100644 test-suite/tests/invalid/string-no-close.milf delete mode 100644 test-suite/tests/invalid/string-no-close.toml create mode 100644 test-suite/tests/invalid/table-array-implicit.milf delete mode 100644 test-suite/tests/invalid/table-array-implicit.toml create mode 100644 test-suite/tests/invalid/table-array-malformed-bracket.milf delete mode 100644 test-suite/tests/invalid/table-array-malformed-bracket.toml create mode 100644 test-suite/tests/invalid/table-array-malformed-empty.milf delete mode 100644 test-suite/tests/invalid/table-array-malformed-empty.toml create mode 100644 test-suite/tests/invalid/table-empty.milf delete mode 100644 test-suite/tests/invalid/table-empty.toml create mode 100644 test-suite/tests/invalid/table-nested-brackets-close.milf delete mode 100644 test-suite/tests/invalid/table-nested-brackets-close.toml create mode 100644 test-suite/tests/invalid/table-nested-brackets-open.milf delete mode 100644 test-suite/tests/invalid/table-nested-brackets-open.toml create mode 100644 test-suite/tests/invalid/table-whitespace.milf delete mode 100644 test-suite/tests/invalid/table-whitespace.toml create mode 100644 test-suite/tests/invalid/table-with-pound.milf delete mode 100644 test-suite/tests/invalid/table-with-pound.toml create mode 100644 test-suite/tests/invalid/text-after-array-entries.milf delete mode 100644 test-suite/tests/invalid/text-after-array-entries.toml create mode 100644 test-suite/tests/invalid/text-after-integer.milf delete mode 100644 test-suite/tests/invalid/text-after-integer.toml create mode 100644 test-suite/tests/invalid/text-after-string.milf delete mode 100644 test-suite/tests/invalid/text-after-string.toml create mode 100644 test-suite/tests/invalid/text-after-table.milf delete mode 100644 test-suite/tests/invalid/text-after-table.toml create mode 100644 test-suite/tests/invalid/text-before-array-separator.milf delete mode 100644 test-suite/tests/invalid/text-before-array-separator.toml create mode 100644 test-suite/tests/invalid/text-in-array.milf delete mode 100644 test-suite/tests/invalid/text-in-array.toml (limited to 'test-suite/tests/invalid') diff --git a/test-suite/tests/invalid/datetime-malformed-no-leads.milf b/test-suite/tests/invalid/datetime-malformed-no-leads.milf new file mode 100644 index 0000000..123f173 --- /dev/null +++ b/test-suite/tests/invalid/datetime-malformed-no-leads.milf @@ -0,0 +1 @@ +no-leads = 1987-7-05T17:45:00Z diff --git a/test-suite/tests/invalid/datetime-malformed-no-leads.toml b/test-suite/tests/invalid/datetime-malformed-no-leads.toml deleted file mode 100644 index 123f173..0000000 --- a/test-suite/tests/invalid/datetime-malformed-no-leads.toml +++ /dev/null @@ -1 +0,0 @@ -no-leads = 1987-7-05T17:45:00Z diff --git a/test-suite/tests/invalid/datetime-malformed-no-secs.milf b/test-suite/tests/invalid/datetime-malformed-no-secs.milf new file mode 100644 index 0000000..ba93900 --- /dev/null +++ b/test-suite/tests/invalid/datetime-malformed-no-secs.milf @@ -0,0 +1 @@ +no-secs = 1987-07-05T17:45Z diff --git a/test-suite/tests/invalid/datetime-malformed-no-secs.toml b/test-suite/tests/invalid/datetime-malformed-no-secs.toml deleted file mode 100644 index ba93900..0000000 --- a/test-suite/tests/invalid/datetime-malformed-no-secs.toml +++ /dev/null @@ -1 +0,0 @@ -no-secs = 1987-07-05T17:45Z diff --git a/test-suite/tests/invalid/datetime-malformed-no-t.milf b/test-suite/tests/invalid/datetime-malformed-no-t.milf new file mode 100644 index 0000000..617e3c5 --- /dev/null +++ b/test-suite/tests/invalid/datetime-malformed-no-t.milf @@ -0,0 +1 @@ +no-t = 1987-07-0517:45:00Z diff --git a/test-suite/tests/invalid/datetime-malformed-no-t.toml b/test-suite/tests/invalid/datetime-malformed-no-t.toml deleted file mode 100644 index 617e3c5..0000000 --- a/test-suite/tests/invalid/datetime-malformed-no-t.toml +++ /dev/null @@ -1 +0,0 @@ -no-t = 1987-07-0517:45:00Z diff --git a/test-suite/tests/invalid/datetime-malformed-with-milli.milf b/test-suite/tests/invalid/datetime-malformed-with-milli.milf new file mode 100644 index 0000000..eef792f --- /dev/null +++ b/test-suite/tests/invalid/datetime-malformed-with-milli.milf @@ -0,0 +1 @@ +with-milli = 1987-07-5T17:45:00.12Z diff --git a/test-suite/tests/invalid/datetime-malformed-with-milli.toml b/test-suite/tests/invalid/datetime-malformed-with-milli.toml deleted file mode 100644 index eef792f..0000000 --- a/test-suite/tests/invalid/datetime-malformed-with-milli.toml +++ /dev/null @@ -1 +0,0 @@ -with-milli = 1987-07-5T17:45:00.12Z diff --git a/test-suite/tests/invalid/duplicate-key-table.milf b/test-suite/tests/invalid/duplicate-key-table.milf new file mode 100644 index 0000000..cedf05f --- /dev/null +++ b/test-suite/tests/invalid/duplicate-key-table.milf @@ -0,0 +1,5 @@ +[fruit] +type = "apple" + +[fruit.type] +apple = "yes" diff --git a/test-suite/tests/invalid/duplicate-key-table.toml b/test-suite/tests/invalid/duplicate-key-table.toml deleted file mode 100644 index cedf05f..0000000 --- a/test-suite/tests/invalid/duplicate-key-table.toml +++ /dev/null @@ -1,5 +0,0 @@ -[fruit] -type = "apple" - -[fruit.type] -apple = "yes" diff --git a/test-suite/tests/invalid/duplicate-keys.milf b/test-suite/tests/invalid/duplicate-keys.milf new file mode 100644 index 0000000..9b5aee0 --- /dev/null +++ b/test-suite/tests/invalid/duplicate-keys.milf @@ -0,0 +1,2 @@ +dupe = false +dupe = true diff --git a/test-suite/tests/invalid/duplicate-keys.toml b/test-suite/tests/invalid/duplicate-keys.toml deleted file mode 100644 index 9b5aee0..0000000 --- a/test-suite/tests/invalid/duplicate-keys.toml +++ /dev/null @@ -1,2 +0,0 @@ -dupe = false -dupe = true diff --git a/test-suite/tests/invalid/duplicate-table.milf b/test-suite/tests/invalid/duplicate-table.milf new file mode 100644 index 0000000..5bd2571 --- /dev/null +++ b/test-suite/tests/invalid/duplicate-table.milf @@ -0,0 +1,8 @@ +[dependencies.openssl-sys] +version = "0.5.2" + +[dependencies] +libc = "0.1" + +[dependencies] +bitflags = "0.1.1" diff --git a/test-suite/tests/invalid/duplicate-table.toml b/test-suite/tests/invalid/duplicate-table.toml deleted file mode 100644 index 5bd2571..0000000 --- a/test-suite/tests/invalid/duplicate-table.toml +++ /dev/null @@ -1,8 +0,0 @@ -[dependencies.openssl-sys] -version = "0.5.2" - -[dependencies] -libc = "0.1" - -[dependencies] -bitflags = "0.1.1" diff --git a/test-suite/tests/invalid/duplicate-tables.milf b/test-suite/tests/invalid/duplicate-tables.milf new file mode 100644 index 0000000..8ddf49b --- /dev/null +++ b/test-suite/tests/invalid/duplicate-tables.milf @@ -0,0 +1,2 @@ +[a] +[a] diff --git a/test-suite/tests/invalid/duplicate-tables.toml b/test-suite/tests/invalid/duplicate-tables.toml deleted file mode 100644 index 8ddf49b..0000000 --- a/test-suite/tests/invalid/duplicate-tables.toml +++ /dev/null @@ -1,2 +0,0 @@ -[a] -[a] diff --git a/test-suite/tests/invalid/empty-implicit-table.milf b/test-suite/tests/invalid/empty-implicit-table.milf new file mode 100644 index 0000000..0cc36d0 --- /dev/null +++ b/test-suite/tests/invalid/empty-implicit-table.milf @@ -0,0 +1 @@ +[naughty..naughty] diff --git a/test-suite/tests/invalid/empty-implicit-table.toml b/test-suite/tests/invalid/empty-implicit-table.toml deleted file mode 100644 index 0cc36d0..0000000 --- a/test-suite/tests/invalid/empty-implicit-table.toml +++ /dev/null @@ -1 +0,0 @@ -[naughty..naughty] diff --git a/test-suite/tests/invalid/empty-table.milf b/test-suite/tests/invalid/empty-table.milf new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/test-suite/tests/invalid/empty-table.milf @@ -0,0 +1 @@ +[] diff --git a/test-suite/tests/invalid/empty-table.toml b/test-suite/tests/invalid/empty-table.toml deleted file mode 100644 index fe51488..0000000 --- a/test-suite/tests/invalid/empty-table.toml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/test-suite/tests/invalid/float-no-leading-zero.milf b/test-suite/tests/invalid/float-no-leading-zero.milf new file mode 100644 index 0000000..cab76bf --- /dev/null +++ b/test-suite/tests/invalid/float-no-leading-zero.milf @@ -0,0 +1,2 @@ +answer = .12345 +neganswer = -.12345 diff --git a/test-suite/tests/invalid/float-no-leading-zero.toml b/test-suite/tests/invalid/float-no-leading-zero.toml deleted file mode 100644 index cab76bf..0000000 --- a/test-suite/tests/invalid/float-no-leading-zero.toml +++ /dev/null @@ -1,2 +0,0 @@ -answer = .12345 -neganswer = -.12345 diff --git a/test-suite/tests/invalid/float-no-suffix.milf b/test-suite/tests/invalid/float-no-suffix.milf new file mode 100644 index 0000000..76106de --- /dev/null +++ b/test-suite/tests/invalid/float-no-suffix.milf @@ -0,0 +1 @@ +a = 1.2f diff --git a/test-suite/tests/invalid/float-no-suffix.toml b/test-suite/tests/invalid/float-no-suffix.toml deleted file mode 100644 index 76106de..0000000 --- a/test-suite/tests/invalid/float-no-suffix.toml +++ /dev/null @@ -1 +0,0 @@ -a = 1.2f diff --git a/test-suite/tests/invalid/float-no-trailing-digits.milf b/test-suite/tests/invalid/float-no-trailing-digits.milf new file mode 100644 index 0000000..cbff2d0 --- /dev/null +++ b/test-suite/tests/invalid/float-no-trailing-digits.milf @@ -0,0 +1,2 @@ +answer = 1. +neganswer = -1. diff --git a/test-suite/tests/invalid/float-no-trailing-digits.toml b/test-suite/tests/invalid/float-no-trailing-digits.toml deleted file mode 100644 index cbff2d0..0000000 --- a/test-suite/tests/invalid/float-no-trailing-digits.toml +++ /dev/null @@ -1,2 +0,0 @@ -answer = 1. -neganswer = -1. diff --git a/test-suite/tests/invalid/key-after-array.milf b/test-suite/tests/invalid/key-after-array.milf new file mode 100644 index 0000000..5c1a1b0 --- /dev/null +++ b/test-suite/tests/invalid/key-after-array.milf @@ -0,0 +1 @@ +[[agencies]] owner = "S Cjelli" diff --git a/test-suite/tests/invalid/key-after-array.toml b/test-suite/tests/invalid/key-after-array.toml deleted file mode 100644 index 5c1a1b0..0000000 --- a/test-suite/tests/invalid/key-after-array.toml +++ /dev/null @@ -1 +0,0 @@ -[[agencies]] owner = "S Cjelli" diff --git a/test-suite/tests/invalid/key-after-table.milf b/test-suite/tests/invalid/key-after-table.milf new file mode 100644 index 0000000..4bc8213 --- /dev/null +++ b/test-suite/tests/invalid/key-after-table.milf @@ -0,0 +1 @@ +[history] guard = "sleeping" diff --git a/test-suite/tests/invalid/key-after-table.toml b/test-suite/tests/invalid/key-after-table.toml deleted file mode 100644 index 4bc8213..0000000 --- a/test-suite/tests/invalid/key-after-table.toml +++ /dev/null @@ -1 +0,0 @@ -[history] guard = "sleeping" diff --git a/test-suite/tests/invalid/key-empty.milf b/test-suite/tests/invalid/key-empty.milf new file mode 100644 index 0000000..09f998f --- /dev/null +++ b/test-suite/tests/invalid/key-empty.milf @@ -0,0 +1 @@ + = 1 diff --git a/test-suite/tests/invalid/key-empty.toml b/test-suite/tests/invalid/key-empty.toml deleted file mode 100644 index 09f998f..0000000 --- a/test-suite/tests/invalid/key-empty.toml +++ /dev/null @@ -1 +0,0 @@ - = 1 diff --git a/test-suite/tests/invalid/key-hash.milf b/test-suite/tests/invalid/key-hash.milf new file mode 100644 index 0000000..e321b1f --- /dev/null +++ b/test-suite/tests/invalid/key-hash.milf @@ -0,0 +1 @@ +a# = 1 diff --git a/test-suite/tests/invalid/key-hash.toml b/test-suite/tests/invalid/key-hash.toml deleted file mode 100644 index e321b1f..0000000 --- a/test-suite/tests/invalid/key-hash.toml +++ /dev/null @@ -1 +0,0 @@ -a# = 1 diff --git a/test-suite/tests/invalid/key-newline.milf b/test-suite/tests/invalid/key-newline.milf new file mode 100644 index 0000000..707aad5 --- /dev/null +++ b/test-suite/tests/invalid/key-newline.milf @@ -0,0 +1,2 @@ +a += 1 diff --git a/test-suite/tests/invalid/key-newline.toml b/test-suite/tests/invalid/key-newline.toml deleted file mode 100644 index 707aad5..0000000 --- a/test-suite/tests/invalid/key-newline.toml +++ /dev/null @@ -1,2 +0,0 @@ -a -= 1 diff --git a/test-suite/tests/invalid/key-open-bracket.milf b/test-suite/tests/invalid/key-open-bracket.milf new file mode 100644 index 0000000..f0aeb16 --- /dev/null +++ b/test-suite/tests/invalid/key-open-bracket.milf @@ -0,0 +1 @@ +[abc = 1 diff --git a/test-suite/tests/invalid/key-open-bracket.toml b/test-suite/tests/invalid/key-open-bracket.toml deleted file mode 100644 index f0aeb16..0000000 --- a/test-suite/tests/invalid/key-open-bracket.toml +++ /dev/null @@ -1 +0,0 @@ -[abc = 1 diff --git a/test-suite/tests/invalid/key-single-open-bracket.milf b/test-suite/tests/invalid/key-single-open-bracket.milf new file mode 100644 index 0000000..8e2f0be --- /dev/null +++ b/test-suite/tests/invalid/key-single-open-bracket.milf @@ -0,0 +1 @@ +[ \ No newline at end of file diff --git a/test-suite/tests/invalid/key-single-open-bracket.toml b/test-suite/tests/invalid/key-single-open-bracket.toml deleted file mode 100644 index 8e2f0be..0000000 --- a/test-suite/tests/invalid/key-single-open-bracket.toml +++ /dev/null @@ -1 +0,0 @@ -[ \ No newline at end of file diff --git a/test-suite/tests/invalid/key-space.milf b/test-suite/tests/invalid/key-space.milf new file mode 100644 index 0000000..201806d --- /dev/null +++ b/test-suite/tests/invalid/key-space.milf @@ -0,0 +1 @@ +a b = 1 \ No newline at end of file diff --git a/test-suite/tests/invalid/key-space.toml b/test-suite/tests/invalid/key-space.toml deleted file mode 100644 index 201806d..0000000 --- a/test-suite/tests/invalid/key-space.toml +++ /dev/null @@ -1 +0,0 @@ -a b = 1 \ No newline at end of file diff --git a/test-suite/tests/invalid/key-start-bracket.milf b/test-suite/tests/invalid/key-start-bracket.milf new file mode 100644 index 0000000..e0597ae --- /dev/null +++ b/test-suite/tests/invalid/key-start-bracket.milf @@ -0,0 +1,3 @@ +[a] +[xyz = 5 +[b] diff --git a/test-suite/tests/invalid/key-start-bracket.toml b/test-suite/tests/invalid/key-start-bracket.toml deleted file mode 100644 index e0597ae..0000000 --- a/test-suite/tests/invalid/key-start-bracket.toml +++ /dev/null @@ -1,3 +0,0 @@ -[a] -[xyz = 5 -[b] diff --git a/test-suite/tests/invalid/key-two-equals.milf b/test-suite/tests/invalid/key-two-equals.milf new file mode 100644 index 0000000..25a0378 --- /dev/null +++ b/test-suite/tests/invalid/key-two-equals.milf @@ -0,0 +1 @@ +key= = 1 diff --git a/test-suite/tests/invalid/key-two-equals.toml b/test-suite/tests/invalid/key-two-equals.toml deleted file mode 100644 index 25a0378..0000000 --- a/test-suite/tests/invalid/key-two-equals.toml +++ /dev/null @@ -1 +0,0 @@ -key= = 1 diff --git a/test-suite/tests/invalid/string-bad-byte-escape.milf b/test-suite/tests/invalid/string-bad-byte-escape.milf new file mode 100644 index 0000000..4c7be59 --- /dev/null +++ b/test-suite/tests/invalid/string-bad-byte-escape.milf @@ -0,0 +1 @@ +naughty = "\xAg" diff --git a/test-suite/tests/invalid/string-bad-byte-escape.toml b/test-suite/tests/invalid/string-bad-byte-escape.toml deleted file mode 100644 index 4c7be59..0000000 --- a/test-suite/tests/invalid/string-bad-byte-escape.toml +++ /dev/null @@ -1 +0,0 @@ -naughty = "\xAg" diff --git a/test-suite/tests/invalid/string-bad-escape.milf b/test-suite/tests/invalid/string-bad-escape.milf new file mode 100644 index 0000000..60acb0c --- /dev/null +++ b/test-suite/tests/invalid/string-bad-escape.milf @@ -0,0 +1 @@ +invalid-escape = "This string has a bad \a escape character." diff --git a/test-suite/tests/invalid/string-bad-escape.toml b/test-suite/tests/invalid/string-bad-escape.toml deleted file mode 100644 index 60acb0c..0000000 --- a/test-suite/tests/invalid/string-bad-escape.toml +++ /dev/null @@ -1 +0,0 @@ -invalid-escape = "This string has a bad \a escape character." diff --git a/test-suite/tests/invalid/string-bad-line-ending-escape.milf b/test-suite/tests/invalid/string-bad-line-ending-escape.milf new file mode 100644 index 0000000..32e2c48 --- /dev/null +++ b/test-suite/tests/invalid/string-bad-line-ending-escape.milf @@ -0,0 +1,3 @@ +invalid-escape = """\ + This string has a non whitespace-character after the line ending escape. \ a +""" diff --git a/test-suite/tests/invalid/string-bad-line-ending-escape.toml b/test-suite/tests/invalid/string-bad-line-ending-escape.toml deleted file mode 100644 index 32e2c48..0000000 --- a/test-suite/tests/invalid/string-bad-line-ending-escape.toml +++ /dev/null @@ -1,3 +0,0 @@ -invalid-escape = """\ - This string has a non whitespace-character after the line ending escape. \ a -""" diff --git a/test-suite/tests/invalid/string-byte-escapes.milf b/test-suite/tests/invalid/string-byte-escapes.milf new file mode 100644 index 0000000..e94452a --- /dev/null +++ b/test-suite/tests/invalid/string-byte-escapes.milf @@ -0,0 +1 @@ +answer = "\x33" diff --git a/test-suite/tests/invalid/string-byte-escapes.toml b/test-suite/tests/invalid/string-byte-escapes.toml deleted file mode 100644 index e94452a..0000000 --- a/test-suite/tests/invalid/string-byte-escapes.toml +++ /dev/null @@ -1 +0,0 @@ -answer = "\x33" diff --git a/test-suite/tests/invalid/string-no-close.milf b/test-suite/tests/invalid/string-no-close.milf new file mode 100644 index 0000000..0c292fc --- /dev/null +++ b/test-suite/tests/invalid/string-no-close.milf @@ -0,0 +1 @@ +no-ending-quote = "One time, at band camp diff --git a/test-suite/tests/invalid/string-no-close.toml b/test-suite/tests/invalid/string-no-close.toml deleted file mode 100644 index 0c292fc..0000000 --- a/test-suite/tests/invalid/string-no-close.toml +++ /dev/null @@ -1 +0,0 @@ -no-ending-quote = "One time, at band camp diff --git a/test-suite/tests/invalid/table-array-implicit.milf b/test-suite/tests/invalid/table-array-implicit.milf new file mode 100644 index 0000000..a0b4e0c --- /dev/null +++ b/test-suite/tests/invalid/table-array-implicit.milf @@ -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 MILF 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/test-suite/tests/invalid/table-array-implicit.toml b/test-suite/tests/invalid/table-array-implicit.toml deleted file mode 100644 index 05f2507..0000000 --- a/test-suite/tests/invalid/table-array-implicit.toml +++ /dev/null @@ -1,14 +0,0 @@ -# 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/test-suite/tests/invalid/table-array-malformed-bracket.milf b/test-suite/tests/invalid/table-array-malformed-bracket.milf new file mode 100644 index 0000000..39c73b0 --- /dev/null +++ b/test-suite/tests/invalid/table-array-malformed-bracket.milf @@ -0,0 +1,2 @@ +[[albums] +name = "Born to Run" diff --git a/test-suite/tests/invalid/table-array-malformed-bracket.toml b/test-suite/tests/invalid/table-array-malformed-bracket.toml deleted file mode 100644 index 39c73b0..0000000 --- a/test-suite/tests/invalid/table-array-malformed-bracket.toml +++ /dev/null @@ -1,2 +0,0 @@ -[[albums] -name = "Born to Run" diff --git a/test-suite/tests/invalid/table-array-malformed-empty.milf b/test-suite/tests/invalid/table-array-malformed-empty.milf new file mode 100644 index 0000000..a470ca3 --- /dev/null +++ b/test-suite/tests/invalid/table-array-malformed-empty.milf @@ -0,0 +1,2 @@ +[[]] +name = "Born to Run" diff --git a/test-suite/tests/invalid/table-array-malformed-empty.toml b/test-suite/tests/invalid/table-array-malformed-empty.toml deleted file mode 100644 index a470ca3..0000000 --- a/test-suite/tests/invalid/table-array-malformed-empty.toml +++ /dev/null @@ -1,2 +0,0 @@ -[[]] -name = "Born to Run" diff --git a/test-suite/tests/invalid/table-empty.milf b/test-suite/tests/invalid/table-empty.milf new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/test-suite/tests/invalid/table-empty.milf @@ -0,0 +1 @@ +[] diff --git a/test-suite/tests/invalid/table-empty.toml b/test-suite/tests/invalid/table-empty.toml deleted file mode 100644 index fe51488..0000000 --- a/test-suite/tests/invalid/table-empty.toml +++ /dev/null @@ -1 +0,0 @@ -[] diff --git a/test-suite/tests/invalid/table-nested-brackets-close.milf b/test-suite/tests/invalid/table-nested-brackets-close.milf new file mode 100644 index 0000000..c8b5a67 --- /dev/null +++ b/test-suite/tests/invalid/table-nested-brackets-close.milf @@ -0,0 +1,2 @@ +[a]b] +zyx = 42 diff --git a/test-suite/tests/invalid/table-nested-brackets-close.toml b/test-suite/tests/invalid/table-nested-brackets-close.toml deleted file mode 100644 index c8b5a67..0000000 --- a/test-suite/tests/invalid/table-nested-brackets-close.toml +++ /dev/null @@ -1,2 +0,0 @@ -[a]b] -zyx = 42 diff --git a/test-suite/tests/invalid/table-nested-brackets-open.milf b/test-suite/tests/invalid/table-nested-brackets-open.milf new file mode 100644 index 0000000..246d7e9 --- /dev/null +++ b/test-suite/tests/invalid/table-nested-brackets-open.milf @@ -0,0 +1,2 @@ +[a[b] +zyx = 42 diff --git a/test-suite/tests/invalid/table-nested-brackets-open.toml b/test-suite/tests/invalid/table-nested-brackets-open.toml deleted file mode 100644 index 246d7e9..0000000 --- a/test-suite/tests/invalid/table-nested-brackets-open.toml +++ /dev/null @@ -1,2 +0,0 @@ -[a[b] -zyx = 42 diff --git a/test-suite/tests/invalid/table-whitespace.milf b/test-suite/tests/invalid/table-whitespace.milf new file mode 100644 index 0000000..79bbcb1 --- /dev/null +++ b/test-suite/tests/invalid/table-whitespace.milf @@ -0,0 +1 @@ +[invalid key] \ No newline at end of file diff --git a/test-suite/tests/invalid/table-whitespace.toml b/test-suite/tests/invalid/table-whitespace.toml deleted file mode 100644 index 79bbcb1..0000000 --- a/test-suite/tests/invalid/table-whitespace.toml +++ /dev/null @@ -1 +0,0 @@ -[invalid key] \ No newline at end of file diff --git a/test-suite/tests/invalid/table-with-pound.milf b/test-suite/tests/invalid/table-with-pound.milf new file mode 100644 index 0000000..0d8edb5 --- /dev/null +++ b/test-suite/tests/invalid/table-with-pound.milf @@ -0,0 +1,2 @@ +[key#group] +answer = 42 \ No newline at end of file diff --git a/test-suite/tests/invalid/table-with-pound.toml b/test-suite/tests/invalid/table-with-pound.toml deleted file mode 100644 index 0d8edb5..0000000 --- a/test-suite/tests/invalid/table-with-pound.toml +++ /dev/null @@ -1,2 +0,0 @@ -[key#group] -answer = 42 \ No newline at end of file diff --git a/test-suite/tests/invalid/text-after-array-entries.milf b/test-suite/tests/invalid/text-after-array-entries.milf new file mode 100644 index 0000000..1a72890 --- /dev/null +++ b/test-suite/tests/invalid/text-after-array-entries.milf @@ -0,0 +1,4 @@ +array = [ + "Is there life after an array separator?", No + "Entry" +] diff --git a/test-suite/tests/invalid/text-after-array-entries.toml b/test-suite/tests/invalid/text-after-array-entries.toml deleted file mode 100644 index 1a72890..0000000 --- a/test-suite/tests/invalid/text-after-array-entries.toml +++ /dev/null @@ -1,4 +0,0 @@ -array = [ - "Is there life after an array separator?", No - "Entry" -] diff --git a/test-suite/tests/invalid/text-after-integer.milf b/test-suite/tests/invalid/text-after-integer.milf new file mode 100644 index 0000000..42de7af --- /dev/null +++ b/test-suite/tests/invalid/text-after-integer.milf @@ -0,0 +1 @@ +answer = 42 the ultimate answer? diff --git a/test-suite/tests/invalid/text-after-integer.toml b/test-suite/tests/invalid/text-after-integer.toml deleted file mode 100644 index 42de7af..0000000 --- a/test-suite/tests/invalid/text-after-integer.toml +++ /dev/null @@ -1 +0,0 @@ -answer = 42 the ultimate answer? diff --git a/test-suite/tests/invalid/text-after-string.milf b/test-suite/tests/invalid/text-after-string.milf new file mode 100644 index 0000000..c92a6f1 --- /dev/null +++ b/test-suite/tests/invalid/text-after-string.milf @@ -0,0 +1 @@ +string = "Is there life after strings?" No. diff --git a/test-suite/tests/invalid/text-after-string.toml b/test-suite/tests/invalid/text-after-string.toml deleted file mode 100644 index c92a6f1..0000000 --- a/test-suite/tests/invalid/text-after-string.toml +++ /dev/null @@ -1 +0,0 @@ -string = "Is there life after strings?" No. diff --git a/test-suite/tests/invalid/text-after-table.milf b/test-suite/tests/invalid/text-after-table.milf new file mode 100644 index 0000000..87da9db --- /dev/null +++ b/test-suite/tests/invalid/text-after-table.milf @@ -0,0 +1 @@ +[error] this shouldn't be here diff --git a/test-suite/tests/invalid/text-after-table.toml b/test-suite/tests/invalid/text-after-table.toml deleted file mode 100644 index 87da9db..0000000 --- a/test-suite/tests/invalid/text-after-table.toml +++ /dev/null @@ -1 +0,0 @@ -[error] this shouldn't be here diff --git a/test-suite/tests/invalid/text-before-array-separator.milf b/test-suite/tests/invalid/text-before-array-separator.milf new file mode 100644 index 0000000..9b06a39 --- /dev/null +++ b/test-suite/tests/invalid/text-before-array-separator.milf @@ -0,0 +1,4 @@ +array = [ + "Is there life before an array separator?" No, + "Entry" +] diff --git a/test-suite/tests/invalid/text-before-array-separator.toml b/test-suite/tests/invalid/text-before-array-separator.toml deleted file mode 100644 index 9b06a39..0000000 --- a/test-suite/tests/invalid/text-before-array-separator.toml +++ /dev/null @@ -1,4 +0,0 @@ -array = [ - "Is there life before an array separator?" No, - "Entry" -] diff --git a/test-suite/tests/invalid/text-in-array.milf b/test-suite/tests/invalid/text-in-array.milf new file mode 100644 index 0000000..a6a6c42 --- /dev/null +++ b/test-suite/tests/invalid/text-in-array.milf @@ -0,0 +1,5 @@ +array = [ + "Entry 1", + I don't belong, + "Entry 2", +] diff --git a/test-suite/tests/invalid/text-in-array.toml b/test-suite/tests/invalid/text-in-array.toml deleted file mode 100644 index a6a6c42..0000000 --- a/test-suite/tests/invalid/text-in-array.toml +++ /dev/null @@ -1,5 +0,0 @@ -array = [ - "Entry 1", - I don't belong, - "Entry 2", -] -- cgit v1.2.3