Ad
  • Custom User Avatar

    Certainly made me think on edge cases this, passing all but one test
    "Testing for .5
    Expected: 'Invalid input - enter a positive amount of money', instead got: '1 50p coin'"
    given "if the number is a float, the value is in pounds, otherwise consider it as pennies" not sure this sits right with me, the value is a float given the decimal point, but with no decimal part, the pennies portion I'd see as valid?