aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests
AgeCommit message (Collapse)AuthorLines
2020-10-11Improve error message when parsing unquoted string (#385)Alex Tokarev-10/+19
* 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-05-28Allow delimiter quotes at the end of multiline strings (#393)pyfisch-0/+23
TOML allows (unlike many other formats) up to 2 additonal quotes that are part of the string: basic = """2 extra quotes -->""""" literal = '''here too '''' Changed in TOML v1.0.0-rc.1 See also #392
2020-01-30Fix roundtripping of \u001f and \u007f in toml string literals (#372)Michael Sloan-0/+10
2019-11-22Mixed type arrays (#358)daubaris-16/+46
* Added support of mixed-type arrays * Add tests cases * Replaced &'static str type for type_ and created a new enum instead * Restored ArrayMixedType
2019-10-29Replace the test added by #349 with a bench (#351)est31-37/+0
CI environments can be noisy and while the test worked great locally on my machine, it didn't on the CI environment. This replaces the test with a (manually tracked) benchmark. As per https://github.com/alexcrichton/toml-rs/pull/349#issuecomment-546998173
2019-10-28Decrease deserialization complexity from quadratic to linear (#349)est31-0/+37
* Speed up array code * Speed up map code too Also add regression test * Use more obvious closure notation * Document the builder functions
2019-10-28Support for dotted table spans (#340)est31-1/+90
* "Support" spans for maps In toml you can declare maps via {} and via [name]. We can't obtain spans for [] maps but at least we can emit fake spans to make SpannedValue work. We also add a regression test. * Don't regress the inline table case * Also support arrays
2019-10-25 Spanned: impl PartialEq, Eq, Hash, PartialOrd, Ord in terms of the value (#344)est31-0/+41
* Spanned: impl PartialEq, Eq, Hash, PartialOrd, Ord in terms of the value This is because we want to be able to index into HashMap<Spanned<String>, T> with a dummy span and get results where only the content has to match. * Add Borrow impl * Add tests
2019-09-16Support deserializing spanned keys (#333)est31-0/+73
* Store key spans in the deserializer * Support deserializing spanned keys * Store key spans of the table header as well * Support nested table key spans as well
2019-09-05Suppport deserialization of Spanned<> at the top level (#328)est31-9/+33
2019-08-28Work around a rustfmt bugAlex Crichton-1/+2
2019-08-28wutAlex Crichton-1/+1
2019-08-28More rustfmtAlex Crichton-1/+1
2019-08-28Run rustfmtAlex Crichton-12/+11
2019-08-23Allow zero-prefixed float exponents. (#322)Eric Huss-1/+26
2019-08-13Fix error line/column when using CRLF line endings.Eric Huss-0/+27
2019-08-12Run `cargo fmt`Alex Crichton-1/+1
2019-07-30Add line and column to all ErrorsAndres Suarez-59/+118
2019-07-30Add tests covering custom deserializersAndres Suarez-0/+296
2019-07-28Show "column" in Error messagesAndres Suarez-132/+183
2019-07-28Fully expand error messages in testsAndres Suarez-200/+414
2019-05-09Merge pull request #308 from ehuss/edition-2018Alex Crichton-520/+851
Migrate to 2018 edition
2019-05-08cargo fmtEric Huss-520/+847
2019-05-08Remove rustc version checking.Eric Huss-2/+0
This is no longer necessary, as <1.20 is no longer supported.
2019-05-08Migrate to 2018 edition.Eric Huss-1/+5
2019-04-08Merge pull request #298 from ehuss/missing-testsAlex Crichton-4/+9
Add some missing tests, and sort some entries.
2019-04-05Fix float with invalid suffix.Eric Huss-0/+3
2019-04-05Add some missing tests, and sort some entries.Eric Huss-4/+9
2019-04-02Fix warnings for deprecated usages of trim_{left,right}_matches.Erich Gubler-1/+1
2019-02-19Fix case sensitivity with T, Z, and E.Eric Huss-0/+3
2019-01-08Merge pull request #278 from Kerollmops/masterAlex Crichton-6/+6
Add the preserve_order feature (rebased version)
2019-01-07Fix disallowing duplicate table headersAlex Crichton-1/+33
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.
2018-12-28Update the serde test-suite map! macroClément Renault-1/+1
2018-12-28Add the preserve_order featureVincent Prouillet-5/+5
2018-11-21Fix trailing space after date.Eric Huss-0/+2
The space between date and time was being eagerly skipped when it shouldn't.
2018-10-29Merge pull request #268 from jmhain/allow-ws-after-bsAlex Crichton-0/+22
Allow whitespace after line ending backslash (#162)
2018-10-28Support tuple Serde types for `Value`hcpl-6/+54
2018-10-27Allow whitespace after line ending backslash (#162)Joey Hain-0/+22
2018-10-01Avoid panic on pretty string ending in single quoteMatti Niemenmaa-0/+16
Fixes #262.
2018-09-25Fix multi-line strings are not allowed for keyrhysd-0/+6
In spec https://github.com/toml-lang/toml#keys Quoted keys are clarified as > he exact same rules as either basic strings or literal strings TOML clearly distinguishes basic string and multi-line basic string (literal string is also). https://github.com/toml-lang/toml#string So table key and quoted key should not allow multi-line basic string and multi-line literal string. ABNF definition also describes that. https://github.com/toml-lang/toml/blob/master/toml.abnf ``` string = ml-basic-string / basic-string / ml-literal-string / literal-string quoted-key = basic-string / literal-string ``` `string` contains `ml-*` but `quoted-key` doesn't.
2018-08-06Merge pull request #255 from kornelski/masterAlex Crichton-0/+13
Support deserializing from other integer types
2018-08-06Test serde_json interoperabilityKornel-0/+13
2018-08-05Support the new 0.5 syntax in the toml! macro.Eric Huss-1/+80
- Space in datetime. - +- inf, nan, 0.0 - Dotted keys.
2018-07-27Don't allow intermixing inline tables and dotted key tables.Eric Huss-13/+1
2018-07-160.5: Support dotted keys.Eric Huss-1/+65
cc #224
2018-07-110.5: Support hex/oct/bin integers.Eric Huss-1/+27
cc #224
2018-07-11Merge pull request #251 from ehuss/datetime-spaceAlex Crichton-2/+6
0.5: Support space separator in datetime.
2018-07-11Merge pull request #250 from ehuss/reject-delAlex Crichton-0/+2
0.5: Reject 0x7f (DEL) in strings.
2018-07-110.5: Support floats nan, inf, and +/-0.0.Eric Huss-18/+84
cc #224
2018-07-100.5: Reject 0x7f (DEL) in strings.Eric Huss-0/+2
cc #224