Defect 7 - Jomsaruj/coffeemaker GitHub Wiki

Title Check Inventory -> amount of coffee is miscalculate after purchase
Step to reproduce
  • create 1 recipe that require 3 coffee, 1 milk, 1 sugar, price 50
  • set default inventory to all 15
  • purchase the beverage with 50 unit of money
  • call checkInventory() to check correctness of remaining inventory
Expected Result coffee = 12, milk = 14, sugar = 14 and chocolate = 15
Actual Result coffee = 18, milk = 14, sugar = 14 and chocolate = 15
Test Environment macOS Catalina version 10.15.7
Priority high
Type Functional
⚠️ **GitHub.com Fallback** ⚠️