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

Reward value #1465

Open
wants to merge 3 commits into
base: flow
Choose a base branch
from
Open

Conversation

Ayushsaw11
Copy link

This is the first Commit of given task.

@Ayushsaw11
Copy link
Author

I implemented the RewardValue class to handle conversions between cash and miles. The class includes two constructors: one for converting cash to miles and another for converting miles to cash. We also added methods to retrieve the cash and miles values. To ensure the correctness of the class, we wrote unit tests using JUnit 5, covering scenarios such as creating objects with cash or miles values and validating the conversions from cash to miles and vice versa. Finally, we used assertions in the tests to confirm that the conversion logic works correctly.

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