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.
Be my guest.
ImaginaryDevelopment has pointed out that the tests in F# have their "expected" and "actual" the wrong way around. Not a massive problem but it'd be nice to fix it. I'm happy to do it if the translator isn't around.
I think you have to make a new comment rather than reply to an existing one to create an issue. You're right though, the expected / actual do appear to be backwards in F#.
The initial code (in C#) said:
It wasn't clear to me whether the author meant:
(a) "you, personally, write a string" - I should author a string which represents that regular expression, and then just create a one-line function in my language of choice which returns that constant string; or
(b) "create a program to write a string" - I should author a program which will build that regular expression and return it as a string
in the end I went for (a) because it was a lot quicker, but I can see from the solutions that many people interpreted this as (b).
You're welcome :)
Welcome language #12 ..! :]
Thanks Jason.
I would have closed it without doing anything about it anyway. Not a kata issue.
Abusing features like that is counterproductive in the long run.
Oh - sorry, I was sure I'd fixed that already. I meant to. I think it must have snuck back in again when I changed how the random tests worked. Fixed now :)
That's not hard - there are five (
5
) Erlang kata ATM ..This looks like an easy fix. Warnings now are errors tomorrow ..
This comment is hidden because it contains spoiler information about the solution
When a kata is first published in a given language, the author has to provide a solution in that language and it has to pass all of the tests that you're currently trying to pass. Additionally, 1517 people have successfully completed this kata in JavaScript since it was published. I don't know what proof you could get that would be better than that :)
Erlang translation available! (Yes it has medved.) If approved, I think this is the first purple Erlang kata.
Loading more items...