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

Add extended_asset operators and unit tests. #117

Merged
merged 2 commits into from
Mar 24, 2023

Conversation

ScottBailey
Copy link
Contributor

@ScottBailey ScottBailey commented Mar 22, 2023

Change Description

This change brings parity between asset and extended_asset for operators.

Closes #105.

Brief doxygen comments for some comparison operators were made more specific.

API Changes

  • API Changes

These extended_asset operators were added:

  • extended_asset& operator*=(int64_t)
  • extended_asset operator*(const extended_asset&, int64_t)
  • extended_asset operator*(int64_t, const extended_asset&)
  • int64_t operator/(const extended_asset&, const extended_asset&)
  • extended_asset& operator/=( int64_t )
  • extended_asset operator/( const extended_asset&, int64_t )

This is an addition only, so no existing code should be impacted.

Documentation Additions

  • Documentation Additions

Test Additions

extended_asset unit tests were updated for the new operators.

@ScottBailey ScottBailey self-assigned this Mar 22, 2023
@ScottBailey ScottBailey requested a review from greg7mdp March 23, 2023 21:23
@larryk85 larryk85 merged commit 5f8f201 into main Mar 24, 2023
@larryk85 larryk85 deleted the sbailey/additional_extended_asset_operators branch March 24, 2023 20:23
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.

extended_asset missing operators
4 participants