Commit graph

11 commits

Author SHA1 Message Date
Alex Tokarev 39dcf1384c Improve error message when parsing unquoted string (#385)
* Improve error message when parsing unquoted string

* Remove conversion to lowercase in parse_keylike()

Converting keys to lowercase goes against
TOML specification for floats.

* Change error message for unquoted string
2020-10-11 12:30:55 -05:00
daubaris c822128a02 Mixed type arrays (#358)
* Added support of mixed-type arrays

* Add tests cases

* Replaced &'static str type for type_ and created a new enum instead

* Restored ArrayMixedType
2019-11-22 10:28:29 -06:00
Andres Suarez b09bb78352 Add line and column to all Errors 2019-07-30 13:35:08 -04:00
Andres Suarez 8c1b49f66f Show "column" in Error messages 2019-07-28 13:41:17 -04:00
Andres Suarez 8820659431 Fully expand error messages in tests 2019-07-28 12:58:26 -04:00
Eric Huss 8f115c98d3 cargo fmt 2019-05-08 17:45:39 -07:00
Alex Crichton b9fbd5b6f7 Merge pull request #298 from ehuss/missing-tests
Add some missing tests, and sort some entries.
2019-04-08 09:09:27 -05:00
Eric Huss 816b457c84 Fix float with invalid suffix. 2019-04-05 13:51:28 -07:00
Eric Huss 902e98cda1 Add some missing tests, and sort some entries. 2019-04-05 13:49:57 -07:00
Alex Crichton 184d16b4a3 Fix disallowing duplicate table headers
This commit fixes #279 where a case of duplicate table headers slipped
through the cracks. This also adds an option to disable this new
validation to allow Cargo to preserve backwards compatibility.
2019-01-07 09:06:04 -08:00
David Tolnay cdb1bfd237 Move tests into their own crate 2017-11-12 19:33:11 -08:00
Renamed from tests/invalid.rs (Browse further)