Ad
  • Custom User Avatar

    You can use a simpler form to pattern match multiple elements from the beginning: [a, b | tail]

  • Custom User Avatar

    Cool. Thanks... I was wondering how cold this be done in a nicer way.

  • Custom User Avatar

    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.

  • Custom User Avatar

    Colud you update the tests for Elixir, please?

    fixture:53: warning: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
    fixture:61: warning: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
    fixture:69: warning: random:seed/1: the 'random' module is deprecated; use the 'rand' module instead
    
  • Custom User Avatar

    I can submit now. Thanks.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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:

    fixture:20: warning: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
    fixture:27: warning: random:uniform/1: the 'random' module is deprecated; use the 'rand' module instead
    
  • Custom User Avatar

    I see. Thanks for the fix, I can submit now.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution