aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorLines
2019-09-05Nested dotted-table enums (#329)James Kay-0/+20
Add support for deserializing enums from nested dotted tables.
2018-11-17Maintain backward compatibility with Rust 1.15, take 3.Azriel Hoh-7/+4
2018-11-12Error when deserializing struct if encountering unknown fields.Azriel Hoh-0/+40
Issue #225
2018-11-12Added ignored tests for deserializing enums from dotted table.Azriel Hoh-0/+48
Issue #225
2018-11-10Implemented deserialization for external enums.Azriel Hoh-0/+153
Issue #225
2017-11-12Move tests into their own crateDavid Tolnay-3276/+0
2017-08-28Fix a number of compile warningsAlex Crichton-1/+0
2017-08-13close #209: remove FIXME, appears to have been invalidGarrett Berg-3/+7
2017-08-13add pretty_string_literal to be able to disable literal stringsGarrett Berg-1/+43
2017-08-13add spaces between array items and test for themGarrett Berg-0/+48
2017-07-28add """ for non-literals with newlines, clean up logic and add testsGarrett Berg-7/+25
2017-07-28make single lines also prettyGarrett Berg-6/+15
2017-07-27fix bugs with prettyGarrett Berg-5/+69
2017-07-27close #199: add header information for empty structsGarrett Berg-0/+35
- also add test which fails without this change - also add a few helpful unit tests to table
2017-07-24fix Serializer::pretty_array(false)Garrett Berg-5/+40
2017-07-24add testsGarrett Berg-6/+113
2017-07-10fix for rust 1.15Garrett Berg-1/+1
2017-07-09pretty arraysGarrett Berg-0/+6
2017-07-09array doesn't break anything...Garrett Berg-3/+3
2017-07-09add pretty sting serializationGarrett Berg-0/+20
2017-07-06One more case of handling newtype structsAlex Crichton-0/+29
2017-07-06Support deserializing newtypesAlex Crichton-0/+16
Closes #196
2017-06-01Store fractional seconds as a u32 instead of a f64Alan Du-2/+2
Drops precision down to the nanoseconds
2017-06-01Allow serializing keys with \n in themAlan Du-0/+7
Use special quoted form Closes https://github.com/alexcrichton/toml-rs/issues/185
2017-06-01Truncate fractional seconds to picosecondsAlan Du-0/+10
Close https://github.com/alexcrichton/toml-rs/issues/186
2017-06-01Add test caseAlan Du-0/+24
2017-05-31Remove unused test macroAlan Du-4/+0
2017-05-30Merge pull request #183 from alanhdu/invalid_numberAlex Crichton-0/+18
Better invalid number handling
2017-05-31Error when trying to serialize invalid floatAlan Du-0/+14
2017-05-31Error when parsing numbers outside of f64's rangeAlan Du-0/+4
2017-05-30Encode control characters with hex not decimalAlan Du-0/+2
Fix https://github.com/alexcrichton/toml-rs/issues/178
2017-04-24Allow to deserialize/serialize into enumsVincent Prouillet-0/+19
Close #164
2017-04-20Support serde 1.0.0Alex Crichton-2/+2
2017-04-12Simplify if-statementsDaniel Lockyer-1/+1
2017-03-31Fix backcompat with array definitionsAlex Crichton-2/+7
2017-02-21Relax assertions in substr_offset slightlyAlex Crichton-0/+1
Closes #152
2017-02-19Fixed sorting of table valuesEvgenii Pashkin-0/+6
2017-02-11Fix displaying empty arraysAlex Crichton-0/+49
Closes #145
2017-02-10Add a serialization helper to put tables lastAlex Crichton-0/+30
This should help serializing maps where it's unknown up front whether the tables and/or values come first. Closes #142
2017-02-08Implement Deserializer::set_require_newline_after_tableAlex Crichton-0/+14
2017-02-08Rewrite crate with serde support from ground upAlex Crichton-59/+1205
This commit completely rewrites this crate from the ground up, supporting serde at the lowest levels as I believe serde support was intended to do. This is a major change from the previous versions of this crate, with a summary of changes being: * Serialization directly to TOML is now supported without going through a `Value` first. * Deserialization directly from TOML is now supported without going through a `Value`. Note that due to the TOML format some values still are buffered in intermediate memory, but overall this should be at a minimum now. * The API of `Value` was overhauled to match the API of `serde_json::Value`. The changes here were to: * Add `is_*` accessors * Add `get` and `get_mut` for one-field lookups. * Implement panicking lookups through `Index` The old `index` methods are now gone in favor of `get` and `Index` implementations. * A `Datetime` type has been added to represent a TOML datetime in a first-class fashion. Currently this type provides no accessors other than a `Display` implementation, but the idea is that this will grow support over time for decomposing the date. * Support for the `rustc-serialize` crate has been dropped, that'll stay on the 0.2 and 0.1 release trains. * This crate no longer supports the detection of unused fields, for that though you can use the `serde_ignored` crate on crates.io
2016-09-06Add tests for checking for extraneous leading newlines (or lack thereof)nabijaczleweli-0/+52
Couldn't find a better place to put this (the "valid" and "invalid" tests are just for parser) so I made a new test module
2016-04-17Add failing test cases containing invalid Toml with keys on the same line as ↵James Sanderson-0/+6
table definition
2016-04-03Tweak unicode-escape testTae-il Lim-4/+4
2016-04-02Update integration tests to ↵Tae-il Lim-12/+196
BurntSushi/toml-test@2f1c20de60bc9de743bdb8c7d2e79172fb28e6f8
2015-10-07Allow BOM (Byte order mark) in tomlosboxes.org-0/+8
2015-08-14Add a very simple test for Parser::to_linecol.Alex Gulyás-0/+6
This test shows that in some cases converting error offsets generated by the parser to line and column numbers will panic ('arithmetic operation overflowed') in debug mode, and return an incorrect column number in release mode.
2015-08-13Make serde-tests a standalone crateAlex Crichton-487/+0
2015-08-12Get serde feature compiling againErick Tryzelaar-1/+1
2015-04-20most tests work nowOliver Schneider-5/+16