Repository navigation
Conversation
to_time_string() writes negative times with a leading '-', and the header documents that from_time_string() accepts one, but the parser rejected any string that started with it. Handle the sign once up front: skip it, parse the rest as a positive time, and negate the result. A '-' anywhere else is still an error. Fixes AcademySoftwareFoundation#2106 Signed-off-by: kolinabir <knkolin9@gmail.com>
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2113 +/- ##
==========================================
+ Coverage 86.70% 86.72% +0.02%
==========================================
Files 186 186
Lines 13762 13781 +19
Branches 1280 1285 +5
==========================================
+ Hits 11932 11952 +20
+ Misses 1660 1659 -1
Partials 170 170
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Negative time strings like
-00:00:01.0were rejected byfrom_time_string, even thoughto_time_stringproduces them. I handle the leading minus first, parse the rest as before, then negate the result. Added tests in Python and C++.Fixes #2106
Assisted-by: Claude Code / Claude Fable 5.2