Invalid inputs other than the given item name can be ignored
The unit provided for sale price is always an Integer
Whenever a sale price is provided for an item, the customer will gain only profit. I.e., The total price calculated only with unit price will always be greater than total price calculated with sale price.
The price of each item, total price, and profit can be rounded up to two decimal places.
The given challenge mentions creating two directories named grocery-store-challenge and _price_calculatorchallenge. I hope this is a typo. I have created a directory _price_calculatorchallenge at the root of the project. Hope this is fine
Assumptions:
Tested ruby version: 2.6.7