aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlan Du <alanhdu@gmail.com>2017-06-01 23:22:35 +0100
committerAlan Du <alanhdu@gmail.com>2017-06-01 23:22:35 +0100
commit2dfc9fedd30bf3d40c4c3e97adc06fe3aad34361 (patch)
treefcfde60a5d645769d536f9b7c0726560ed225a14 /tests
parente4fdd0e4e49842d50f75e4d80f555fa783c0709f (diff)
downloadmilf-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')
-rw-r--r--tests/parser.rs2
-rw-r--r--tests/valid/datetime-truncate.json2
2 files changed, 2 insertions, 2 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");
diff --git a/tests/valid/datetime-truncate.json b/tests/valid/datetime-truncate.json
index 34a432f..8c512e1 100644
--- a/tests/valid/datetime-truncate.json
+++ b/tests/valid/datetime-truncate.json
@@ -1,6 +1,6 @@
{
"bestdayever": {
"type": "datetime",
- "value": "1987-07-05T17:45:00.123456789012Z"
+ "value": "1987-07-05T17:45:00.123456789Z"
}
}