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.
@kazk ok – now it works fine.
@Koziolek
I found the cause.
Can you try again after reselecting the language version? (just select the language version again even it says 1.9 already or try resetting)
Your solution is executed using Elixir 1.2 because of https://github.com/Codewars/codewars.com/issues/1909
That's really weird :/
I just reformatted the test code to get the exact line number.
Can you try again and see if the line number in the compile error changes?
Also, can you use the browser's dev tools to see which language version is sent? It might be related to https://github.com/Codewars/codewars.com/issues/1909
@kazk: I get the same kind of ouput with Koziolek's code.
I just tried your solution and couldn't reproduce it.
It's just failing tests like:
Do you see output like this or is it always
CompileError
? Maybe try resetting (after saving your code somewhere)?This comment is hidden because it contains spoiler information about the solution
I'm not sure how
to_charlist/1
defined in Kernel can be undefined :/I took a look at the tests, but didn't see anything obvious. I wasn't able to reproduce the error using your solution either.
I also cleaned up the test output so try again and report back if still happens.
(=> code issue.)
Are you returning the wrong type? Post your code for help.
Elixir verion at this moment is broken. When I run
Attempt
tests I get:That error came from module prepared by author.
Thanks. Approved :-)
THIS IS JAVA!
Personally I miss some kind of decorator and adapter here :)
Change randomized case:
Looks good. But is it possible to give output for the random cases (e.g. see Java reference)? Thanks.