aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-05-12 11:26:18 -0700
committerAlex Crichton <alex@alexcrichton.com>2016-05-12 11:26:18 -0700
commit50dfc8ac79bf8a18a03a8b9f53a520335c1fd2d0 (patch)
treeef364868ff5502e6636dd627a0b668f733d442e3 /tests
parentef60313a5db3adc5cd5cc5d15fa6008aea34ca4e (diff)
parent848227c6053019918b726fa7356f5dfb87861420 (diff)
downloadmilf-rs-50dfc8ac79bf8a18a03a8b9f53a520335c1fd2d0.tar.gz
milf-rs-50dfc8ac79bf8a18a03a8b9f53a520335c1fd2d0.zip
Merge pull request #94 from zofrex/require-newline-after-table
Require newline after table
Diffstat (limited to 'tests')
-rw-r--r--tests/invalid.rs4
-rw-r--r--tests/invalid/key-after-array.toml1
-rw-r--r--tests/invalid/key-after-table.toml1
3 files changed, 6 insertions, 0 deletions
diff --git a/tests/invalid.rs b/tests/invalid.rs
index 829e795..63e4de8 100644
--- a/tests/invalid.rs
+++ b/tests/invalid.rs
@@ -50,6 +50,10 @@ test!(float_no_leading_zero,
include_str!("invalid/float-no-leading-zero.toml"));
test!(float_no_trailing_digits,
include_str!("invalid/float-no-trailing-digits.toml"));
+test!(key_after_array,
+ include_str!("invalid/key-after-array.toml"));
+test!(key_after_table,
+ include_str!("invalid/key-after-table.toml"));
test!(key_empty,
include_str!("invalid/key-empty.toml"));
test!(key_hash,
diff --git a/tests/invalid/key-after-array.toml b/tests/invalid/key-after-array.toml
new file mode 100644
index 0000000..5c1a1b0
--- /dev/null
+++ b/tests/invalid/key-after-array.toml
@@ -0,0 +1 @@
+[[agencies]] owner = "S Cjelli"
diff --git a/tests/invalid/key-after-table.toml b/tests/invalid/key-after-table.toml
new file mode 100644
index 0000000..4bc8213
--- /dev/null
+++ b/tests/invalid/key-after-table.toml
@@ -0,0 +1 @@
+[history] guard = "sleeping"