From 8a207a83fe21da6e498697b9a0ec81932f5208e6 Mon Sep 17 00:00:00 2001 From: Tae-il Lim Date: Sat, 2 Apr 2016 17:15:59 +0900 Subject: Update integration tests to BurntSushi/toml-test@2f1c20de60bc9de743bdb8c7d2e79172fb28e6f8 --- tests/invalid/array-mixed-types-ints-and-floats.toml | 2 +- tests/invalid/key-empty.toml | 1 + tests/invalid/key-hash.toml | 1 + tests/invalid/key-newline.toml | 2 ++ tests/invalid/key-open-bracket.toml | 1 + tests/invalid/key-single-open-bracket.toml | 1 + tests/invalid/key-space.toml | 1 + tests/invalid/key-start-bracket.toml | 3 +++ tests/invalid/table-empty.toml | 1 + tests/invalid/table-whitespace.toml | 1 + tests/invalid/table-with-pound.toml | 2 ++ 11 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 tests/invalid/key-empty.toml create mode 100644 tests/invalid/key-hash.toml create mode 100644 tests/invalid/key-newline.toml create mode 100644 tests/invalid/key-open-bracket.toml create mode 100644 tests/invalid/key-single-open-bracket.toml create mode 100644 tests/invalid/key-space.toml create mode 100644 tests/invalid/key-start-bracket.toml create mode 100644 tests/invalid/table-empty.toml create mode 100644 tests/invalid/table-whitespace.toml create mode 100644 tests/invalid/table-with-pound.toml (limited to 'tests/invalid') diff --git a/tests/invalid/array-mixed-types-ints-and-floats.toml b/tests/invalid/array-mixed-types-ints-and-floats.toml index 51ebe80..a5aa9b7 100644 --- a/tests/invalid/array-mixed-types-ints-and-floats.toml +++ b/tests/invalid/array-mixed-types-ints-and-floats.toml @@ -1 +1 @@ -ints-and-floats = [1, 1.0] +ints-and-floats = [1, 1.1] diff --git a/tests/invalid/key-empty.toml b/tests/invalid/key-empty.toml new file mode 100644 index 0000000..09f998f --- /dev/null +++ b/tests/invalid/key-empty.toml @@ -0,0 +1 @@ + = 1 diff --git a/tests/invalid/key-hash.toml b/tests/invalid/key-hash.toml new file mode 100644 index 0000000..e321b1f --- /dev/null +++ b/tests/invalid/key-hash.toml @@ -0,0 +1 @@ +a# = 1 diff --git a/tests/invalid/key-newline.toml b/tests/invalid/key-newline.toml new file mode 100644 index 0000000..707aad5 --- /dev/null +++ b/tests/invalid/key-newline.toml @@ -0,0 +1,2 @@ +a += 1 diff --git a/tests/invalid/key-open-bracket.toml b/tests/invalid/key-open-bracket.toml new file mode 100644 index 0000000..f0aeb16 --- /dev/null +++ b/tests/invalid/key-open-bracket.toml @@ -0,0 +1 @@ +[abc = 1 diff --git a/tests/invalid/key-single-open-bracket.toml b/tests/invalid/key-single-open-bracket.toml new file mode 100644 index 0000000..8e2f0be --- /dev/null +++ b/tests/invalid/key-single-open-bracket.toml @@ -0,0 +1 @@ +[ \ No newline at end of file diff --git a/tests/invalid/key-space.toml b/tests/invalid/key-space.toml new file mode 100644 index 0000000..201806d --- /dev/null +++ b/tests/invalid/key-space.toml @@ -0,0 +1 @@ +a b = 1 \ No newline at end of file diff --git a/tests/invalid/key-start-bracket.toml b/tests/invalid/key-start-bracket.toml new file mode 100644 index 0000000..e0597ae --- /dev/null +++ b/tests/invalid/key-start-bracket.toml @@ -0,0 +1,3 @@ +[a] +[xyz = 5 +[b] diff --git a/tests/invalid/table-empty.toml b/tests/invalid/table-empty.toml new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/tests/invalid/table-empty.toml @@ -0,0 +1 @@ +[] diff --git a/tests/invalid/table-whitespace.toml b/tests/invalid/table-whitespace.toml new file mode 100644 index 0000000..79bbcb1 --- /dev/null +++ b/tests/invalid/table-whitespace.toml @@ -0,0 +1 @@ +[invalid key] \ No newline at end of file diff --git a/tests/invalid/table-with-pound.toml b/tests/invalid/table-with-pound.toml new file mode 100644 index 0000000..0d8edb5 --- /dev/null +++ b/tests/invalid/table-with-pound.toml @@ -0,0 +1,2 @@ +[key#group] +answer = 42 \ No newline at end of file -- cgit v1.2.3