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.
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.
Yeah this is broken, especially for a level 8 kata
The formula is simple. I am using pattern matching without any fancy stuff, so I know im getting the discount correct
I can't pass all the tests, tweak the rounding and one test passes another failes, tweak it again and different tests pass/fail
fixed
Loading more items...