-
Notifications
You must be signed in to change notification settings - Fork 269
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
[AAE-20769] Fix precision for incoming values in bigdecimal field #9434
Conversation
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.
Small typo and minor suggestions :)
}); | ||
}); | ||
|
||
it('should return field with proepr precisison', () => { |
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.
it('should return field with proepr precisison', () => { | |
it('should return field with proper precisison', () => { |
expect(parsedField.value).toBe('10.104'); | ||
}); | ||
|
||
it('should NOT round up number', () => { |
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.
it('should NOT round up number', () => { | |
it('should NOT round up number, when removed fraction part starts with number smaller than 5 ', () => { |
expect(parsedField.value).toBe('10.104'); | ||
}); | ||
|
||
it('should round up number, when removed fraction part starts with number 5 ', () => { |
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.
it('should round up number, when removed fraction part starts with number 5 ', () => { | |
it('should round up number, when removed fraction part starts with number larger than 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.
changed to when removed fraction part starts with number larger or equal 5
Want to emphasis the boundary, which is 5 here :)
23c6014
to
7daa5ae
Compare
7daa5ae
to
5f4a28a
Compare
Quality Gate failedFailed conditions |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behaviour? (You can also link to an open issue here)
What is the new behaviour?
Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information: