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

implement real reduce operation for bank #13

Merged
merged 4 commits into from
Sep 29, 2022

Commits on Sep 29, 2022

  1. introduce test to make sure Money.plus returns a Sum expression

    Task list:
    - $5 + 10CHF = $10 if rate is 2:1 🎯
    - $5 + $5 = $10 👈🏼
    kaiosilveira committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    8ef80fe View commit details
    Browse the repository at this point in the history
  2. introduce Sum class as an implementation of Expression

    Task list:
    - $5 + 10CHF = $10 if rate is 2:1 🎯
    - $5 + $5 = $10 👈🏼
    - Return Money from $5 + $5
    kaiosilveira committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    faaf810 View commit details
    Browse the repository at this point in the history
  3. introduce test to validate Bank.reduce

    Task list:
    - $5 + 10CHF = $10 if rate is 2:1 🎯
    - $5 + $5 = $10 👈🏼
    - Return Money from $5 + $5
    kaiosilveira committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    2783e4e View commit details
    Browse the repository at this point in the history
  4. add Sum.reduce

    Task list:
    - $5 + 10CHF = $10 if rate is 2:1 🎯
    - $5 + $5 = $10 👈🏼
    - Return Money from $5 + $5
    - Bank.reduce(Money)
    - Reduce Money with conversion
    - Reduce(Bank, String)
    kaiosilveira committed Sep 29, 2022
    Configuration menu
    Copy the full SHA
    a4c7020 View commit details
    Browse the repository at this point in the history