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.
More tests for different cases are needed, I guess. At least for Python. Sometimes Kata allows me to submit a wrong solution, sometimes - not
Nice kata, but could have been worded more clearly.
Uses exact equality on floats.
This comment is hidden because it contains spoiler information about the solution
See the quotes in your answer, the expected value is a number.
which is obviously incorrect, isn't it?
Got this result
expected '5.65' to equal 5.65
This comment is hidden because it contains spoiler information about the solution
Approved
python new test framework is required. updated in this fork
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/203.
Please join the discussion to help us identify duplicate kata and retire them.
C Translation (author inactive).
All border cases should be tested, 2, 4, 8 and 10 litres in fixed tests in all languages.
Not a kata issue, one of your conditions is wrong:
You're doing a 50 cents discount. And because border cases aren't tested your code passed.
Nothing is broken, your switch conditions are wrong:
No, you're not, see the second sample test, print discount value.
Loading more items...