diff options
author | Alan Du <alanhdu@gmail.com> | 2017-06-01 23:22:35 +0100 |
---|---|---|
committer | Alan Du <alanhdu@gmail.com> | 2017-06-01 23:22:35 +0100 |
commit | 2dfc9fedd30bf3d40c4c3e97adc06fe3aad34361 (patch) | |
tree | fcfde60a5d645769d536f9b7c0726560ed225a14 /tests/parser.rs | |
parent | e4fdd0e4e49842d50f75e4d80f555fa783c0709f (diff) | |
download | milf-rs-2dfc9fedd30bf3d40c4c3e97adc06fe3aad34361.tar.gz milf-rs-2dfc9fedd30bf3d40c4c3e97adc06fe3aad34361.zip |
Store fractional seconds as a u32 instead of a f64
Drops precision down to the nanoseconds
Diffstat (limited to 'tests/parser.rs')
-rw-r--r-- | tests/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/parser.rs b/tests/parser.rs index 2db2cfb..2282416 100644 --- a/tests/parser.rs +++ b/tests/parser.rs @@ -463,7 +463,7 @@ fn datetimes() { t!("2016-09-09T09:09:09Z"); t!("2016-09-09T09:09:09.1Z"); t!("2016-09-09T09:09:09.2+10:00"); - t!("2016-09-09T09:09:09.0123456789-02:00"); + t!("2016-09-09T09:09:09.123456789-02:00"); bad!("foo = 2016-09-09T09:09:09.Z", "failed to parse date"); bad!("foo = 2016-9-09T09:09:09Z", "failed to parse date"); bad!("foo = 2016-09-09T09:09:09+2:00", "failed to parse date"); |