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 RewardValue class and unit tests for cash to miles conversion #1460

Open
wants to merge 1 commit into
base: flow
Choose a base branch
from

Conversation

sg-0610
Copy link

@sg-0610 sg-0610 commented Oct 3, 2024

This pull request adds the RewardValue class to handle conversions between cash and miles. It includes:

  • A constructor for initializing with cash or miles.
  • Methods to get cash and miles values.
  • Unit tests to validate conversions from cash to miles and miles to cash.

Copy link
Author

@sg-0610 sg-0610 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created a pull request

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.

1 participant