Add failing test cases containing invalid Toml with keys on the same line as table definition

This commit is contained in:
James Sanderson 2016-04-17 22:49:16 +01:00
parent ef60313a5d
commit 2cd1116e06
3 changed files with 6 additions and 0 deletions

View file

@ -50,6 +50,10 @@ test!(float_no_leading_zero,
include_str!("invalid/float-no-leading-zero.toml")); include_str!("invalid/float-no-leading-zero.toml"));
test!(float_no_trailing_digits, test!(float_no_trailing_digits,
include_str!("invalid/float-no-trailing-digits.toml")); 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, test!(key_empty,
include_str!("invalid/key-empty.toml")); include_str!("invalid/key-empty.toml"));
test!(key_hash, test!(key_hash,

View file

@ -0,0 +1 @@
[[agencies]] owner = "S Cjelli"

View file

@ -0,0 +1 @@
[history] guard = "sleeping"