Logo: Relish

  1. Sign in

Project: Atm

Banknotes are dispensed in a smart way

Scenarios
Single banknote matches amount
Given
Atm has banknotes:
value count
$100 1
$100 1
$100 1
When
$100.30 is to be dispensed
Then
following banknotes are dispensed:
value count
$100 1
Two banknotes match amount
Given
Atm has banknotes:
value count
$50 2
When
$100 is to be dispensed
Then
following banknotes are dispensed:
value count
$50 2
Dispensing Banknotes
Given
Atm has bankotes: bankotes
When
amount is to be dispensed
Then
Following bankotes dispensed
Examples:
bankotes amount dispensed
50,50 100 50,50
20,10,50,20 50 50

Last published over 4 years ago by pragmatists.