Class CoffeeMachineTest

1

tests

0

failures

0

ignored

0.571s

duration

100%

successful

Tests

Test Duration Result
start 0.571s passed

Standard output

?[1;31m
Start test 1?[0m
Write action (buy, fill, take, remaining, exit): > remaining

The coffee machine has: 
400 of water
540 of milk
120 of coffee beans
9 of disposable cups
$550 of money

Write action (buy, fill, take, remaining, exit): > buy

What do you want to buy? 1 - espresso, 2 - latte, 3 - cappuccino, back - to main menu: > 2
I have enough resources, making you a coffee!

Write action (buy, fill, take, remaining, exit): > buy

What do you want to buy? 1 - espresso, 2 - latte, 3 - cappuccino, back - to main menu: > 2
Sorry, not enough water!

Write action (buy, fill, take, remaining, exit): > fill

Write how many ml of water do you want to add: > 1000
Write how many ml of milk do you want to add: > 0
Write how many grams of coffee beans do you want to add: > 0
Write how many cups of coffee do you want to add: > 0

Write action (buy, fill, take, remaining, exit): > buy

What do you want to buy? 1 - espresso, 2 - latte, 3 - cappuccino, back - to main menu: > 2
I have enough resources, making you a coffee!

Write action (buy, fill, take, remaining, exit): > take

I gave you $564

Write action (buy, fill, take, remaining, exit): > remaining

The coffee machine has: 
700 of water
390 of milk
80 of coffee beans
7 of disposable cups
$0 of money

Write action (buy, fill, take, remaining, exit): > exit
?[1;31m
Start test 2?[0m
Write action (buy, fill, take, remaining, exit): > remaining

The coffee machine has: 
400 of water
540 of milk
120 of coffee beans
9 of disposable cups
$550 of money

Write action (buy, fill, take, remaining, exit): > fill

Write how many ml of water do you want to add: > 3000
Write how many ml of milk do you want to add: > 3000
Write how many grams of coffee beans do you want to add: > 3000
Write how many cups of coffee do you want to add: > 3000

Write action (buy, fill, take, remaining, exit): > remaining

The coffee machine has: 
3400 of water
3540 of milk
3120 of coffee beans
3009 of disposable cups
$550 of money

Write action (buy, fill, take, remaining, exit): > exit
?[1;31m
Start test 3?[0m
Write action (buy, fill, take, remaining, exit): > remaining

The coffee machine has: 
400 of water
540 of milk
120 of coffee beans
9 of disposable cups
$550 of money

Write action (buy, fill, take, remaining, exit): > buy

What do you want to buy? 1 - espresso, 2 - latte, 3 - cappuccino, back - to main menu: > 1
I have enough resources, making you a coffee!

Write action (buy, fill, take, remaining, exit): > remaining

The coffee machine has: 
150 of water
540 of milk
104 of coffee beans
8 of disposable cups
$554 of money

Write action (buy, fill, take, remaining, exit): > exit
?[1;31m
Start test 4?[0m
Write action (buy, fill, take, remaining, exit): > remaining

The coffee machine has: 
400 of water
540 of milk
120 of coffee beans
9 of disposable cups
$550 of money

Write action (buy, fill, take, remaining, exit): > buy

What do you want to buy? 1 - espresso, 2 - latte, 3 - cappuccino, back - to main menu: > 2
I have enough resources, making you a coffee!

Write action (buy, fill, take, remaining, exit): > remaining

The coffee machine has: 
50 of water
465 of milk
100 of coffee beans
8 of disposable cups
$557 of money

Write action (buy, fill, take, remaining, exit): > exit
?[1;31m
Start test 5?[0m
Write action (buy, fill, take, remaining, exit): > remaining

The coffee machine has: 
400 of water
540 of milk
120 of coffee beans
9 of disposable cups
$550 of money

Write action (buy, fill, take, remaining, exit): > buy

What do you want to buy? 1 - espresso, 2 - latte, 3 - cappuccino, back - to main menu: > 3
I have enough resources, making you a coffee!

Write action (buy, fill, take, remaining, exit): > remaining

The coffee machine has: 
200 of water
440 of milk
108 of coffee beans
8 of disposable cups
$556 of money

Write action (buy, fill, take, remaining, exit): > exit
?[1;31m
Start test 6?[0m
Write action (buy, fill, take, remaining, exit): > remaining

The coffee machine has: 
400 of water
540 of milk
120 of coffee beans
9 of disposable cups
$550 of money

Write action (buy, fill, take, remaining, exit): > take

I gave you $550

Write action (buy, fill, take, remaining, exit): > remaining

The coffee machine has: 
400 of water
540 of milk
120 of coffee beans
9 of disposable cups
$0 of money

Write action (buy, fill, take, remaining, exit): > exit
?[1;31m
Start test 7?[0m
Write action (buy, fill, take, remaining, exit): > remaining

The coffee machine has: 
400 of water
540 of milk
120 of coffee beans
9 of disposable cups
$550 of money

Write action (buy, fill, take, remaining, exit): > buy

What do you want to buy? 1 - espresso, 2 - latte, 3 - cappuccino, back - to main menu: > back

Write action (buy, fill, take, remaining, exit): > remaining

The coffee machine has: 
400 of water
540 of milk
120 of coffee beans
9 of disposable cups
$550 of money

Write action (buy, fill, take, remaining, exit): > exit