aboutsummaryrefslogtreecommitdiff
path: root/tests/invalid
diff options
context:
space:
mode:
authorTae-il Lim <trlim@iotok.kr>2016-04-02 17:15:59 +0900
committerTae-il Lim <trlim@iotok.kr>2016-04-02 17:15:59 +0900
commit8a207a83fe21da6e498697b9a0ec81932f5208e6 (patch)
tree3a39c16c6b29780d77cd153d04d21e3ab3f1797a /tests/invalid
parentc53fceb42c6600983021e5fa7dca9976c36590f4 (diff)
downloadmilf-rs-8a207a83fe21da6e498697b9a0ec81932f5208e6.tar.gz
milf-rs-8a207a83fe21da6e498697b9a0ec81932f5208e6.zip
Update integration tests to BurntSushi/toml-test@2f1c20de60bc9de743bdb8c7d2e79172fb28e6f8
Diffstat (limited to 'tests/invalid')
-rw-r--r--tests/invalid/array-mixed-types-ints-and-floats.toml2
-rw-r--r--tests/invalid/key-empty.toml1
-rw-r--r--tests/invalid/key-hash.toml1
-rw-r--r--tests/invalid/key-newline.toml2
-rw-r--r--tests/invalid/key-open-bracket.toml1
-rw-r--r--tests/invalid/key-single-open-bracket.toml1
-rw-r--r--tests/invalid/key-space.toml1
-rw-r--r--tests/invalid/key-start-bracket.toml3
-rw-r--r--tests/invalid/table-empty.toml1
-rw-r--r--tests/invalid/table-whitespace.toml1
-rw-r--r--tests/invalid/table-with-pound.toml2
11 files changed, 15 insertions, 1 deletions
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