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.
Python, probably other languages too: missing tests with even
float
s, there are a lot of ncorrect solutions.No random tests in
use long int instead of int because high precision floats cause problem
Most solutions would fail a high precision float test.
Duplicate :
https://www.codewars.com/kata/5804f5c4de0f9afb4900014b
That one also shows signs of much more effort.
A requirement of this kata is that floats should always return false.
The "float numbers" test needs an negative assertion which will not round up to an odd number, something like:
assert even?(1.8) == false
Otherwise, you get solutions like this passing: http://www.codewars.com/kata/reviews/57729f4b9b79815fca000192/groups/590636e1798d70810600107f
Why we should return
'[]'
(a string) instead of[]
(an array)? This makes zero sense.Needs random tests.