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.
This is a duplicate of an approved kata :
https://www.codewars.com/kata/58e26b5d92d04c7a4f00020a/
Which is well written, full test suite, etc. and has just minor differences (validation, etc.).
Needs random tests
Your test only accept a single way of ordering the letters, which is contrary to what the descriptions says.
Why is the expected result of
""
false
? It's a valid palindrome by itself.Returning different data types from a method is bad practice.
Returning an empty string if there is no palindrome would be better than returning false.
The return string value is not tested properly.
Needs an initial test that a string is being returned rather than having the tests fail with a NoMethod error.