aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2019-04-08 09:09:27 -0500
committerGitHub <noreply@github.com>2019-04-08 09:09:27 -0500
commit2011390ca8943c180f827d05433d6c8561282ce1 (patch)
tree4fe96754e755b1e88d846b0b13dfe0398a52c50d
parent1f99a6b9799e3eafe4c534f543547b2f0adaf423 (diff)
parente121b2ec21d1efff7635e9191dabe078745f0e2e (diff)
downloadmilf-rs-2011390ca8943c180f827d05433d6c8561282ce1.tar.gz
milf-rs-2011390ca8943c180f827d05433d6c8561282ce1.zip
Merge pull request #298 from ehuss/missing-tests
Add some missing tests, and sort some entries.
-rw-r--r--test-suite/tests/invalid.rs10
-rw-r--r--test-suite/tests/valid.rs3
2 files changed, 9 insertions, 4 deletions
diff --git a/test-suite/tests/invalid.rs b/test-suite/tests/invalid.rs
index 820c48b..7ac17d5 100644
--- a/test-suite/tests/invalid.rs
+++ b/test-suite/tests/invalid.rs
@@ -26,10 +26,12 @@ test!(datetime_malformed_no_t,
include_str!("invalid/datetime-malformed-no-t.toml"));
test!(datetime_malformed_with_milli,
include_str!("invalid/datetime-malformed-with-milli.toml"));
-test!(duplicate_keys,
- include_str!("invalid/duplicate-keys.toml"));
test!(duplicate_key_table,
include_str!("invalid/duplicate-key-table.toml"));
+test!(duplicate_keys,
+ include_str!("invalid/duplicate-keys.toml"));
+test!(duplicate_table,
+ include_str!("invalid/duplicate-table.toml"));
test!(duplicate_tables,
include_str!("invalid/duplicate-tables.toml"));
test!(empty_implicit_table,
@@ -66,6 +68,8 @@ test!(string_bad_byte_escape,
include_str!("invalid/string-bad-byte-escape.toml"));
test!(string_bad_escape,
include_str!("invalid/string-bad-escape.toml"));
+test!(string_bad_line_ending_escape,
+ include_str!("invalid/string-bad-line-ending-escape.toml"));
test!(string_byte_escapes,
include_str!("invalid/string-byte-escapes.toml"));
test!(string_no_close,
@@ -98,5 +102,3 @@ test!(text_before_array_separator,
include_str!("invalid/text-before-array-separator.toml"));
test!(text_in_array,
include_str!("invalid/text-in-array.toml"));
-test!(duplicate_table,
- include_str!("invalid/duplicate-table.toml"));
diff --git a/test-suite/tests/valid.rs b/test-suite/tests/valid.rs
index 68e0ea2..6884584 100644
--- a/test-suite/tests/valid.rs
+++ b/test-suite/tests/valid.rs
@@ -129,6 +129,9 @@ test!(empty,
test!(bool,
include_str!("valid/bool.toml"),
include_str!("valid/bool.json"));
+test!(comments_everywhere,
+ include_str!("valid/comments-everywhere.toml"),
+ include_str!("valid/comments-everywhere.json"));
test!(datetime,
include_str!("valid/datetime.toml"),
include_str!("valid/datetime.json"));