-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Day of year formatting now parses elapsed time #253
Day of year formatting now parses elapsed time #253
Conversation
This is was an oversight of the code and testing. Fix #248
@@ -1,6 +1,6 @@ | |||
[package] | |||
name = "hifitime" | |||
version = "3.8.3" | |||
version = "3.8.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-formatting of the TOML and version bump.
@@ -309,7 +309,14 @@ impl Format { | |||
}; | |||
|
|||
let epoch = match day_of_year { | |||
Some(days) => Epoch::from_day_of_year(decomposed[0], days, ts), | |||
Some(days) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the oversight.
@@ -522,3 +529,10 @@ fn epoch_format_from_str() { | |||
let fmt = Format::from_str("%a, %d %b %Y %H:%M:%S").unwrap(); | |||
assert_eq!(fmt, crate::efmt::consts::RFC2822); | |||
} | |||
|
|||
#[test] | |||
fn gh_248_regression() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added related regression test.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #253 +/- ##
==========================================
+ Coverage 80.62% 80.68% +0.06%
==========================================
Files 15 15
Lines 3736 3748 +12
==========================================
+ Hits 3012 3024 +12
Misses 724 724
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\o/
This is was an oversight of the code and testing.
Fix #248