diff options
Diffstat (limited to 'tests/data/invalid/burntsushi/invalid/string')
30 files changed, 40 insertions, 0 deletions
diff --git a/tests/data/invalid/burntsushi/invalid/string/bad-byte-escape.toml b/tests/data/invalid/burntsushi/invalid/string/bad-byte-escape.toml new file mode 100644 index 0000000..4c7be59 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/bad-byte-escape.toml @@ -0,0 +1 @@ +naughty = "\xAg" diff --git a/tests/data/invalid/burntsushi/invalid/string/bad-codepoint.toml b/tests/data/invalid/burntsushi/invalid/string/bad-codepoint.toml new file mode 100644 index 0000000..592db75 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/bad-codepoint.toml @@ -0,0 +1 @@ +invalid-codepoint = "This string contains a non scalar unicode codepoint \uD801" diff --git a/tests/data/invalid/burntsushi/invalid/string/bad-concat.toml b/tests/data/invalid/burntsushi/invalid/string/bad-concat.toml new file mode 100644 index 0000000..fc6d3c9 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/bad-concat.toml @@ -0,0 +1 @@ +no_concat = "first" "second" diff --git a/tests/data/invalid/burntsushi/invalid/string/bad-escape-1.toml b/tests/data/invalid/burntsushi/invalid/string/bad-escape-1.toml new file mode 100644 index 0000000..60acb0c --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/bad-escape-1.toml @@ -0,0 +1 @@ +invalid-escape = "This string has a bad \a escape character." diff --git a/tests/data/invalid/burntsushi/invalid/string/bad-escape-2.toml b/tests/data/invalid/burntsushi/invalid/string/bad-escape-2.toml new file mode 100644 index 0000000..2a20d8c --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/bad-escape-2.toml @@ -0,0 +1,2 @@ +invalid-escape = "This string has a bad \ escape character." + diff --git a/tests/data/invalid/burntsushi/invalid/string/bad-multiline.toml b/tests/data/invalid/burntsushi/invalid/string/bad-multiline.toml new file mode 100644 index 0000000..786046b --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/bad-multiline.toml @@ -0,0 +1,2 @@ +multi = "first line +second line" diff --git a/tests/data/invalid/burntsushi/invalid/string/bad-slash-escape.toml b/tests/data/invalid/burntsushi/invalid/string/bad-slash-escape.toml new file mode 100644 index 0000000..154abad --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/bad-slash-escape.toml @@ -0,0 +1 @@ +invalid-escape = "This string has a bad \/ escape character." diff --git a/tests/data/invalid/burntsushi/invalid/string/bad-uni-esc.toml b/tests/data/invalid/burntsushi/invalid/string/bad-uni-esc.toml new file mode 100644 index 0000000..9eae4ab --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/bad-uni-esc.toml @@ -0,0 +1 @@ +str = "val\ue" diff --git a/tests/data/invalid/burntsushi/invalid/string/basic-byte-escapes.toml b/tests/data/invalid/burntsushi/invalid/string/basic-byte-escapes.toml new file mode 100644 index 0000000..e94452a --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/basic-byte-escapes.toml @@ -0,0 +1 @@ +answer = "\x33" diff --git a/tests/data/invalid/burntsushi/invalid/string/basic-multiline-out-of-range-unicode-escape-1.toml b/tests/data/invalid/burntsushi/invalid/string/basic-multiline-out-of-range-unicode-escape-1.toml new file mode 100644 index 0000000..b27e203 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/basic-multiline-out-of-range-unicode-escape-1.toml @@ -0,0 +1 @@ +a = """\UFFFFFFFF""" diff --git a/tests/data/invalid/burntsushi/invalid/string/basic-multiline-out-of-range-unicode-escape-2.toml b/tests/data/invalid/burntsushi/invalid/string/basic-multiline-out-of-range-unicode-escape-2.toml new file mode 100644 index 0000000..17a9361 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/basic-multiline-out-of-range-unicode-escape-2.toml @@ -0,0 +1 @@ +a = """\U00D80000""" diff --git a/tests/data/invalid/burntsushi/invalid/string/basic-multiline-quotes.toml b/tests/data/invalid/burntsushi/invalid/string/basic-multiline-quotes.toml new file mode 100644 index 0000000..02ebf13 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/basic-multiline-quotes.toml @@ -0,0 +1 @@ +str5 = """Here are three quotation marks: """.""" diff --git a/tests/data/invalid/burntsushi/invalid/string/basic-multiline-unknown-escape.toml b/tests/data/invalid/burntsushi/invalid/string/basic-multiline-unknown-escape.toml new file mode 100644 index 0000000..35c5cc5 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/basic-multiline-unknown-escape.toml @@ -0,0 +1 @@ +a = """\@""" diff --git a/tests/data/invalid/burntsushi/invalid/string/basic-out-of-range-unicode-escape-1.toml b/tests/data/invalid/burntsushi/invalid/string/basic-out-of-range-unicode-escape-1.toml new file mode 100644 index 0000000..ada1f55 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/basic-out-of-range-unicode-escape-1.toml @@ -0,0 +1 @@ +a = "\UFFFFFFFF" diff --git a/tests/data/invalid/burntsushi/invalid/string/basic-out-of-range-unicode-escape-2.toml b/tests/data/invalid/burntsushi/invalid/string/basic-out-of-range-unicode-escape-2.toml new file mode 100644 index 0000000..d4833b3 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/basic-out-of-range-unicode-escape-2.toml @@ -0,0 +1 @@ +a = "\U00D80000" diff --git a/tests/data/invalid/burntsushi/invalid/string/basic-unknown-escape.toml b/tests/data/invalid/burntsushi/invalid/string/basic-unknown-escape.toml new file mode 100644 index 0000000..381dd85 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/basic-unknown-escape.toml @@ -0,0 +1 @@ +a = "\@" diff --git a/tests/data/invalid/burntsushi/invalid/string/literal-multiline-quotes-1.toml b/tests/data/invalid/burntsushi/invalid/string/literal-multiline-quotes-1.toml new file mode 100644 index 0000000..9cfb763 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/literal-multiline-quotes-1.toml @@ -0,0 +1,2 @@ +a = '''6 apostrophes: '''''' + diff --git a/tests/data/invalid/burntsushi/invalid/string/literal-multiline-quotes-2.toml b/tests/data/invalid/burntsushi/invalid/string/literal-multiline-quotes-2.toml new file mode 100644 index 0000000..9924236 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/literal-multiline-quotes-2.toml @@ -0,0 +1 @@ +a = '''15 apostrophes: '''''''''''''''''' diff --git a/tests/data/invalid/burntsushi/invalid/string/missing-quotes.toml b/tests/data/invalid/burntsushi/invalid/string/missing-quotes.toml new file mode 100644 index 0000000..2292793 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/missing-quotes.toml @@ -0,0 +1 @@ +name = value diff --git a/tests/data/invalid/burntsushi/invalid/string/multiline-bad-escape-1.toml b/tests/data/invalid/burntsushi/invalid/string/multiline-bad-escape-1.toml new file mode 100644 index 0000000..5de9e15 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/multiline-bad-escape-1.toml @@ -0,0 +1,2 @@ +k = """t\a""" + diff --git a/tests/data/invalid/burntsushi/invalid/string/multiline-bad-escape-2.toml b/tests/data/invalid/burntsushi/invalid/string/multiline-bad-escape-2.toml new file mode 100644 index 0000000..3d1ac10 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/multiline-bad-escape-2.toml @@ -0,0 +1,2 @@ +# \<Space> is not a valid escape. +k = """t\ t""" diff --git a/tests/data/invalid/burntsushi/invalid/string/multiline-bad-escape-3.toml b/tests/data/invalid/burntsushi/invalid/string/multiline-bad-escape-3.toml new file mode 100644 index 0000000..95621eb --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/multiline-bad-escape-3.toml @@ -0,0 +1,3 @@ +# \<Space> is not a valid escape. +k = """t\ """ + diff --git a/tests/data/invalid/burntsushi/invalid/string/multiline-escape-space.toml b/tests/data/invalid/burntsushi/invalid/string/multiline-escape-space.toml new file mode 100644 index 0000000..13570d3 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/multiline-escape-space.toml @@ -0,0 +1,3 @@ +a = """ + foo \ \n + bar""" diff --git a/tests/data/invalid/burntsushi/invalid/string/multiline-no-close-2.toml b/tests/data/invalid/burntsushi/invalid/string/multiline-no-close-2.toml new file mode 100644 index 0000000..f469402 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/multiline-no-close-2.toml @@ -0,0 +1 @@ +x=""" diff --git a/tests/data/invalid/burntsushi/invalid/string/multiline-no-close.toml b/tests/data/invalid/burntsushi/invalid/string/multiline-no-close.toml new file mode 100644 index 0000000..4ca9597 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/multiline-no-close.toml @@ -0,0 +1,2 @@ +invalid = """ + this will fail diff --git a/tests/data/invalid/burntsushi/invalid/string/multiline-quotes-1.toml b/tests/data/invalid/burntsushi/invalid/string/multiline-quotes-1.toml new file mode 100644 index 0000000..9f7a42b --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/multiline-quotes-1.toml @@ -0,0 +1 @@ +a = """6 quotes: """""" diff --git a/tests/data/invalid/burntsushi/invalid/string/multiline-quotes-2.toml b/tests/data/invalid/burntsushi/invalid/string/multiline-quotes-2.toml new file mode 100644 index 0000000..9f7a42b --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/multiline-quotes-2.toml @@ -0,0 +1 @@ +a = """6 quotes: """""" diff --git a/tests/data/invalid/burntsushi/invalid/string/no-close.toml b/tests/data/invalid/burntsushi/invalid/string/no-close.toml new file mode 100644 index 0000000..0c292fc --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/no-close.toml @@ -0,0 +1 @@ +no-ending-quote = "One time, at band camp diff --git a/tests/data/invalid/burntsushi/invalid/string/text-after-string.toml b/tests/data/invalid/burntsushi/invalid/string/text-after-string.toml new file mode 100644 index 0000000..c92a6f1 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/text-after-string.toml @@ -0,0 +1 @@ +string = "Is there life after strings?" No. diff --git a/tests/data/invalid/burntsushi/invalid/string/wrong-close.toml b/tests/data/invalid/burntsushi/invalid/string/wrong-close.toml new file mode 100644 index 0000000..0f5c801 --- /dev/null +++ b/tests/data/invalid/burntsushi/invalid/string/wrong-close.toml @@ -0,0 +1 @@ +bad-ending-quote = "double and single' |