diff options
author | Alex Crichton <alex@alexcrichton.com> | 2015-10-07 09:50:44 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2015-10-07 09:50:44 -0700 |
commit | 67adf87dd417fb30be92d3778edb07c91f4df72a (patch) | |
tree | 0649ef3ba81f8db77c18139e6c6100bb6fc50745 /tests | |
parent | 96c6cd94ec32fb58603764ba33e19319a3165d75 (diff) | |
parent | dea8646b8b98583d15528031138682d1ac9ada85 (diff) | |
download | milf-rs-67adf87dd417fb30be92d3778edb07c91f4df72a.tar.gz milf-rs-67adf87dd417fb30be92d3778edb07c91f4df72a.zip |
Merge pull request #75 from andersforsgren/allow-toml-BOM
Allow BOM (Byte order mark) in toml
Diffstat (limited to 'tests')
-rw-r--r-- | tests/valid.rs | 3 | ||||
-rw-r--r-- | tests/valid/example-bom.toml | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/valid.rs b/tests/valid.rs index 568518b..f346781 100644 --- a/tests/valid.rs +++ b/tests/valid.rs @@ -178,3 +178,6 @@ test!(example3, test!(example4, include_str!("valid/example-v0.4.0.toml"), include_str!("valid/example-v0.4.0.json")); +test!(example_bom, + include_str!("valid/example-bom.toml"), + include_str!("valid/example.json")); diff --git a/tests/valid/example-bom.toml b/tests/valid/example-bom.toml new file mode 100644 index 0000000..fb5ac81 --- /dev/null +++ b/tests/valid/example-bom.toml @@ -0,0 +1,5 @@ +best-day-ever = 1987-07-05T17:45:00Z + +[numtheory] +boring = false +perfection = [6, 28, 496] |