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.
You can use a simpler form to pattern match multiple elements from the beginning:
[a, b | tail]
I corrected the Example Test Case for Elixir.
Cool. Thanks... I was wondering how cold this be done in a nicer way.
|> (&(&1 -- ids)).()
can be replaced as
|> Kernel.--(ids)
Looks better this way :)
If CW comes back to the older version (OTP 18?), the changes will have to be made again... in the other way. I suppose that the "random/rand replace" comes from the change OTP 18 --> OTP 19.
I know. I think that the report has nothing to do with random/rand replace. I think is due to the changes they made. Wohever, in order to submit a solution, the changes has to be made for all the katas.
Again... thanks for the update.
There were Elixir or OTP changes at CW. Everything was fine when I publish this kata.
I have just replaced
random
byrand
but now I getbut that doesn't harm the tests so you could give it a new try. I have reported the INFO REPORT as a "bug" on github;
https://github.com/Codewars/codewars.com/issues/428.
Colud you update the tests for Elixir, please?
I can submit now. Thanks.
This is how the test appeared when I started the kata.
The issue from the hidden tests is a general one, I see it on other katas as well. I think they changed versions of elixir/OTP. So the tests need to be updated so people can submit their solutions.
I fixed the 'random' error.
If you have another issue, please make it in a separate comment/thread.
Looking at the code I see no issue, but I don't actually know Elixir.
It clearly says
assert make_negative(42) == -42
in the test case.Where are you seeing this?
The error I don't know anything about.
For Elixir the tests needs to be updated
assert make_negative(-42) == 42
, is not according to the description, expected result should be -42.And in the hidden tests:
I see. Thanks for the fix, I can submit now.
They are not broken... See the bug report I have done: https://github.com/Codewars/codewars.com/issues/428. I will try to make things fixed, at least temporarily.
Maybe you could see something like that:
but that don't break the tests .. if your code is correct:-)
Loading more items...