Skip to content
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

Overhauled tests for numeric types #291

Merged
merged 5 commits into from
Feb 1, 2022
Merged

Conversation

basshelal
Copy link
Contributor

  • Significantly improved tests for numeric types using boundary value analysis such that we cover all supported number types inside and beyond their bounds extensively
  • Improved tests for enum types
  • Fixed a small bug that didn't allow for mapping native doubles using boxed Java Doubles and was incorrectly assuming they were floats
  • Removed code from unimplemented feature that was meant to allow for enums to be mapped using longs in addition to ints, some code was existing but never did anything as a dedicated EnumLongConverter would be needed to be added, this functionality can be added later if needed
  • Improved user documentation regarding numeric types and enums based on new findings and specification made from writing new tests

* Significantly improved tests for numeric types using boundary value analysis such that we cover all supported number types inside and beyond their bounds
* Improved tests for enum types
* Fixed a small bug that didn't allow for mapping primitive Java doubles using boxed Java Doubles and was assuming they were floats
* Removed code from unimplemented feature that was meant to allow for enums to be mapped using longs in addition to ints, some code was existing but never did anything as a dedicated EnumLongConverter was required, this functionality can be added later if needed
…ed spec from written tests regarding numeric types and enums
… and will be used elsewhere in tests in the future
@basshelal basshelal changed the title Overhauled tests for numeric types and enums Overhauled tests for numeric types Jan 17, 2022
@headius
Copy link
Member

headius commented Feb 1, 2022

Looks great!

@headius headius merged commit 0b72e96 into jnr:master Feb 1, 2022
@headius headius added this to the non-release milestone Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants