-
Notifications
You must be signed in to change notification settings - Fork 786
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
add more error test case and change the code style #952
Conversation
Codecov Report
@@ Coverage Diff @@
## master #952 +/- ##
==========================================
- Coverage 82.31% 82.31% -0.01%
==========================================
Files 168 168
Lines 48718 48715 -3
==========================================
- Hits 40103 40099 -4
- Misses 8615 8616 +1
Continue to review full report at Codecov.
|
@alamb PTAL |
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.
Thank you @liukun4515 !
bytes[offset - 1] | ||
))); | ||
} | ||
bytes[0..offset].iter().rev().for_each(|&byte| match byte { |
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.
👍 looking much nicer!
@@ -1614,7 +1605,7 @@ mod tests { | |||
let result = parse_decimal_with_parameter(s, 20, 3); | |||
assert_eq!(i, result.unwrap()) | |||
} | |||
let can_not_parse_tests = ["123,123", "."]; | |||
let can_not_parse_tests = ["123,123", ".", "123.123.123"]; |
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.
👍
Which issue does this PR close?
Closes #926
The Follow up pull request for the #941
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?