aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorLines
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
2015-04-02wipAlex Crichton-0/+476
2015-03-25Bump to 0.1.19Alex Crichton-1/+1
2015-03-09Reduce usage of unstable featuresAlex Crichton-1/+1
2015-02-13Add v0.4.0 compliance testAlex Crichton-0/+239
2015-02-02Properly escape keys when printing TOMLAlex Crichton-2/+8
Closes #53
2015-01-27Migrate to as many stable functions as possibleAlex Crichton-14/+8
2015-01-20Remove slash as an escapeable characterAlex Crichton-1/+1
2015-01-15Update key syntax to TOML masterAlex Crichton-4/+4
* Bare keys contain a very limited set of characters now. * Keys in quotes behave the same as basic strings. Closes #47
2015-01-15Implement new rules for bare key namesAlex Crichton-5/+5
* Key names are restricted to [a-zA-Z0-9_-] * Equal signs must be on the same line (as must the next value) as the key * Quoted keys are allowed and are parsed as basic strings. Closes #48
2015-01-15Fix parsing leading `+` on numbersAlex Crichton-3/+3
2015-01-15Add a few more tests from the toml-lang repoAlex Crichton-0/+274
2015-01-15Move tests to integration testsAlex Crichton-0/+748