In test case checkCashRegister(19.5, 20, [["PENNY", 0.01], ["NICKEL", 0], ["DIME", 0], ["QUARTER", 0], ["ONE", 1], ["FIVE", 0], ["TEN", 0], ["TWENTY", 0], ["ONE HUNDRED", 0]])
the balance due is 20 - 19.5 = 0.5, According to the second argument we have 1.01 in the drawer,
the output should be
{
status: "OPEN",
change: [["QUARTER", 0.5], ["PENNY", 0.01]]
}
not
{
status: "INSUFFICIENT_FUNDS",
change: []
}