Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Nice job! Your code was a sentence and mine was a paragraph. lmao
Nice! taking notes for shorter lines!
me too))
Java:
actual and expected are swapped in random tests
Should display inputs in assertion messages instead of logging
You can print the input with e.g.
System.out.printf()
to see which cases you are failing. Your code is incorrect because it does not handle e.g."2 glasses of wine and 1 shot"
(you split on commas, but there is no comma there).the description states:
expected:<[3] glasses of water> but was:<[2] glasses of water> for drinkinTest2
Very unclear, what the input would be. There is no specific example.
I tried for 2 beers and 1 shot. It outputs 3 glasses of water
simple clever
Omg, why I didn't think of that solution !
done
thats clever!
This has already been raised an issue :-)
Note that the digits can appear anywhere in the string (i.e. not necessarily in this format
2 water, 3 beer, 4 coffee
)This kata was decided to stay
Approved by someone
You just have to think more logical. I interpreted the kata as in one has to be even and the other odd and viceversa... but is as simple as they have to be different.
Loading more items...