forked from jonasbb/serde_with
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In serde 1.0.196, the "invalid type" error message for floats started adding a trailing ".0" if no decimal point was already part of the formatted float, causing tests to fail like: ---- test_chrono_timestamp_seconds_with_frac stdout ---- error: expect test failed --> serde_with/tests/chrono_0_4.rs:551:9 Expect: ---- invalid type: floating point `0`, expected a string at line 1 column 3 ---- Actual: ---- invalid type: floating point `0.0`, expected a string at line 1 column 3 ---- Change the tests to use a test value of 0.1, so the test will work both pre- and post-serde 1.0.196.
- Loading branch information
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters