I don't see where you are handling the condition where an order uses AND to join two different types of drinks.Like where it tests for "2 of x and 1 of y".
I have a problem with this kata. It is going well for every example, except for the 2nd. I get this error: '2 glasses of water' should equal '3 glasses of water'.
Is this an excpetion I should take care of before it is going to work? If yes, what exception is it?
Every other example it passes. Thanks in advance!
There probably are more solutions, but yes that is like how I would do it
Thank you @albertogcmr!!
I didn't know that, I was printing too.
This comment is hidden because it contains spoiler information about the solution
I don't see where you are handling the condition where an order uses AND to join two different types of drinks.Like where it tests for "2 of x and 1 of y".
Kotlin Translation
Edit: I misunderstood you in the first place. It worked now. Thanks!
print the input to the console, to see what you're doing wrong.
I have a problem with this kata. It is going well for every example, except for the 2nd. I get this error: '2 glasses of water' should equal '3 glasses of water'.
Is this an excpetion I should take care of before it is going to work? If yes, what exception is it?
Every other example it passes. Thanks in advance!