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

Franc (CHF) multiplication #5

Merged
merged 2 commits into from
Sep 28, 2022
Merged

Conversation

kaiosilveira
Copy link
Owner

A good step towards our main goal is having a different type of currency in the first place. This PR introduces a Franc class as a pure copy of the Dollar class, which brings the functionality we want, but also creates more concerns and increases the size of our list:

  • $5 + 10CHF = $10 if rate is 2:1 🎯
  • $5 * 2 = $10 ✅
  • Make "amount" private ✅
  • Dollar side-effects? ✅
  • Money rounding?
  • equals() ✅
  • Equal null
  • Equal object
  • 5 CHF * 2 = 10 CHF ✅
  • Dollar/Franc duplication
  • Common .equals
  • Common .times

Tasklist:
- $5 + 10CHF = $10 if rate is 2:1 🎯
- $5 * 2 = $10 ✅
- Make "amount" private ✅
- Dollar side-effects? ✅
- Money rounding?
- equals() ✅
- Equal null
- Equal object
- 5 CHF * 2 = 10 CHF 👈🏼
Tasklist:
- $5 + 10CHF = $10 if rate is 2:1 🎯
- $5 * 2 = $10 ✅
- Make "amount" private ✅
- Dollar side-effects? ✅
- Money rounding?
- equals() ✅
- Equal null
- Equal object
- 5 CHF * 2 = 10 CHF ✅
- Dollar/Franc duplication
- Common `.equals`
- Common `.times`
@kaiosilveira kaiosilveira merged commit 2afe45b into main Sep 28, 2022
@kaiosilveira kaiosilveira deleted the chapter5/CHF-multiplication branch September 30, 2022 16:06
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.

None yet

1 participant